Skip to main content

ASN.1 types and codecs

Project description

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.

FEATURES

  • 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

MISFEATURES

  • 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: https://github.com/kimgr/asn1ate

  • Codecs are not restartable

INSTALLATION

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

$ pip install pyasn1

or

$ easy_install pyasn1

or

$ tar zxf pyasn1-0.1.9.tar.gz

$ cd pyasn1-0.1.9

$ python setup.py install

$ python setup.py test # run unit tests

OPERATION

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 http://pyasn1.sourceforge.net .

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

AVAILABILITY

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:

http://pyasn1.sf.net

FEEDBACK

Please, send your comments and fixes to mailing list at https://sourceforge.net/mailarchive/forum.php?forum_name=pyasn1-users

Written by Ilya Etingof <ilya@glas.net>

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyasn1-0.1.9.tar.gz (75.9 kB view hashes)

Uploaded Source

Built Distributions

pyasn1-0.1.9-py3.5.egg (93.8 kB view hashes)

Uploaded Source

pyasn1-0.1.9-py3.4.egg (94.2 kB view hashes)

Uploaded Source

pyasn1-0.1.9-py3.3.egg (96.1 kB view hashes)

Uploaded Source

pyasn1-0.1.9-py3.2.egg (91.7 kB view hashes)

Uploaded Source

pyasn1-0.1.9-py3.1.egg (90.4 kB view hashes)

Uploaded Source

pyasn1-0.1.9-py2.py3-none-any.whl (36.5 kB view hashes)

Uploaded Python 2 Python 3

pyasn1-0.1.9-py2.7.egg (89.6 kB view hashes)

Uploaded Source

pyasn1-0.1.9-py2.6.egg (89.7 kB view hashes)

Uploaded Source

pyasn1-0.1.9-py2.5.egg (89.9 kB view hashes)

Uploaded Source

pyasn1-0.1.9-py2.4.egg (91.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page