swarmauri-asn1
Grammar-driven ASN.1 schema parsing (X.680) + minimal DER decoding (X.690) for swarmauri-sdk.
- Parser uses Lark Earley (MIT-only path; no standalone LALR).
- Includes a minimal DER TLV decoder covering common UNIVERSAL types, SEQUENCE/SET[/OF], CHOICE, OPTIONAL/DEFAULT, and basic tagging.
Layout
swarmauri_asn1/
├─ swarmauri_asn1/
│ ├─ grammar/asn1.lark
│ ├─ parser.py
│ ├─ tool.py
│ ├─ der_codec.py
│ ├─ transformer.py
│ ├─ ir.py
│ └─ __init__.py
├─ specs/Example.asn
├─ examples/standalone_decode.py
└─ examples/data/question.der
Quick demo (standalone)
python examples/standalone_decode.py
Expected output:
{"id": 42, "question": "Hello"}
swarmauri integration
Install into the same environment as swarmauri-sdk, then instantiate the parser:
from swarmauri.parsers import ASN1Parser
parser = ASN1Parser(asn1_files=["./specs/Example.asn"])
docs = parser.parse("examples/data/question.der", type_name="Question")
print(docs[0].content)
Ensure you have
swarmauri-sdkinstalled; this package registers via entry points.
Metadata
Release files for swarmauri_parser_asn1 0.1.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 | Actions |
|---|---|---|---|---|
| swarmauri_parser_asn1-0.1.1.tar.gz | 10.2 kB | Without provenance | Details for swarmauri_parser_asn1-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swarmauri_parser_asn1-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for swarmauri_parser_asn1-0.1.1-py3-none-any.whl |
Total release size: 21.9 kB
Release files / swarmauri_parser_asn1-0.1.1.tar.gz
| Download URL | swarmauri_parser_asn1-0.1.1.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc230a08d15933bb7987e98dccc9be65aeb2be4d4033236578fa267264377272
|
|
BLAKE2b-256 checksum How to use checksums |
bc7dad4144ad738204c8e9ef7f1d2073aae4ac982b9c2657036b58e4a7155e81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / swarmauri_parser_asn1-0.1.1-py3-none-any.whl
| Download URL | swarmauri_parser_asn1-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b50c6b268fc5b3ad3b0d017cf6b46fdfa9c270e9284ed20aa466fd34b9ed6cc
|
|
BLAKE2b-256 checksum How to use checksums |
b7f31003282ac68efcda00c5c5bcfa6687052d6bcec90a4d0689a02a7ff5ccf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for swarmauri_parser_asn1 0.1.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.