skip to navigation
skip to content

Not Logged In

pyasn1 0.1.9

ASN.1 types and codecs

ASN.1 library for Python

This is an implementation of ASN.1 types and codecs in Python programming language. It has been first written to support particular protocol (SNMP) but then generalized to be suitable for a wide range of protocols based on ASN.1 specification.


  • Generic implementation of ASN.1 types (X.208)
  • Fully standard compliant BER/CER/DER codecs
  • 100% Python, works with Python 2.4 up to Python 3.5
  • MT-safe


  • No ASN.1 compiler shipped with pyasn1, so by-hand ASN.1 spec compilation into Python code would be needed. But there is a project, called Asn1ate, that compiles ASN.1 documents into pyasn1 code. More info:
  • Codecs are not restartable


The pyasn1 package uses setuptools/distutils for installation. Thus do either:

$ pip install pyasn1


$ easy_install pyasn1


$ tar zxf pyasn1-0.1.9.tar.gz

$ cd pyasn1-0.1.9

$ python install

$ python test # run unit tests


Perhaps a typical use would involve [by-hand] compilation of your ASN.1 specification into pyasn1-backed Python code at your application.

For more information on pyasn1 APIs, please, refer to the .

Also refer to example modules. Take a look at pyasn1-modules package – maybe it already holds something useful to you.


The pyasn1 package is distributed under terms and conditions of BSD-style license. See LICENSE file in the distribution. Source code is freely available from:


Please, send your comments and fixes to mailing list at

Written by Ilya Etingof <>

File Type Py Version Uploaded on Size
pyasn1-0.1.9-py2.4.egg (md5) Python Egg 2.4 2015-09-28 88KB
pyasn1-0.1.9-py2.5.egg (md5) Python Egg 2.5 2015-09-28 87KB
pyasn1-0.1.9-py2.6.egg (md5) Python Egg 2.6 2015-09-28 87KB
pyasn1-0.1.9-py2.7.egg (md5) Python Egg 2.7 2015-09-28 87KB
pyasn1-0.1.9-py2.py3-none-any.whl (md5) Python Wheel 3.5 2015-09-28 35KB
pyasn1-0.1.9-py3.1.egg (md5) Python Egg 3.1 2015-09-28 88KB
pyasn1-0.1.9-py3.2.egg (md5) Python Egg 3.2 2015-09-28 89KB
pyasn1-0.1.9-py3.3.egg (md5) Python Egg 3.3 2015-09-28 93KB
pyasn1-0.1.9-py3.4.egg (md5) Python Egg 3.4 2015-09-28 91KB
pyasn1-0.1.9-py3.5.egg (md5) Python Egg 3.5 2015-09-28 91KB
pyasn1-0.1.9.tar.gz (md5) Source 2015-09-28 74KB
  • Downloads (All Versions):
  • 95102 downloads in the last day
  • 575253 downloads in the last week
  • 2576751 downloads in the last month