Install
=======

Preferable way is to :ref:`download <download>` tarball with the
signature from `official website <http://www.pyderasn.stargrave.org/>`__::

    $ fetch http://www.pyderasn.stargrave.org/download/pyderasn-9.4.tar.zst
    $ fetch http://www.pyderasn.stargrave.org/download/pyderasn-9.4.tar.zst.sig
    $ ssh-keygen -Y verify -f PUBKEY-SSH.pub -I stargrave@stargrave.org -n file \
        -s stargrave-9.4.tar.zst.sig <stargrave-9.4.tar.zst
    $ zstd -d <pyderasn-9.4.tar.zst | tar xf -
    $ cd pyderasn-9.4
    $ python setup.py install
    # or copy pyderasn.py (possibly termcolor.py) to your PYTHONPATH

* ``termcolor`` is an optional dependency used for output colourizing.
* ``urwid`` is an optional dependency used for :ref:`interactive browser <browser>`.
* ``dateutil`` is an optional dependency used for ``.totzdatetime()`` method.

You have to verify downloaded tarballs integrity and authenticity to be
sure that you retrieved trusted and untampered software.
`OpenSSH <https://www.openssh.com/>`__ is used for that purpose.

.. literalinclude:: ../PUBKEY-SSH.pub
