Dcicutils

Latest version: v8.11.0

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

Scan your dependencies

Page 12 of 25

4.6.0

=====

* In ``env_utils``:

* Add ``identity_name`` arguments to:

* ``apply_identity``
* ``assumed_identity_if``
* ``assumed_identity``
* ``get_identity_secrets``

* Remove buggy defaulting of value for ``get_identity_name``.
* Improve error messages in ``get_identity_secrets``.

4.5.0

=====

* A few other changes to ``lang_utils.string_pluralize`` to give more refined
control of punctuation and to allow phrases with "that is/was" or
"which is/was" qualifiers.

4.4.1

=====

* In ``ff_utils``;

* add function ``get_search_facet values`` to support count from facets from any search

4.4.0

=====

* In ``lang_utils``:

* Add "from"`` and ``"between"`` to the list of prepositions that the pluralizer understands.

* In ``obfuscation_utils``:

* Add ``is_obfuscated`` to predicate whether something is in obfuscated
form. Among other things, this enables better testing.

* Add an ``obfuscated=`` argument to ``obfuscate`` and ``obfuscate_dict``,
allowing the choice of what obfuscated value to use. The argument must
be something for which ``is_obfuscated`` returns True.

NOTE: Due to a versioning error in beta, there was no 4.3.0. The previous released version was 4.2.0.

4.2.0

=====

* In ``command_utils``:

* Add ``script_catch_errors`` context manager, borrowed from ``SubmitCGAP``.

* In ``ff_utils``:

* Add ``is_bodyless`` predicate on http methods (verbs) to say if they want a data arg.

* In ``env_base``:

* Add ``EnvBase.set_global_env_bucket`` to avoid setting ``os.environ['GLOBAL_ENV_BUCKET']`` directly.

4.1.0

=====

* Add better ``CHANGELOG.rst`` for the changes that happened in 4.0.0.
* Add unit testing for stray ``print(...)`` or ``pdb.set_trace()``
* Support for ``ENCODED_CREATE_MAPPING_SKIP``, ``ENCODED_CREATE_MAPPING_WIPE_ES``,
and ``ENCODED_CREATE_MAPPING_STRICT`` in GAC to allow ``$CREATE_MAPPING_SKIP,``
``$CREATE_MAPPING_WIPE_ES``, and ``$CREATE_MAPPING_STRICT`` in ``.ini`` files.
* Allow ``get_foursight_bucket`` to infer a bucket prefix if one is not
explicitly supplied. (The heuristic removes ``-envs`` from the global env bucket
name and uses what remains.)
* Fix test recording capability. Add (though unused) ability to record at
the abstraction level of ``authorized_request``.
* Fix various tests that had grown stale due to data changes.

* ``test_post_delete_purge_links_metadata`` (needed to be re-recorded)
* ``test_upsert_metadata`` (needed to be re-recorded)
* ``test_unified_authentication_prod_envs_integrated_only``
(simplified, removed bogus attempts at recording)
* ``test_faceted_search_exp_set`` (needed many different counts)
* ``test_some_decorated_methods_work`` (needed one different count)
* ``test_faceted_search_exp_set`` (newly recorded)
* ``test_faceted_search_users`` (newly recorded)

* Specify pytest options in pyproject.toml instead of a separate file.
* In ``env_utils``:

* Added ``EnvUtils.app_name`` to get the orchestrated app name.
* Added ``EnvUtils.app_case`` to conditionalize on ``if_cgap=`` and ``if_fourfront=``.

* In ``qa_utils``:

* Added an ``input_mocked`` context manager.
* Added ``MockLog`` and a ``logged_messages`` context manager.

Page 12 of 25

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.