Giter Club home page Giter Club logo

libtools's People

Contributors

fstab50 avatar

libtools's Issues

Add commonly used filesystem file routines

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

Dependency not found when installing from pypi

  • Pygments library is not found when installing from the python global pkg registry.
  • Installing locally from source is successful; albeit bc requirements.txt file preinstalls Pygments dep into the virtual env

readthedocs.io manual site

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.

Read The Docs Online Manual

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.