Dcicutils

Latest version: v8.11.0

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

Scan your dependencies

Page 21 of 25

1.14.0

======

`PR 137: Docker, ECR, ECS Utils <https://github.com/4dn-dcic/utils/pull/137>`_

* Adds 3 new modules with basic functionality needed for further development on the alpha stack
* Deprecates Python 3.4

1.13.0

======

`PR 136: Support for VirtualApp.post <https://github.com/4dn-dcic/utils/pull/136>`_

* Add a ``post`` method to ``VirtualApp`` for situations where ``post_json``
is not appropriate.

1.12.0

======

`PR 135: Support for ElasticSearchDataCache <https://github.com/4dn-dcic/utils/pull/135>`_

* Support for ``ElasticSearchDataCache`` and the ``es_data_cache`` decorator
in the new ``snapshot_utils`` module to allow local snapshot isolation on
tests. For now this feature is entirely OFF unless one uses environment
variable ENABLE_SNAPSHOTS=TRUE in the command invocation.

* Extend the mock for ``open`` in ``qa_utils.MockFileSystem`` to handle
file open modes involving "t" and "+".

* Support for ``qa_utils.MockFileSystem``:

* New keyword arguments
``auto_mirror_files_for_read`` and ``do_not_auto_mirror``.

* New context manager method ``mock_exists_open_remove`` that mocks these
common methods for the mock file system that is its ``self``.

* In ``misc_utils``:

* Extend ``find_association`` to allow a predicate as a search value.

* New function ``find_associations`` which is like ``find_association``
but returns a list of results, so doesn't err if more than one found.

1.11.2

======

`PR 134: Fixes to env_utils.data_set_for_env for CGAP (C4-634) <https://github.com/4dn-dcic/utils/pull/134>`_

* Fix ``env_utils.data_set_for_env`` which were returning ``'test'``
for ``fourfront-cgapwolf`` and ``fourfront-cgaptest``.
Oddly, the proper value is ``'prod'``.

1.11.1

======

`PR 133: Fix ControlledTime.utcnow on AWS (C4-623) <https://github.com/4dn-dcic/utils/pull/133>`_

* Fix ``qa_utils.ControlledTime.utcnow`` on AWS (C4-623).

1.11.0

======

`PR 132: Miscellaneous support for cgap-portal, and some unit testing (part of C4-601) <https://github.com/4dn-dcic/utils/pull/132>`_

* For ``jh_utils``:

* Better unit test for ``find_valid_file_or_extra_file`` (part of fixing C4-601).

* For ``misc_utils``:

* New function ``ignorable`` which is basically a synonym for ``ignore``, but with the sense that it's OK for the variables given as its arguments to be used elsewhere or not.
* New function ``ancestor_classes`` that returns a list of the classes from which a given class inherits.
* New function ``is_proper_subclass`` that is like ``issubclass`` but returns ``True`` only if its two arguments _are_ not the same class.
* New function ``identity`` that returns its argument.
* New functions ``count`` and ``count_if`` for counting things in a sequence.
* New function ``find_association`` for finding dictionaries in a list based on specified field criteria.
* New ``decorator`` decorator for defining (what else?) decorators. Specifically, this addresses the ``foo`` vs ``foo()`` issue, allowing both syntaxes.

Page 21 of 25

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.