A foundational Python toolkit with reusable libraries and command-line utilities.
Project description
zkits
zkits 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 zkits import check_env
info = check_env()
print(info["python_version"])
from zkits.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
zkits check_env
Use JSON output when another tool needs to parse the result:
zkits 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.1.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.1-py3-none-any.whl
(5.3 kB
view details)
File details
Details for the file zkits-0.1.1.tar.gz.
File metadata
- Download URL: zkits-0.1.1.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 |
d361ba50c6183271b6f9323a0a84dbc7e0e1ad9788ae5ba0065862233e7ebbb7
|
|
| MD5 |
5b79658919db12e8816822e11f6e6152
|
|
| BLAKE2b-256 |
f1e97a101a761efd5a415d64418902d829264d679ac939b9d8a8c72054443c02
|
File details
Details for the file zkits-0.1.1-py3-none-any.whl.
File metadata
- Download URL: zkits-0.1.1-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 |
1267a29a5491c0465572f9df242d0b52f7375f76cb768b8c1ea7dbee2907c9b3
|
|
| MD5 |
17d2ea4d619e0a4a49f1febd4180dd06
|
|
| BLAKE2b-256 |
a6f40b8e4fa7abc3b40baaf27faa6bba03fbc98fd201946946e270a678c5b768
|