fons
Python library for various purposes.
fons - latin for "source"
Some useful functions and classes:
* aio.call_via_loop_afut - call a (async)function via (another) loop (possibly running in a different thread),
returns async future with pending result/exception thrown of the function
* argv.parse_argv - for parsing input sys.argv into dict values and list values, modifying them, and de-parsing
* func.(async_)limitcalls - a decorator for setting rate limit to (async) function/method
@limitcalls(1, 5, action='sleep')
def f(): pass -> f can only be called once per every 5 seconds, sleeps until that delay is reached
* io.update_settings - load dict from settings file, supporting multiple configs in the same or different files
* iter.flatten - "flatten" a nested list (iterator): list(flatten([2,{3:4},[5,6,(7,)],'89'])) -> [2,{3:4},5,6,7,'89']
(by default includes only "known" iterators; doesn't include: dicts, strings, namedtuples, custom defined classes)
* iter.fliter - "flatten" any iterable: list(fliter([2,{3:4},[5,6,(7,)],'89'])) -> [2,3,4,5,6,7,'8','9']
* iter.unique - keep each value of iterator only once: list(unique([2,3,2])) -> [2,3]
* sched.(Async)Ticker.loop - repeatedly execute a (async)function with a set interval (supports pandas offsets, e.g. '1B')
* time.dt_round - round datetime: dt_round(datetime.datetime(2016,3,1,2), 'D') -> datetime.datetime(2016,3,1)
* verify.verify_data - assert the correctness of input data (useful for avoiding accidental user config mistypes)
Metadata
Release files for fons 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fons-0.4.0.tar.gz | 137.7 kB | Without provenance | Details for fons-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fons-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for fons-0.4.0-py3-none-any.whl |
Total release size: 273.9 kB
Release files / fons-0.4.0.tar.gz
| Download URL | fons-0.4.0.tar.gz |
|---|---|
| Size | 137.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac098911af45d20ea29922cae99738865f0cb48db6d57886507d8fccf0f0ffb8
|
|
BLAKE2b-256 checksum How to use checksums |
cbb7ae34d9f8eb59f0bf44f8678157ba3ba443f16e3f9dfcafe7bb69e56db63d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / fons-0.4.0-py3-none-any.whl
| Download URL | fons-0.4.0-py3-none-any.whl |
|---|---|
| Size | 136.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4de6a2f56f584bd5e91bb8711181a6d299ad041c86f0f98a898987af2adeb555
|
|
BLAKE2b-256 checksum How to use checksums |
12e9184c2908e1924ba5c662ebcf0339d1cbe22d97a5ee19a663975ac70e535b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for fons 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.