fstab50 / libtools Goto Github PK
View Code? Open in Web Editor NEWLibrary of generic script utilities and tools
License: GNU General Public License v3.0
Library of generic script utilities and tools
License: GNU General Public License v3.0
FILE COUNT in a directory:
import os
def file_count(directory):
"""
Returns a count of the number of files in a directory
"""
count = 0
for root, dirs, files in os.walk(directory):
for file in files:
count = count + 1
return count
FILE AGE
import datetime, os
def filesystem_age_days(fname=''):
"""Returns the age in days of the file or folder given as a parameter"""
if not fname:
return 0 # No files in directory; fname is blank
st = os.stat(fname)
dt_modified = datetime.datetime.fromtimestamp(st.st_mtime)
# calc age
now = datetime.datetime.now()
age = convert_dt_seconds((now - dt_modified).seconds)
return age
Pygments
library is not found when installing from the python global pkg registry.requirements.txt
file preinstalls Pygments dep into the virtual envThere currently is no usage manual included with libtools
documentation. readthedocs.io site would be the most efficient remedy and provided the most user accessible documentation.
There currently is no usage manual included with libtools documentation. readthedocs.io site would be the most efficient remedy and provided the most user accessible documentation.
Create infrastructure for an auto generated online manual for libtools
at readthedocs.io.
libtools.contents would be entry_point callable from shell environment.
List the entire contents by sub-area of libtools library.
Display docstrings
for auto-assumption of IAM roles. Found in cis-baseline project in this module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.