maverage - Moving Average
About maverage
maverage provides a Simple Moving Average implementation that delays the average calculation until requested - useful for programs that collect data in real-time and delay processing until later.
Basic Usage - Simple
>>> s = Simple(5) # Simple object with internal buffer of size 5.
>>> s.input(4)
>>> s.input(2)
>>> s.average
3.0
>>>s.input(6).average
4.0
Testing
maverage tests are written using pytest. The dev Hatch environment
includes pytest (refer to the Building section for details on how
to set it up). Once inside the dev environment, run the tests by simply running
pytest.
Building
maverage is set up to use Hatch for building.
Create a development environment using: hatch env create dev. Alternatively,
use hatch shell -e dev to (1) created it if it doesn't exist and (2) open it
in a shell session.
Note: To use the environment within VS Code, use the directory pointed to by the
hatch find env devcommand.
The project can be built, reversioned, and published with hatch's build,
version, and publish commands, respectively.
License
This project uses the MIT License. Refer to LICENSE.txt for details.
Metadata
Release files for maverage 0.0.1
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 | |
|---|---|---|---|---|
| maverage-0.0.1.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maverage-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / maverage-0.0.1.tar.gz
| Download URL | maverage-0.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fa93f140da6763d9362ce2665c4b6893d0d321536bf7cd4680335a18589f8dd
|
|
BLAKE2b-256 checksum How to use checksums |
62d48b493b9c53886560053a1ca49e3533da61ac569872080236134b96cf46ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.24.0
|
Release files / maverage-0.0.1-py3-none-any.whl
| Download URL | maverage-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ae635c982a6ada84eaff3551ee3df400b3751a0d17d5001ca7437864d97427f
|
|
BLAKE2b-256 checksum How to use checksums |
7021b7e3c3a7bcc65935e170edd5682e63c169fcfd4f944f92602c872bb617b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.24.0
|
Security for maverage 0.0.1
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.