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/httpxGET requestspost()-aiohttp/httpxPOST 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/Bytes compression with multiple algorithms:- gzip, bzip2, lzma, zlib, lz4, zstd, brotli
decompress()- Auto-detective File/Directory/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.10.tar.gz
(10.3 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.10.tar.gz.
File metadata
- Download URL: sputchedtools-0.25.10.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fde3494cd02d74a402fde96e4c1112b01c50fd6c0a1bc3631827ea19af98bddf
|
|
| MD5 |
76bdd13e039caa7776d0e704c28cd506
|
|
| BLAKE2b-256 |
a5a429938a0b4649c9d8b41cfd5155e3504492803b5b457f72c70eb14abd5156
|
File details
Details for the file sputchedtools-0.25.10-py3-none-any.whl.
File metadata
- Download URL: sputchedtools-0.25.10-py3-none-any.whl
- Upload date:
- Size: 10.6 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 |
7d3d77bc80a05c2e52cbf80885c32f5014a2d4a9940250a75eb5df1b1063ed3d
|
|
| MD5 |
ac33d2756afa280b62914f93920353d4
|
|
| BLAKE2b-256 |
a9e25eb5301f00ffe04deb1dfd97d0c895c3917bd05e66c34446a3be9ef9d242
|