Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

asnkitrt

Encodes and decodes ASN.1 using compiled specifications: .asni files produced by the asnkitcc compiler. It never parses ASN.1 and has no dependencies.

>>> import asnkitrt
>>> foo = asnkitrt.load_asni_file('foo.asni', 'uper')
>>> encoded = foo.encode('Question', {'id': 1, 'question': 'Is 1+1=3?'})
>>> foo.decode('Question', encoded)
{'id': 1, 'question': 'Is 1+1=3?'}

The supported codecs are BER, DER, GSER, JER, OER, PER, UPER and XER. Each is imported only when used. A Rust runtime with the same behavior, and a WebAssembly one for browsers and Node.js, live in the same repository, which also documents the formats and the known limitations.

An .asni file can carry a nonce, be bound to a string, and be signed and encrypted. Such a file only loads when the caller says what to expect. Signed and encrypted files need the cryptography package, which is an optional extra:

pip install asnkitrt[signing]
pip install asnkitrt[encryption]

License

MIT. The compiler, asnkitcc, is Apache-2.0, and an application that only uses asnkitrt does not depend on it.

Metadata

Release files for asnkitrt 2.0.0rc1

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

Source distribution (sdist)

Source distribution for asnkitrt 2.0.0rc1
File Size Uploaded Provenance
asnkitrt-2.0.0rc1.tar.gz 107.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for asnkitrt 2.0.0rc1
File Interpreter ABI Platform
asnkitrt-2.0.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 233.1 kB

Release files / asnkitrt-2.0.0rc1.tar.gz

Download URL asnkitrt-2.0.0rc1.tar.gz
Size 107.8 kB
Tags Source
SHA-256 checksum
How to use checksums
06acda77c80e3454c03e1f8529f34b9b73608093107c36098558e3c205a9b8ee
BLAKE2b-256 checksum
How to use checksums
b2c7ab3b5f1da7794aa90d2b34afbea5325b79936d080e3057a1c777cb45b074
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / asnkitrt-2.0.0rc1-py3-none-any.whl

Download URL asnkitrt-2.0.0rc1-py3-none-any.whl
Size 125.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd2e74b022e889a82c74fb95d65511e65166216faaa6fe9aca844e0621608bda
BLAKE2b-256 checksum
How to use checksums
cab1bb8625a9d9e17dab963bf23a9b719675722263d88354021d0c749ff5cc50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for asnkitrt 2.0.0rc1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for asnkitrt-2.0.0rc1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

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.

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