$npx skillfedfor your agent

asn1

Python-ASN1 is a simple ASN.1 encoder and decoder for Python 2.7+ and 3.5+.

Worth itPyPI UtilitiesReleased May 20261.7M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — asn1-3.3.0-py2.py3-none-any.whl
v3.3.0 · released 2026-05-15 · 1 runtime deps: enum-compat

Yes. The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and installs with minimal friction. It is suitable for any project needing ASN.1 encoding/decoding in pure Python across a wide range of Python versions.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a single pure-Python runtime dependency (enum-compat).
  • Actively maintained with a recent release and no known vulnerabilities.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations.

last release 2026-05-15 (91 days) · last repo commit 2026-05-15 · 110 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,747,756 downloads/mo, #3,595 on PyPI

Verify before relying

pip install asn1

import asn1

encoder = asn1.Encoder()
encoder.start()
encoder.write('1.2.3', asn1.Numbers.ObjectIdentifier)
encoded_bytes = encoder.output()

decoder = asn1.Decoder()
decoder.start(encoded_bytes)
tag, value = decoder.read()
  • Whether enum-compat is available for all supported Python versions (2.7, 3.5–3.14)
  • Performance characteristics when encoding/decoding large or deeply nested structures
  • Use in certificate and cryptographic applications beyond what the fact sheet documents
Same gist for agents: .md · .json

What it is and what it does

Python-ASN1 is a pure-Python library for encoding and decoding ASN.1 data structures, the standard format used in cryptography, network protocols, and structured data interchange. It supports both BER (parser) and DER (parser and generator) encoding formats, including indefinite lengths, and handles most common ASN.1 types including REAL values. The library is designed to be lightweight and portable—it can be integrated by simply including a file in your project or installed via pip.

The package provides two main interfaces: an Encoder class for converting Python data into ASN.1 binary format, and a Decoder class for parsing ASN.1 bytes back into readable values. Recent versions add context-manager support for cleaner resource handling and comply with ASN.1:2008 standards. It targets Python 2.7 and 3.5 through 3.14, relying only on enum-compat as a runtime dependency.

Use it for

  • Encode and decode structured data in network protocols that use ASN.1 serialization
  • Work with Object Identifiers (OIDs) and other ASN.1 primitives in protocol implementations
  • Integrate ASN.1 handling into legacy Python 2.7 systems without external C dependencies
  • Parse and generate ASN.1-encoded messages in compliance testing or protocol analysis
  • Build tools that transform ASN.1-encoded data across different encoding formats

Worth the install?

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

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and installs with minimal friction. It is suitable for any project needing ASN.1 encoding/decoding in pure Python across a wide range of Python versions.

Install

asn1 on PyPI

Before you install

Low install friction with a single pure-Python runtime dependency (enum-compat). Actively maintained with a recent release and no known vulnerabilities.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations.

Quickstart

pip install asn1

import asn1

encoder = asn1.Encoder()
encoder.start()
encoder.write('1.2.3', asn1.Numbers.ObjectIdentifier)
encoded_bytes = encoder.output()

decoder = asn1.Decoder()
decoder.start(encoded_bytes)
tag, value = decoder.read()

Verify before relying

  • Whether enum-compat is available for all supported Python versions (2.7, 3.5–3.14)
  • Performance characteristics when encoding/decoding large or deeply nested structures
  • Use in certificate and cryptographic applications beyond what the fact sheet documents

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
enum-compat
MaintenanceActively maintained 91 days since the last release
Last repo commit
First released
Downloads1,747,756 / month, #3,595 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming 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.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Utilities

Evidence: asn1-3.3.0-py2.py3-none-any.whl

Tags

Capabilities
ASN.1 encoder decoderBER DER encodingASN.1 serializationbinary data encodingASN.1 REAL typeobject identifier encodingASN.1 parser
Topics
asn1-encodingprotocol-parsingbinary-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 encoder decoder”

  • asn1Encodes and decodes ASN.1 data structures using BER and DER formats,…
  • asn1cryptoA pure Python library for parsing and serializing ASN.1 structures,…
  • x-transformersx-transformers provides modular transformer building blocks—encoder,…

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

More Utilities 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
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / 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
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also asn1tools · pyasn1 · x690 · asn1crypto · bencode.py · types-pyasn1 · json-numpy · mutf8 · py-multibase · databento-dbn