$npx skillfedfor your agent

pyasn1

Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)

Worth itPyPI Python ModulesReleased Jul 2026570.9M downloads / moBSD-2-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pyasn1-0.6.4-py3-none-any.whl
v0.6.4 · released 2026-07-09 · Python >=3.8

Yes. Pyasn1 is actively maintained, has no dependencies, carries a permissive BSD-2-Clause license, and ranks in the top 100 PyPI packages by downloads. Install it if you need to work with ASN.1-based protocols or formats; it is the standard library for this in Python and has no known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is straightforward with no runtime dependencies and low friction.
  • The package is actively maintained with recent commits, though repository activity is modest (52 stars).

License · maintenance · safety

BSD-2-Clause (permissive) — BSD-2-Clause is permissive and imposes minimal restrictions; you can use pyasn1 in commercial and proprietary projects with only attribution required.

last release 2026-07-09 (36 days) · last repo commit 2026-08-10 · 52 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 570,897,622 downloads/mo, #62 on PyPI

Verify before relying

pip install pyasn1

from pyasn1.type import univ, namedtype
from pyasn1.codec.der import encoder, decoder

class Record(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType('id', univ.Integer())
    )

record = Record()
record['id'] = 123
encoded = encoder.encode(record)
decoded, _ = decoder.decode(encoded, asn1Spec=Record())
  • Performance characteristics when handling large or deeply nested ASN.1 structures
  • Whether the contributed Asn1ate compiler is actively maintained or available separately
  • Applicability to specific protocols beyond SNMP mentioned in the description
Same gist for agents: .md · .json

What it is and what it does

Pyasn1 is a pure-Python implementation of ASN.1 types and codecs that lets you work with ASN.1 data structures as Python objects. It supports encoding and decoding via BER, CER, DER, and native Python codecs, making it suitable for any protocol or file format built on ASN.1 specification—historically SNMP, but generalized for a wide range of protocols.

You define ASN.1 structures as Python classes, instantiate them like regular objects, and serialize or deserialize them to binary form for transmission or storage. The package handles the complexity of ASN.1 tagging, optional fields, and defaults, while letting you treat the resulting objects much like Python dicts and lists. It has no runtime dependencies, works with Python 3.8 and later, and is thread-safe.

Use it for

  • Encode and decode SNMP protocol messages for network management applications
  • Serialize complex nested data structures for transmission over binary protocols
  • Convert between ASN.1 wire format and native Python dicts for easier manipulation
  • Build protocol implementations that rely on ASN.1 data serialization standards
  • Work with file formats and protocols based on ASN.1 specification

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Pyasn1 is actively maintained, has no dependencies, carries a permissive BSD-2-Clause license, and ranks in the top 100 PyPI packages by downloads. Install it if you need to work with ASN.1-based protocols or formats; it is the standard library for this in Python and has no known vulnerabilities.

Install

pyasn1 on PyPI

Before you install

Installation is straightforward with no runtime dependencies and low friction. The package is actively maintained with recent commits, though repository activity is modest (52 stars).

License in practice

BSD-2-Clause is permissive and imposes minimal restrictions; you can use pyasn1 in commercial and proprietary projects with only attribution required.

Quickstart

pip install pyasn1

from pyasn1.type import univ, namedtype
from pyasn1.codec.der import encoder, decoder

class Record(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType('id', univ.Integer())
    )

record = Record()
record['id'] = 123
encoded = encoder.encode(record)
decoded, _ = decoder.decode(encoded, asn1Spec=Record())

Verify before relying

  • Performance characteristics when handling large or deeply nested ASN.1 structures
  • Whether the contributed Asn1ate compiler is actively maintained or available separately
  • Applicability to specific protocols beyond SNMP mentioned in the description

Package facts

LicenseBSD-2-Clause permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 36 days since the last release
Last repo commit
First released
Downloads570,897,622 / month, #62 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsIntended Audience :: Telecommunications IndustryNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: CommunicationsTopic :: Software Development :: Libraries :: Python Modules

Evidence: pyasn1-0.6.4-py3-none-any.whl

Tags

Capabilities
ASN.1 encoding decodingBER DER CER codecnetwork protocol serializationSNMP protocol librarybinary data structure encodingASN.1 types PythonX.208 data format
Topics
asn1-codecprotocol-serialization

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “ASN.1 encoding decoding”

  • pyasn1Pyasn1 encodes and decodes ASN.1 data structures using BER, CER, DER,…
  • asn1toolsParses, encodes, and decodes ASN.1 messages using multiple codec…
  • asn1Encodes and decodes ASN.1 data structures using BER and DER formats,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also asn1 · asn1crypto · asn1tools · pyasn1-modules · x690 · types-pyasn1 · pysmi · scalecodec · bech32m · bencode.py