agentrons
Agentron (Ag) — a unit of agentic work volume:
Ag = hours × Mtokens # Mtokens = tokens / 1_000_000
It fuses the two things that actually cost during an agent run — wall-clock time and tokens — into one comparable number (think kWh, not km/h).
PyPI name is
agentrons(the bareagentronis taken by an unrelated project). Import name isagentrons.
Install
pip install agentrons
Use
from agentrons import agentron, agentron_total, format_ag
agentron(1_500_000, hours=2) # 3.0 — a 2 h run over 1.5M tokens
agentron(316_887, seconds=960) # 0.0845
agentron(1_000_000, ms=3_600_000) # 1.0
format_ag(0.0845) # "0.08 Ag"
# several agents at once: sum the inputs, THEN multiply
agentron_total([(1_000_000, 1), (1_000_000, 1)]) # 4.0, not 2.0
compute_agentron(duration_ms, tokens) mirrors the reference JS
computeAgentron in gravitymir/agent_web.
Why multiply for multi-agent?
Parallel agents share the same real-time window, so their combined volume
multiplies rather than adds: two agents, each 1 h over 1M tokens, give
(1+1) × (1+1) = 4 Ag, not 2 Ag.
License
MIT. Part of https://github.com/gravitymir/agentron.
Metadata
Release files for agentrons 0.1.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 | |
|---|---|---|---|---|
| agentrons-0.1.0.tar.gz | 2.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentrons-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / agentrons-0.1.0.tar.gz
| Download URL | agentrons-0.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d455158db469d5a290ae14555d84a244d2fda773c2ce20f3014fc60ff867d80
|
|
BLAKE2b-256 checksum How to use checksums |
f0fedfee611ae9fc12e74fb4c2e5e7a1b286d5591df09f4b4c68dbcd7feb4d31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / agentrons-0.1.0-py3-none-any.whl
| Download URL | agentrons-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96a42359404a6fdb83478673ae08f1dce176d3064ed029d4798b0a5fbe90bfac
|
|
BLAKE2b-256 checksum How to use checksums |
5d6eb0ec1422febe55905b9610d9366067ef4239d5aa193d48a3322ac440601a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for agentrons 0.1.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.