A foundational Python toolkit with reusable libraries and command-line utilities.
Project description
zkit
zkit is a foundational Python toolkit that bundles reusable library code and command-line utilities.
Install
For local development:
python -m pip install -e .
From PyPI:
python -m pip install zkits
Library Usage
from zkit import check_env
info = check_env()
print(info["python_version"])
from zkit.utils import ApiResult, cache_with_retry
@cache_with_retry(cache_dir="quotes", expire=300, max_retries=2)
def fetch_quote(symbol: str) -> ApiResult:
return ApiResult(code=0, data={"symbol": symbol, "price": 100})
result = fetch_quote("AAPL")
print(result.success, result.is_cached)
CLI Usage
zkit check_env
Use JSON output when another tool needs to parse the result:
zkit check_env --json
Development
python -m unittest discover -s tests -v
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
zkits-0.1.0.tar.gz
(5.2 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
zkits-0.1.0-py3-none-any.whl
(5.3 kB
view details)
File details
Details for the file zkits-0.1.0.tar.gz.
File metadata
- Download URL: zkits-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed2efa7eb581a35d64ff702b14ab5d7731d0bcd988110bdcf54de348b6860a7c
|
|
| MD5 |
52ba2d5cb51bd0331e1b09434233a9aa
|
|
| BLAKE2b-256 |
417e3176a23994ea29d4fe751a84129837fb98de9b508ba23068c2758446770b
|
File details
Details for the file zkits-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zkits-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6ef510562fd88b83f7298672aee52cc6963cbba180bea5e571991219c75e108
|
|
| MD5 |
22e0a7caaab14f05f60aae83ff976089
|
|
| BLAKE2b-256 |
7f13b2194caed2540314c86392ccb0e843c217b52f6dd1c2f26596ada34160be
|