]> Cypherpunks.ru repositories - pyderasn.git/blob - doc/install.rst
find -exec optimization
[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.0.tar.zst
8     $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/download/pyderasn-9.0.tar.zst.sig
9     $ gpg --verify pyderasn-9.0.tar.zst.sig pyderasn-9.0.tar.zst
10     $ zstd -d < pyderasn-9.0.tar.zst | tar xf -
11     $ cd pyderasn-9.0
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
18 You could use pip (**no** OpenPGP authentication is performed!) with PyPI::
19
20     $ echo pyderasn==9.0 --hash=sha256:TO-BE-FILLED > requirements.txt
21     $ pip install --requirement requirements.txt
22
23 You have to verify downloaded tarballs integrity and authenticity to be
24 sure that you retrieved trusted and untampered software. `GNU Privacy
25 Guard <https://www.gnupg.org/>`__ is used for that purpose.
26
27 For the very first time it is necessary to get signing public key and
28 import it. It is provided below, but you should check alternative
29 resources.
30
31 ::
32
33     pub   rsa2048/0x04A933D1BA20327A 2017-09-20
34           2ED6 C846 3051 02DF 5B4E  0383 04A9 33D1 BA20 327A
35     uid   PyDERASN releases <pyderasn@cypherpunks.ru>
36
37     $ gpg --auto-key-locate dane --locate-keys pyderasn at cypherpunks dot ru
38     $ gpg --auto-key-locate wkd --locate-keys pyderasn at cypherpunks dot ru
39
40 .. literalinclude:: ../PUBKEY.asc