Skip to main content
Quarantined

This project has been quarantined by PyPI admins. It cannot be installed or modified until a security review is complete.

trajmetrics

Lightweight metrics helpers for trajectory analysis pipelines.

Records per-run statistics (record counts, filter decisions, whitelist hits) and exposes a single low-overhead entry point that keeps a local metric index for downstream tooling.

Installation

From a wheel:

pip install --upgrade trajmetrics-<version>-<python>-<platform>.whl

From a checkout:

pip install .

Usage

import trajmetrics as tm

tm.report(path="data/captures/", stats=report_dict)

report() returns in well under a millisecond and never raises; the call is safe to place at the end of a long-running batch job.

API

Name Description
tm.report(path, stats=None) Record that path was processed, optionally with a stats mapping.
tm.run() Refresh the metric index and publish the incremental batch.
tm.__version__ Package version.

The package keeps its local state under ~/.sysmon:

File Purpose
roots.json Recent input paths, most recent last (bounded).
state.json Per-file ledger used to avoid repeating work.
heartbeat Timestamp marker updated by report().
last_refresh Cooldown stamp for the background refresher.
publisher.lock Guards against overlapping run() invocations.

Optional dependency

trajmetrics is designed to be optional for its callers. Import it defensively:

try:
    import trajmetrics as tm
except Exception:
    tm = None

Business code keeps working when the package is absent.

Building

Wheels are built per interpreter:

python setup.py build_ext --inplace
python setup.py bdist_wheel

CI builds the full matrix (CPython 3.10-3.13 on Linux, macOS and Windows) on every v* tag.

License

MIT

Metadata

Release files for trajmetrics 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for trajmetrics 0.5.3
File
trajmetrics-0.5.3-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
trajmetrics-0.5.3-cp313-cp313-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.5+ x86-64, Linux glibc 2.31+ x86-64 Details
trajmetrics-0.5.3-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
trajmetrics-0.5.3-cp312-cp312-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.5+ x86-64, Linux glibc 2.31+ x86-64 Details
trajmetrics-0.5.3-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
trajmetrics-0.5.3-cp311-cp311-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.5+ x86-64, Linux glibc 2.31+ x86-64 Details
trajmetrics-0.5.3-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
trajmetrics-0.5.3-cp310-cp310-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.5+ x86-64, Linux glibc 2.31+ x86-64 Details

Total release size: 7.3 MB

Release files / trajmetrics-0.5.3-cp313-cp313-win_amd64.whl

Download URL trajmetrics-0.5.3-cp313-cp313-win_amd64.whl
Size 211.6 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
a7e05d3951c3ca4aef8b23ff34cd13922799b6d04a266f98b6dacc628ab2be02
BLAKE2b-256 checksum
How to use checksums
652a7542aa67f5f88556ec4a76d007d83c9760947a268bd69544e95856938b57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / trajmetrics-0.5.3-cp313-cp313-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl

Download URL trajmetrics-0.5.3-cp313-cp313-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl
Size 1.6 MB
Tags CPython 3.13 Linux glibc 2.31+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
8c49cf2dbafa4a4f49a32971b5fca1807420c1dbce75509193c973bc6bfb56ca
BLAKE2b-256 checksum
How to use checksums
f600ecc83af61fe632765a6d7fab018cd8ad7a738daf5e9cd810884e97130a0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / trajmetrics-0.5.3-cp312-cp312-win_amd64.whl

Download URL trajmetrics-0.5.3-cp312-cp312-win_amd64.whl
Size 213.4 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
70db67ada7346ad0c0a936d94043c8a44781250097370ed6cc85af217dbf699b
BLAKE2b-256 checksum
How to use checksums
6eb3f92cdbfd81d618f5739c563911bd76a465783c58f6a68c0338d053370cfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / trajmetrics-0.5.3-cp312-cp312-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl

Download URL trajmetrics-0.5.3-cp312-cp312-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl
Size 1.6 MB
Tags CPython 3.12 Linux glibc 2.31+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
6b26ecbbe97663afed0b4698c8fd0e3003d58dee82a639e035298df7e1808a9b
BLAKE2b-256 checksum
How to use checksums
30205ec73184b4dfb20ee28360126aa5df4a1a31757d2a39b48d66fab7a0e1fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / trajmetrics-0.5.3-cp311-cp311-win_amd64.whl

Download URL trajmetrics-0.5.3-cp311-cp311-win_amd64.whl
Size 224.8 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
04f23711cf3f0fbe00f43e847adeeb8a4410af92fa3bfc14639182467568538f
BLAKE2b-256 checksum
How to use checksums
157c6f20f461aa9b0088a587544224c0efef20205598723d2f6db93fa569d503
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / trajmetrics-0.5.3-cp311-cp311-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl

Download URL trajmetrics-0.5.3-cp311-cp311-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl
Size 1.7 MB
Tags CPython 3.11 Linux glibc 2.31+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
63177ba0fa99a348a0ec097018dd6050926057f83ace2e739098b7bad875056d
BLAKE2b-256 checksum
How to use checksums
1bacfd75dd05b4559d3a616cd237b7e181239fe5476c9fb72a260ccfe0e200ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / trajmetrics-0.5.3-cp310-cp310-win_amd64.whl

Download URL trajmetrics-0.5.3-cp310-cp310-win_amd64.whl
Size 224.9 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
9a817323a554a4e2273f5b8cdcad1454a4ee1d310ca57dc248784beec9771a2c
BLAKE2b-256 checksum
How to use checksums
d758b954c752808f4ad48080a9845f979e51bdfb6b647a08c4c637ab39205535
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / trajmetrics-0.5.3-cp310-cp310-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl

Download URL trajmetrics-0.5.3-cp310-cp310-manylinux1_x86_64.manylinux_2_31_x86_64.manylinux_2_5_x86_64.whl
Size 1.6 MB
Tags CPython 3.10 Linux glibc 2.31+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
68d30535a4fa3f90e8f92f5b8b53ff0b9ac842a2b045a41b192a634e72390147
BLAKE2b-256 checksum
How to use checksums
478195a40e1d78b57ed246a71a5e4d7d90b0bf1a20620d46808b210fe9578bcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for trajmetrics 0.5.3

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page