]> Cypherpunks.ru repositories - pyderasn.git/blob - doc/install.rst
64edda09034aad9f939728191adc932ed91e7ad4
[pyderasn.git] / doc / install.rst
1 Install
2 =======
3
4 Preferable way is to :ref:`download <download>` tarball with the
5 signature from `official website <http://www.pyderasn.cypherpunks.ru/>`__::
6
7     $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/download/pyderasn-9.3.tar.zst
8     $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/download/pyderasn-9.3.tar.zst.sig
9     $ gpg --verify pyderasn-9.3.tar.zst.sig pyderasn-9.3.tar.zst
10     $ zstd -d < pyderasn-9.3.tar.zst | tar xf -
11     $ cd pyderasn-9.3
12     $ python setup.py install
13     # or copy pyderasn.py (possibly termcolor.py) to your PYTHONPATH
14
15 * ``termcolor`` is an optional dependency used for output colourizing.
16 * ``urwid`` is an optional dependency used for :ref:`interactive browser <browser>`.
17 * ``dateutil`` is an optional dependency used for ``.totzdatetime()`` method.
18
19 You could use pip (**no** OpenPGP authentication is performed!) with PyPI::
20
21     $ echo pyderasn==9.3 --hash=sha256:TO-BE-FILLED > requirements.txt
22     $ pip install --requirement requirements.txt
23
24 You have to verify downloaded tarballs integrity and authenticity to be
25 sure that you retrieved trusted and untampered software. `GNU Privacy
26 Guard <https://www.gnupg.org/>`__ is used for that purpose.
27
28 For the very first time it is necessary to get signing public key and
29 import it. It is provided below, but you should check alternative
30 resources.
31
32 ::
33
34     pub   rsa2048/0x04A933D1BA20327A 2017-09-20
35           2ED6 C846 3051 02DF 5B4E  0383 04A9 33D1 BA20 327A
36     uid   PyDERASN releases <pyderasn@cypherpunks.ru>
37
38     $ gpg --auto-key-locate dane --locate-keys pyderasn at cypherpunks dot ru
39     $ gpg --auto-key-locate wkd --locate-keys pyderasn at cypherpunks dot ru
40
41 .. literalinclude:: ../PUBKEY.asc