Concepts

Latest version: v0.9.2

Safety actively analyzes 623035 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

0.9.3

------------------------------

0.9.2

-------------

Add ``make_object_label`` and ``make_property_label`` keyword arguments to
``Lattice.graphviz()`` allowing to override the formatting of object and
property labels (e.g. ``make_object_labels=', '.join`` objects labels as
comma-separated object lists.

0.9.1

-------------

Tag Python 3.8 support.

0.9

-----------

Make the ``frmat`` argument (e.g. ``'table'``, ``'cxt'``, ``'csv'``) for
reading/writing ``Context`` objects case-insensitive (mirroring
case-insensitivity of format inference from filename suffixes).

Add ``Context.tojson(path_or_fileonj)`` and ``Context.fromjson(path_or_fileonj)``
for long term storage format serialized as json. This custom format can include
the lattice structure information so that e.g. big lattices that are expensive to
compute can be stored and loaded without the need to re-calculate the lattice.

Add ``Context.todict()`` and ``Context.fromdict()`` for custom format as plain
Python ``dict``. Can be (de)serialized with other tools such as pickle,
``pprint.pprint()`` + ``ast.literal_eval()``, yaml, toml, xml, a database,
etc.

0.8.1

-------------

Drop Python 3.4 support.

0.8

-----------

Add ``.crc32()``-method to ``Context`` and ``Definition`` returning the
hex-encoded crc32 of their context table string.

Include crc32 in the ``__repr__`` of context objects.

Add recipe for context from ``pandas.DataFrame`` to docs.

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.