Skip to main content

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 (using set_text)
  • ProgressBar - Progress bar for iterables with customizable text. Simply displays completed iterations out of overall length
  • AsyncProgressBar - Asynchronous version of progress bar. Has gather and as_completed methods
  • NewLiner - Context manager for adding newlines before/after code blocks
  • Timer - Context manager for code execution timing

Asynchronous Operations

  • aio class with methods:
    • request() - aiohttp/httpx GET requests
    • post() - aiohttp/httpx POST requests
    • open() - aiofiles file operations
    • sem_task() - Semaphore-controlled task execution

Number Formatting

  • num class 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 *str object, mainly for readability purpose
    • beautify() - 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.23.5.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sputchedtools-0.23.5-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file sputchedtools-0.23.5.tar.gz.

File metadata

  • Download URL: sputchedtools-0.23.5.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for sputchedtools-0.23.5.tar.gz
Algorithm Hash digest
SHA256 01fe859c4c66cad8f9463cf401c350d7005dc7e997da0b3c3f6acdca27020e76
MD5 e9d80f60fe6762d91da8e707e157faeb
BLAKE2b-256 40b6cbddcf8fe7bcf35d7660c0a73fa8dc6b60857dcae12f3eb942c9cd2906fa

See more details on using hashes here.

File details

Details for the file sputchedtools-0.23.5-py3-none-any.whl.

File metadata

  • Download URL: sputchedtools-0.23.5-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for sputchedtools-0.23.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dadb12f8c6aad741cd480131fd6029c8556f7b087257a622c22168cbd0ce39f7
MD5 ed262fab2e41996a9e153ee2910de44c
BLAKE2b-256 5264ef59e2d5849df35a6fd5533b80ffb5296490203eef3f6a5725abf01a49a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page