Dectate

Latest version: v0.13

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

Scan your dependencies

Page 2 of 3

0.10

=================

- **Deprecated** The ``autocommit`` function is deprecated. Rely on
the ``commit`` class method of the ``App`` class instead for a more
explicit alternative.

- **Deprecated** The ``auto_query_tool`` function is deprecated. Rely
on ``dectate.query_tool(MyApp.commit())`` instead. Since the commit
method returns an iterable of ``App`` classes that are required to
commit the app class it is invoked on, this returns the right
information.

- ``topological_sort`` function is exposed as the public API.

- A ``commit`` class method on ``App`` classes.

- Report on inconsistent uses of factories between different directives'
``config`` settings as well as ``factory_arguments`` for registries. This
prevents bugs where a new directive introduces the wrong factory for
an existing directive.

- Expanded internals documentation.

0.9.1

==================

- Fix a subtle bug introduced in the last release. If
``factory_arguments`` were in use with a config name only created in
that context, it was not properly cleaned up, which in some cases
can make a commit of a subclass get the same config object as that
of the base class.

0.9

================

- Change the behavior of ``query_tool`` so that if it cannot find an
action class for the directive name the query result is empty
instead of making this an error. This makes ``auto_query_tool`` work
better.

- Introduce ``auto_query_tool`` which uses the automatically found
app classes as the default app classes to query.

- Fix tests that use ``__builtin__`` that were failing on Python 3.

- Dependencies only listed in ``factory_arguments`` are also created
during config creation.

0.8

================

- Document how to refer to builtins in Python 3.

- Expose ``is_committed`` method on ``App`` subclasses.

0.7

================

- Fix a few documentation issues.

- Expose ``convert_dotted_name`` and document it.

- Implement new ``convert_bool``.

- Allow use of directive name instead of Action subclass as argument
to Query.

- A ``query_app`` function which is especially helpful when writing
tests for the query tool -- it takes unconverted filter arguments.

- Use newer version of ``with_metaclass`` from six.

- Expose ``NOT_FOUND`` and document it.

- Introduce a new ``filter_get_value`` method you can implement if the
normal attribute getting and ``filter_name`` are not enough.

0.6

================

- Introduce a query system for actions and a command-line tool that
lets you query actions.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.