1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
6 VARIANTS= py27 py38 py37
7 SDESC[py37]= Simple ASN.1 encoder and decoder (PY 37)
8 SDESC[py38]= Simple ASN.1 encoder and decoder (PY 38)
9 SDESC[py27]= Simple ASN.1 encoder and decoder (PY 27)
10 HOMEPAGE= https://github.com/andrivet/python-asn1
11 CONTACT= Python_Automaton[python@ironwolf.systems]
14 SITES[main]= PYPI/a/asn1
15 DISTFILE[1]= asn1-2.2.0.tar.gz:main
21 OPTIONS_AVAILABLE= PY27 PY38 PY37
22 OPTIONS_STANDARD= none
23 VOPTS[py37]= PY27=OFF PY38=OFF PY37=ON
24 VOPTS[py38]= PY27=OFF PY38=ON PY37=OFF
25 VOPTS[py27]= PY27=ON PY38=OFF PY37=OFF
31 [PY37].USES_ON= python:py37
33 [PY38].USES_ON= python:py38
35 [PY27].USES_ON= python:py27
37 [FILE:2019:descriptions/desc.single]
44 Python-ASN1 is a simple ASN.1 encoder and decoder for Python 2.6+ and 3.3+.
49 - Support BER (parser) and DER (parser and generator) encoding
50 - 100% python, compatible with version 2.6, 2.7, 3.3 and higher
51 - Can be integrated by just including a file into your project
57 Python-ASN1 relies on `Python-Future <http://python-future.org>`_ for
58 Python 2 and 3 compatibility. To install Python-Future:
65 How to install Python-asn1
66 ==========================
68 Install from PyPi with the following:
74 or download the repository from `GitHub
75 <https://github.com/andrivet/python-asn1>`_ and install with the following:
79 python setup.py install
81 You can also simply include ``asn1.py`` into your project.
84 How to use Python-asn1
85 ======================
87 .. note:: You can find more detailed documentation on the `Usage`_ page.
94 If you want to encode data and retrieve its DER-encoded representation,
97 .. code-block:: python
101 encoder = asn1.Encoder()
103 encoder.write('1.2.3', asn1.ObjectIdentifier)
104 encoded_bytes = encoder.output()
110 If you want to decode ASN.1 from DER or BER encoded bytes, use code such
113 .. code-block:: python
117 decoder = asn1.Decoder()
118 decoder.start(encoded_bytes)
119 tag, value = decoder.read()
125 The complete documentation is available on Read The Docs:
127 `python-asn1.readthedocs.io
128 <https://python-asn1.readthedocs.io/en/latest/>`_
134 Python-ASN1 is free software that is made available under the MIT license.
135 Consult the file LICENSE that is distributed together with this library for
136 the exact licensing terms.
141 The following people have contributed to Python-ASN1. Collectively they
142 own the copyright of this software.
147 5a0cc798ae21313260a53fda7d76b45a86d72a93c58eb218b2713765ce8bf3c7 31658 asn1-2.2.0.tar.gz