Preferable way is to :ref:`download <download>` tarball with the
signature from `official website <http://pyderasn.cypherpunks.ru/>`__::
- $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-7.1.tar.xz
- $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-7.1.tar.xz.sig
- $ gpg --verify pyderasn-7.1.tar.xz.sig pyderasn-7.1.tar.xz
- $ xz --decompress --stdout pyderasn-7.1.tar.xz | tar xf -
- $ cd pyderasn-7.1
+ $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-7.2.tar.xz
+ $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-7.2.tar.xz.sig
+ $ gpg --verify pyderasn-7.2.tar.xz.sig pyderasn-7.2.tar.xz
+ $ xz --decompress --stdout pyderasn-7.2.tar.xz | tar xf -
+ $ cd pyderasn-7.2
$ python setup.py install
# or copy pyderasn.py (+six.py, possibly termcolor.py) to your PYTHONPATH
You could use pip (**no** OpenPGP authentication is performed!) with PyPI::
$ cat > requirements.txt <<EOF
- pyderasn==7.1 --hash=sha256:TO-BE-FILLED
+ pyderasn==7.2 --hash=sha256:TO-BE-FILLED
six==1.14.0 --hash=sha256:236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a
EOF
$ pip install --requirement requirements.txt
def colored(what, *args, **kwargs):
return what
-__version__ = "7.1"
+__version__ = "7.2"
__all__ = (
"agg_octet_string",
with_colours=False,
with_decode_path=False,
decode_path_only=(),
+ decode_path=(),
):
def _pprint_pps(pps):
for pp in pps:
else:
for row in _pprint_pps(pp):
yield row
- return "\n".join(_pprint_pps(obj.pps()))
+ return "\n".join(_pprint_pps(obj.pps(decode_path)))
return SEQUENCEOF(), pprint_any
[obj_by_path(_path) for _path in (args.oids or "").split(",")]
if args.oids else ()
)
+ from functools import partial
if args.schema:
schema = obj_by_path(args.schema)
- from functools import partial
pprinter = partial(pprint, big_blobs=True)
else:
schema, pprinter = generic_decoder()