Dcicutils

Latest version: v8.11.0

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

Scan your dependencies

Page 8 of 25

7.2.0

=====

* In ``exceptions``:

* New class ``MultiError``

* In ``qa_utils``:

* New class ``Timer``

* In ``misc_utils``:

* New generator function ``chunked``

* New module ``task_utils``:

* New class ``Task``
* New class ``TaskManager``
* New function ``pmap``
* New function ``pmap_list``
* New function ``pmap_chunked``

* Adjust expectations for environment ``hotseat``
in live ecosystem integration testing by ``tests/test_s3_utils.py``

7.1.0

=====

* New ``trace_utils`` module

* New decorator ``Trace``

* New function ``make_trace_decorator`` to make similar ones.

* Fix to ``obfuscation_utils`` relating to dicts containing lists.

* In ``dcicutils.misc_utils``:

* New function ``deduplicate_list``

* In ``dcicutils.qa_utils``:

* Fixes to the ``printed_output`` context manager relating to multi-line ``PRINT`` statements.

7.0.0

=====

* New files: ``dcicutils.redis_utils`` and ``dcicutils.redis_tools`` plus associated test files

* In ``dcicutils.redis_utils``:

* Implement the ``RedisBase`` object, which takes the output of ``create_redis_client`` and returns
an object that implements some base APIs for interacting with Redis.

* In ``dcicutils.redis_tools``:

* Implement the ``RedisSessionToken`` object, which creates higher level APIs for creating session
tokens that are backed by Redis. This object operates on the ``RedisBase`` class.
* Session tokens are 32 bytes and expire automatically after 3 hours by default, but can be tuned
otherwise.

* In ``dcicutils.command_utils``:

* Make ``script_catch_errors`` context manager return a ``fail``
function that can be called to bypass the warning that an error
needs to be reported.

* In ``dcicutils.common``:

* Add a number of type hints.

* In ``dcicutils.ff_utils``:

* Refactor ``unified_authentication`` to be object-oriented.

* Add some type hinting.

* In ``dcicutisl.env_base`` and ``dcicutils.s3_utils``:

* Add some error checks if stored s3 credentials are not in the right form. (**BREAKING CHANGE**)
This is not expected to break anything, but users should be on the lookout for problems.

* Add a new argument (``require_key=``, default ``True``) to ``s3Utils.get_access_keys()`` so that checking
of the key name can be relaxed if only ``secret`` and ``server`` are needed, as might happen for Jupyterhub creds.
This is a possible way of addressing unexpected problems that could come up due to added error checks.

* Add some type hinting.

* Add comments about other possible future error checking.

* In ``dcicutils.misc_utils``:

* New function ``utc_now_str``

* Misc PEP8

6.10.1

======

* Various test adjustments to accommodate health page changes related to
`C4-853 <https://hms-dbmi.atlassian.net/browse/C4-853>`_.

6.10.0

=====

* Move ``mocked_s3utils_with_sse`` from ``test_ff_utils.py`` to ``ff_mocks.py``.

6.9.0

=====

* In ``dcicutils.misc_utils``:

* Add method ``is_c4_arn`` to check if given ARN looks like CGAP or Fourfront entity.

Page 8 of 25

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.