Inspyre Toolbox is a collection of tools designed to simplify programming tasks, reducing repetitive code. Initially for internal use at Inspyre Softworks, it benefits other developers too with features like a live timer, humanize class for numerical operations, extended argparse, process management, and miscellaneous Python helpers.
Project description
Inspyre Toolbox
A collection of kinda useful tools
...But Why?
This toolkit was developed by me in an effort to cut down on having to write the same things over and over again for the various applications I've made. I don't expect that many will find it super useful, but hey, who knows.
Getting Started
The Goodies
(...a word which here means 'the modules and packages'....)
-
.live_timer:
-
Timer:
A class that keeps real time accurate to the second for you, allowing you to query 'get_elapsed' and get how much time has elapsed since the timer started. Functions include:- start:
Start the timer. - pause:
Pause the timer. - unpause:
Unpause a paused timer.
- start:
-
-
.humanize:
-
Numerical:
A class that allows you to deal with numbers in your Python programs a little easier. Functions include:- commify:
Return your principle number to you in a commified string form. - count_noun:
Return your number and the proper plural form of the thing your number is representing a count of if it's needed. If it's a singular item, (or, the number is 1)
- commify:
-
-
.spanners:
- .spanner_arg_parse:
Extend argparse's ArgumentParser by allowing your sub-commands to have aliases!
- .spanner_arg_parse:
-
.proc_man:
A module that contains a way to easily find or kill processes by their name. Functions include:
-
kill_all_by_name:
Kills all processes with names with a substring that include the string provided as an argument.
-
list_all_by_name:
Lists all running processes with names with a substring that include the string provided as an argument.
-
-
.syntactic_sweets:
Contains miscellaneous helpers to help make your Python programming a little easier. Right now there's one function:
- suppress_stdout: A file object that while in-use supporesses standard output from the console.
Live Timer
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for inspyre_toolbox-1.6.0.dev12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87ceed69f9a9fed1ef3706b2acce7817b9d5dc191d6ab0b19de5cfc227050d03 |
|
MD5 | 0658940a2644f9ec95fd51880c5bbc18 |
|
BLAKE2b-256 | 2600dbd5a3c77c11e2162496fd040c26944f2366d2d599f12d5c64ac526c4ea8 |
Hashes for inspyre_toolbox-1.6.0.dev12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcc7dd8b7859dd704c91bbc13ee93ca5926a2f4310f6522cbebfebbc11e53ae0 |
|
MD5 | 1e533ed935329915236d289050880fef |
|
BLAKE2b-256 | 524c7b2a7a2d76e71fc04f9c3cfe1daac16344535b33fd6c5212f3cf9c8b9655 |