pysolmeters
Welcome to pysol
Copyright (C) 2013/2025 Laurent Labatut / Laurent Champagnac
pysolmeters is a set of python helpers to populate and get counters, anywhere in the code.
It can be used to instrument low-level APIs and validate stuff with unit testing or push counters toward some monitoring softwares.
Internally, it uses AtomicIntSafe, AtomicFloatSafe and DelayToCountSafe classes, wrapped by a static class Meters, which exposes helper methods.
Usage
To increment integers and floats :
Meters.aii("int_counter")
Meters.afi("float_counter")
To get integers and floats :
vi = Meters.aig("int_counter")
vf = Meters.afg("float_counter")
To put millis toward DelayToCount :
Meters.dtci("dtc1", 0.5)
To get DelayToCount instance
dtc1 = Meters.dtcg("dtc1")
To write all counters to logger :
Meters.write_to_logger()
To reset all counters :
Meters.reset()
Metadata
Release files for pysolmeters 3.13.7
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 |
|---|---|---|---|---|
| pysolmeters-3.13.7.tar.gz | 22.5 kB | Without provenance | Details for pysolmeters-3.13.7.tar.gz |
Release files / pysolmeters-3.13.7.tar.gz
| Download URL | pysolmeters-3.13.7.tar.gz |
|---|---|
| Size | 22.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40843e01768bdc6cf96e80c733cbc2c4e4ef698e0c9de6170fdcd52f47ce825b
|
|
BLAKE2b-256 checksum How to use checksums |
5fd34ef3449d1d613ec2eb56373068b03ddb570af3cf8ce9fb0a496437aafee2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for pysolmeters 3.13.7
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.