Tools for Python scripts or terminal
Project description
invesyservertools
A small set of useful tools an a server, especially for terminal scripts.
Why "invesy"? Invesy (from German Inhaltsverwaltungssystem == content management system) is a closed source cms I created with Thomas Macher. It's only used in-house, that's why we didn't bother making it open source.
What's in the box?
interactive_tools
- wait_for_key: Wait for a pressed key to continue.
print_tools
- and_list: human-readable list like
a, 1, 2 and something
- indent: get an indentation string
- print_: Enhanced print function, specially enhanced for printing in the terminal and into log files.
- format_filesize: return a human-readable filesize, like
31.9 GiB
.
system_tools
- get_username: get the username in the operating system
- get_home_dir
- find_file_with_path: provide a filename and a start path to begin searching recursively, get the complete path including the filename
History
0.0.4 (2022-12-09)
- wait_for_key gets a "indent" argument
0.0.3 (2022-06-16)
Added support for line breaks in print_:
- can be added as singletons or as part of strings
- line break singletons are not counted in the color argument
0.0.2 (2022-06-13)
- splitted modules (now: interactive_tools, print_tools, system_tools)
- added new functions:
- system_tools
- get_username
- get_home_dir
- find_file_path
- print_tools
- and_list
- format_filesize
- system_tools
0.0.1 (2022-06-10)
- first version
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.