Dcicutils

Latest version: v8.11.0

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

Scan your dependencies

Page 10 of 25

6.3.1

=====

* New function ``env_equals`` in ``env_utils`` module.

6.3.0

=====

* Add ``opensearch_utils``, a forward-compatible OpenSearch client we should migrate to over time

* In ``codebuild_utils``:

* New method ``run_project_build_with_overrides`` to allow running builds changing the build branch and environment variables

6.2.0

=====

* In ``lang_utils``:

* New method EnglishUtils.parse_relative_time_string

* In ``misc_utils``:

* New function ``str_to_bool``

6.1.0

=====

* In ``misc_utils``:

* New decorator ``classproperty``

* New decorator ``classproperty_cached``

* New decorator ``classproperty_cached_each_subclass``

* New class ``Singleton``. Users of ``SingletonManager`` might prefer this,
but we'll continue to support both. (No deprecation for now.)

* In function ``is_valid_absolute_uri``, better handling of argument type errors.

* For ``CachedField``:

* Added a handler for ``__str__`` that returns useful information, which can also be used for ``__repr__``.

* Fixed handler for ``__repr__`` to return a properly executable expression (shared with ``__str__``).

* Improved test coverage by adding tests for some parts of the code that were not previously tested.

* In ``qa_utils``:

* New class ``MockId`` for mocking the ``id`` function in a predictable way.

* Adjust ``MOCK_QUEUE_URL_PREFIX`` to use a mocked URL that looks more
like modern AWS url, where ``queue.amazonaws.com`` has been replaced by
``sqs.us-east-1.amazonaws.com``.

6.0.0

=====

`PR 224: ElasticSearch 7 <https://github.com/4dn-dcic/utils/pull/224>`_

* Updates ElasticSearch to version 7.13.4, the highest version we can tolerate
of this library. This utils version is a requirement for using ES7 or
OpenSearch 1.3 in production.

5.3.0

=====

`PR 223: Refactored recording tech <https://github.com/4dn-dcic/utils/pull/223>`_

* Refactor ``TestRecorder`` into an ``AbstractTestRecorder`` with two concrete classes,
``RequestsTestRecorder`` and ``AuthorizedRequestsTestRecorder``. The new refactor means
it'll be easier to write other subclasses.

The new classes take their arguments slightly differently, but all test cases are updated,
and this was previously broken in (so not used in) other repositories and it can't break
anything elsewhere to change the conventions. We're treating this as a simple bug fix.

* Deprecated unused class ``MockBoto4DNLegacyElasticBeanstalkClient``.

Page 10 of 25

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.