Skip to main content

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 1.1.0

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 1.1.0
File Size Uploaded Provenance
asnkitrt-1.1.0.tar.gz 106.6 kB With provenance Details

Built distribution (wheel)

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

Total release size: 230.9 kB

Release files / asnkitrt-1.1.0.tar.gz

Download URL asnkitrt-1.1.0.tar.gz
Size 106.6 kB
Tags Source
SHA-256 checksum
How to use checksums
978f831e38791085055b807357bf23eaa88406a5345ba29986b95a9c1a1b1cb6
BLAKE2b-256 checksum
How to use checksums
5a0f6eb08cbde641aa879264a7cb869d52db7611cf5c224187d4e180d68b6db4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 17, 2026.

Transparency log

Release files / asnkitrt-1.1.0-py3-none-any.whl

Download URL asnkitrt-1.1.0-py3-none-any.whl
Size 124.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
126a3fb7a63d9db72845570a5edd79b56b55e59b728c645004dd5b1385005a54
BLAKE2b-256 checksum
How to use checksums
3f5535780c9db29809ceaa3135821c702f4eca05616d78e49223de561e1d17a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 17, 2026.

Transparency log

Security for asnkitrt 1.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.

Full provenance

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

Select from 2 files

Attestation for asnkitrt-1.1.0.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 17, 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.

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