No project description provided
Project description
sputchedtools
Simple, powerfull different-purpose module, initially created to reduce repetetive functions defenitions across projects
Installation
pip install sputchedtools
Features
Miscellaneous Classes
Anim- Animated loading 'spinner' with customizable characters and text (usingset_text)ProgressBar- Progress bar for iterables with customizable text. Simply displays completed iterations out of overall lengthAsyncProgressBar- Asynchronous version of progress bar. Hasgatherandas_completedmethodsNewLiner- Context manager for adding newlines before/after code blocksTimer- Context manager for code execution timing
Asynchronous Operations
aioclass with methods:_request()-aiohttp/httpx/niquestsManually-specified requestrequest()-aiohttp/httpx/niquestsGET requestspost()-aiohttp/httpx/niquestsPOST requestsopen()-aiofilesfile operationssem_task()- Semaphore-controlled task execution
Number Formatting
numclass with methods:shorten()- Convert numbers to shortened form (e.g., 1000000 → 1M)unshorten()- Convert shortened numbers back (e.g., 1M → 1000000)decim_round()- Smart decimal rounding, returns *strobject, mainly for readability purposebeautify()- Combine shortening and decimal rounding
Web3 Utilities
Web3Misc- Ethereum-related utilities:- Gas price monitoring
- Transaction nonce tracking
- Gas estimation (-monitoring)
Minecraft Version Management
MC_Versions- Minecraft version manifest handling - Version sorting, list to stringified range converter
Compression Tools
compress()- File/Directory/Stream/Bytes compression with multiple algorithms:- gzip, bzip2, lzma, zlib, lz4, zstd, brotli
decompress()- Auto-algo-detective File/Directory/Stream/Bytes decompression
Usage Example
Checkout test.py
Running test.py
git clone https://github.com/Sputchik/sputchedtools.git && cd sputchedtools
pip install -r reqs
python3 test.py
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
sputchedtools-0.25.15.tar.gz
(10.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sputchedtools-0.25.15.tar.gz.
File metadata
- Download URL: sputchedtools-0.25.15.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8f841e4ff3544de9cba3008c497b597cd768abf29f262d42c7942ed7111f547
|
|
| MD5 |
82d82bddec0036fe8f83a2df3a79c8d5
|
|
| BLAKE2b-256 |
fd1c3b2b79bcf29eb3ad2f716b3b470aec7331d88cf94f40fa8dd1a3d490cbf2
|
File details
Details for the file sputchedtools-0.25.15-py3-none-any.whl.
File metadata
- Download URL: sputchedtools-0.25.15-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d07c3ad1e1fb26e6cc541bba81d10ee631f2b6ffa5b819638891d981533b799
|
|
| MD5 |
8b559bb97a724459a363b47013d93aa2
|
|
| BLAKE2b-256 |
28d735ec52d63fcac6792dda6ebb1540c4220d027178402ee1e631422ef4218a
|