Collection of useful helper functions for datetime, print, string formatting, directory and file handling, and more
Some useful functions and usability that should be shared between your apps.
Assuming you already are inside a virtualenv:
pip install utilkit
If you want to use yaml-related functionality (like fileutil.yaml_ordered_load), please also install PyYAML through pip install PyYAML. This is not istalled by default to keep the dependencies limited.
Create a new virtualenv (if you are not already in one) and install the necessary packages:
git clone https://github.com/aquatix/python-utilkit.git cd utilkit mkvirtualenv utilkit # or whatever project you are working on pip install -r requirements.txt
Pretty printing of data, for example the formatting of two-dimensional lists into a table which finds out the correct width of its columns by itself (to_smart_columns).
See the Changelog.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.