Skip to main content

Collection of Python utilities

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/niquests Manually-specified request
    • request() - aiohttp/httpx/niquests GET requests
    • post() - aiohttp/httpx/niquests 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/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.30.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distributions

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

sputchedtools-0.30.2-cp313-cp313-win_arm64.whl (151.4 kB view details)

Uploaded CPython 3.13Windows ARM64

sputchedtools-0.30.2-cp313-cp313-win_amd64.whl (183.1 kB view details)

Uploaded CPython 3.13Windows x86-64

sputchedtools-0.30.2-cp313-cp313-musllinux_1_2_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

sputchedtools-0.30.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

sputchedtools-0.30.2-cp313-cp313-macosx_11_0_arm64.whl (205.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

sputchedtools-0.30.2-cp312-cp312-win_arm64.whl (151.5 kB view details)

Uploaded CPython 3.12Windows ARM64

sputchedtools-0.30.2-cp312-cp312-win_amd64.whl (183.6 kB view details)

Uploaded CPython 3.12Windows x86-64

sputchedtools-0.30.2-cp312-cp312-musllinux_1_2_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

sputchedtools-0.30.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

sputchedtools-0.30.2-cp312-cp312-macosx_11_0_arm64.whl (206.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

sputchedtools-0.30.2-cp311-cp311-win_arm64.whl (153.9 kB view details)

Uploaded CPython 3.11Windows ARM64

sputchedtools-0.30.2-cp311-cp311-win_amd64.whl (183.5 kB view details)

Uploaded CPython 3.11Windows x86-64

sputchedtools-0.30.2-cp311-cp311-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

sputchedtools-0.30.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

sputchedtools-0.30.2-cp311-cp311-macosx_11_0_arm64.whl (203.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

sputchedtools-0.30.2-cp310-cp310-win_arm64.whl (154.3 kB view details)

Uploaded CPython 3.10Windows ARM64

sputchedtools-0.30.2-cp310-cp310-win_amd64.whl (182.6 kB view details)

Uploaded CPython 3.10Windows x86-64

sputchedtools-0.30.2-cp310-cp310-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

sputchedtools-0.30.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

sputchedtools-0.30.2-cp310-cp310-macosx_11_0_arm64.whl (203.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for sputchedtools-0.30.2.tar.gz
Algorithm Hash digest
SHA256 5c8364e4d8966a8819fdfb7e2b86300fb7262fcef7fe3e9bf6e26a2f5e7ea3a2
MD5 40662c801dce9744fae859f24010a563
BLAKE2b-256 884fd10202d9ef62754ad90fa83ad67226374820680afb7850a88fe3d11690b0

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp313-cp313-win_arm64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp313-cp313-win_arm64.whl
Algorithm Hash digest
SHA256 c04f45a7b25f4268d774809280c01ded9244059d2512b23d0f057462bd0fe930
MD5 3d164a9dcce020dc257fdb65d77a5e46
BLAKE2b-256 67fcbcaa9e16486a1a66365d3733297593552f308a7f5535a8f244933e40d440

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 50d957b2c229843a7b14ff8e6021e95ff1040b14de2ea432407d0d1ede5aa758
MD5 7fa690c9623c79132202e82cb970848f
BLAKE2b-256 d09239a0c0cbf00f3d6a572b14332d9dcf436c2bacf6c2161e6d5f3cfef84cd8

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ea9c054b284a8eeb5b046a921d182af88ffc1c52e2d84276e328223142a5ec80
MD5 c8e5fa9a7a12bc7c47f5163533ad0e7d
BLAKE2b-256 7b8e36f59f9525466832003aea61ff3e1f061a4b34f3c5a03b5ed1d7ef78d85f

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f5fe48214e172beab2f0f172e906b77504563de0ca1152138e20b13a6c354c86
MD5 6a79ff8321646dbc37c49a11c9cd7d82
BLAKE2b-256 34ed93a1fa0c0b5a08379f43f803a44f5b57de273ae1f744516415bd65caae68

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1d2bb67134261960a6ece5db76edc00aee99db86831e438d6fed28978239392
MD5 ad36b38a1eb14164cc76f194e1c39096
BLAKE2b-256 dae30ff17fd47211c43040c98635507d3f57bf63add40203ee3dcc198ce37f19

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp312-cp312-win_arm64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp312-cp312-win_arm64.whl
Algorithm Hash digest
SHA256 ee6337d103757c17fbb3d2365803c3ec6c5c997295af74f0882de7876dd1fec6
MD5 08780d5deb9fadbdb82140b2c55c4700
BLAKE2b-256 bfe858a2edf22b5bc3b1217bd44f16862f1e68dba4bc1081460ffcc9cab12d82

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9aa24431cb80e6ea808efbd7b20ac8477f1131a723bf867a8a3768defbabdf10
MD5 a3e9ac9042347baae301d676f46931c7
BLAKE2b-256 0a129656d649fe03a1d7b61e7d4deae1f3ddedc1b04b84c5db80caf7eba278ab

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 21398b676e06100523bcd8f8983d1b15b89486c0cc048b16429ba8275fa0fe3e
MD5 4c3a7bfee11dc9844cf8093bb1e18257
BLAKE2b-256 1fea7f5b3ebc8f3969bed4ff9f78bcaaa627d908c021fcfb3cf971f330467030

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 35a88d60933d0118fc113396a957beb631ad0c0c2efde7405e7d01d024fa18ce
MD5 812d460776df6d92d69ee3cb34fd8413
BLAKE2b-256 b383af1cf4cce1737896bea6e5b78594eeb16be134f41b5adfdcb108cb70a991

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a59b4a6b3f4c03a6c104c7868c643d8e6d9c5b4b38dc7275b9cac952cbd6b6f
MD5 059a3a1e4f414ba7367c51f39c439b68
BLAKE2b-256 0aa3df4d703c1eb7541accb361bb1c4dee3e24ca5f59d0571465be41046c4862

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp311-cp311-win_arm64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp311-cp311-win_arm64.whl
Algorithm Hash digest
SHA256 7cd5764f7496ce685f8b2aa6f252d5dd59cbe5f004007f611b7f6d70d486131c
MD5 cab78fd4ea3888d63f5bbcda31971978
BLAKE2b-256 cb31c961a29ebdfe5086620055bb99712bc5de3afcb0f496f524c5606d7ad76f

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 24604949558e049df22ffedf2360a54078822ede180f29af54e911597b8d4fe8
MD5 7524688da98940114e0e5a7854e9d2a9
BLAKE2b-256 58ba6da677a4099b56ac4f68bd47818887a57e5f7b1f74823849b0b42ba76657

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e02f78ce820300c55ce5982688251c6e541f8c7955474435edbf7c162eaca93f
MD5 b9394af6af644925849a1bb8a2ca0b22
BLAKE2b-256 9fdede7adc83f6b0216acba78149a91a93fa7fd57250605504e5be45e7286bbd

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a5cd859e4fe20dc404ec84f061bf2351081ca750d14d8050e27df9a7e2e0bab9
MD5 33b318ca9acd88cbe828f498b8aa1063
BLAKE2b-256 83ae8f51576d4b529eaf40adffd1009bcd57440356bc4787075e7a1347c977ca

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f871d23b7a5e8c63ba29e37669ee952254b92edfc19e53893022b75292bdbe94
MD5 c91c15fde6169ffb245f0f7c532bfe40
BLAKE2b-256 aa2f96b759d7747cc1d6d26cbf53bf5c92230a84dc85a08bc93dcf2ebf692ab4

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp310-cp310-win_arm64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp310-cp310-win_arm64.whl
Algorithm Hash digest
SHA256 0463fb3f1e3c94aef0a3c7d7f353d393c8edd7f3ae5040a4ff94228fc2f645be
MD5 308a7cf4f4d6b68febfa1a1596b7613a
BLAKE2b-256 67fc0320f754a61b57ab89940a6a7ecbba00e36457cd1cab447360003475aba1

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b489091a250280f1ec26f036db60de4b9881202c92d37d3ec1a414a16664dcff
MD5 c2a71069f03acc5214a05dff97cf1588
BLAKE2b-256 bfac3c5550ef4cd813483bfd745689f5349161f9d43bba56fc76c4a9120fa309

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 714ee727e51ff7954ac47a2b868e202f588fe18ceeb1c506fb6d271427582d42
MD5 cae9319cae922e51c022e2afd8684284
BLAKE2b-256 c935e6b21547c825bf80dd52161bf177f3d8a0400bc67c0bd3e34eba54641d40

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 470a33680dfe043cf70cf007f73135f3280d4792d3cd95225115677d2ee013b0
MD5 55fd5b0cb2ff527c93367445e3d57da1
BLAKE2b-256 dfd5e571014444136b47260094cad27d0bbfe9a71ab7994d343b6bfa017c1a4d

See more details on using hashes here.

File details

Details for the file sputchedtools-0.30.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sputchedtools-0.30.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c67525e64975525fd17a057838f0dd7d818bec2182aac10708cae66bc581a35
MD5 b870f43cb15ecece1ccb205dcd25c2aa
BLAKE2b-256 bbc5a2fdf8548b3fed900558fbb706f7cf696c81af3f6871ca6df1f20c2da30e

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