1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[py37]= Simple ASN.1 encoder and decoder (PY37)
8 SDESC[py38]= Simple ASN.1 encoder and decoder (PY38)
9 HOMEPAGE= https://github.com/andrivet/python-asn1
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPI/a/asn1
14 DISTFILE[1]= asn1-2.4.1.tar.gz:main
19 OPTIONS_AVAILABLE= PY38 PY37
20 OPTIONS_STANDARD= none
21 VOPTS[py37]= PY38=OFF PY37=ON
22 VOPTS[py38]= PY38=ON PY37=OFF
28 [PY37].USES_ON= python:py37
30 [PY38].USES_ON= python:py38
32 [FILE:2000:descriptions/desc.single]
39 Python-ASN1 is a simple ASN.1 encoder and decoder for Python 2.7 and 3.5+.
44 - Support BER (parser) and DER (parser and generator) encoding (except
46 - 100% python, compatible with version 2.7, 3.5 and higher
47 - Can be integrated by just including a file into your project
52 Python-ASN1 relies on `Python-Future <http://python-future.org>`_ for
53 Python 2 and 3 compatibility. To install Python-Future:
59 How to install Python-asn1
60 ==========================
62 Install from PyPi with the following:
68 or download the repository from [GitHub] and install with the following:
72 python setup.py install
74 You can also simply include ``asn1.py`` into your project.
76 How to use Python-asn1
77 ======================
79 .. note:: You can find more detailed documentation on the `Usage`_ page.
86 If you want to encode data and retrieve its DER-encoded representation, use
89 .. code-block:: python
93 encoder = asn1.Encoder()
95 encoder.write('1.2.3', asn1.Numbers.ObjectIdentifier)
96 encoded_bytes = encoder.output()
101 If you want to decode ASN.1 from DER or BER encoded bytes, use code such
104 .. code-block:: python
108 decoder = asn1.Decoder()
109 decoder.start(encoded_bytes)
110 tag, value = decoder.read()
115 The complete documentation is available on Read The Docs:
117 `python-asn1.readthedocs.io
118 <https://python-asn1.readthedocs.io/en/latest/>`_
123 Python-ASN1 is free software that is made available under the MIT license.
124 Consult the file LICENSE that is distributed together with this library for
125 the exact licensing terms.
130 The following people have contributed to Python-ASN1. Collectively they own
131 the copyright of this software.
136 6931fc43f3249cb4bfd17fd68dd2a9fae130bd734ff81b1753b944369d62f018 34752 asn1-2.4.1.tar.gz