qools
Utility tools from Qarium
Installation
pip install qools
Quick Start
from qools import funcutils
@funcutils.called_once
def init_connection():
print("Connecting...")
return "connected"
# First call — executes the function
result = init_connection() # Connecting...
# Subsequent calls — return cached result without execution
result = init_connection() # (no output, returns "connected")
API
funcutils
Submodule-style import: from qools import funcutils.
| Name | Description |
|---|---|
called_once(f) |
Thread-safe decorator. Ensures the function is called only once; subsequent calls return the cached result. |
DEFAULT_TIMEOUT |
Constant 5 |
DEFAULT_DELAY |
Constant 0.5 |
Documentation
Full documentation: https://qarium.github.io/qools/
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qools-1.0.0.tar.gz
(10.6 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
qools-1.0.0-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file qools-1.0.0.tar.gz.
File metadata
- Download URL: qools-1.0.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc53113b58bbf671ed1f15a4af5c2c181a8e8585adf38788adc2a993c1be491d
|
|
| MD5 |
d4e879c2d1543278975bd66f31b5bd01
|
|
| BLAKE2b-256 |
f4b4b3d520bedb16e246eda554021a600695d06b5d9d2dec10b9553d7b5cfcf5
|
File details
Details for the file qools-1.0.0-py3-none-any.whl.
File metadata
- Download URL: qools-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d3e31f29a643fcae8d9de123e274a3817d5ff4be04310fede927536797f318c
|
|
| MD5 |
19e9bd7e6406c4ac57a696096bee1dcf
|
|
| BLAKE2b-256 |
797f480f7d72a816f116f2963ce4874f1251284cd8b14d8c66e55d4c169d4c36
|