Dcicutils

Latest version: v8.16.3

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

Scan your dependencies

Page 26 of 27

1.5.1

Not secure
=====

`PR 120: Update ES-py Version <https://github.com/4dn-dcic/utils/pull/120>`_

* Updates elasticsearch library to 6.8.1 to take a bug fix.

1.5.0

Not secure
=====

`PR 119: More env_utils support** <https://github.com/4dn-dcic/utils/pull/119>`_

* Add ``env_utils.classify_server_url``.

1.4.0

Not secure
=====

`PR 118: Various bits of functionality in support of 4dn-status (C4-363) <https://github.com/4dn-dcic/utils/pull/118>`_

* New feature in ``qa_utils``:

* ControlledTime can now be used as a mock for the datetime module itself
in some situations, though some care is required.

* New features in ``misc_utils``:

* ``as_seconds`` so that, for example ``as_seconds(minutes=3)``
can be used to get 180.
* ``hms_now`` to get the value of ``datetime.datetime.now()``
in HMS local time (EST or EDT as appropriate).
* ``in_datetime_interval`` to test that a given time is within
a given time interval.
* ``as_datetime`` to coerce a properly formatted ``str`` to
a ``datetime.datetime``.

1.3.1

Not secure
=====

`PR 117: Repair handling of sentry_dsn in deployment_utils (C4-361) <https://github.com/4dn-dcic/utils/pull/117>`_

* Fixes to ``deployment_utils``:

* Changes the handling of sentry DSN as an argument (``--sentry_dsn``)
to the deployer.
* Doesn't raise an error if environment variables collide but with the same value.
* Uses better binding technology for binding environment variables.
* Factors in a change to the tests to not use a deprecated
name (Deployer changed to IniFileMaker) for one of the classes.
* PEP8 adjustments.

* Fixes to ``qa_utils``:

* Don't do changelog cross-check for beta versions.

* PEP8 adjustments to ``test_env_utils`` and ``test_s3_utils``.

1.3.0

Not secure
=====

`PR 115: Miscellaneous fixes 2020-10-06 <https://github.com/4dn-dcic/utils/pull/115>`_

* Fix a lurking bug in ``beanstalk_utils`` where ``delete_db`` had the wrong scope.
* Add ``qa_utils.raises_regexp`` for conceptual compatibility with ``AssertRaises`` in ``unittest``.
* Add ``misc_utils.CustomizableProperty`` and companion ``misc_utils.getattr_customized``.
* Add ``qa_utils.override_dict``, factored out of ``qa_utils.override_environ``.
* Add ``qa_utils.check_duplicated_items_by_key`` to aid in error reporting for search results.
* Add ``qa_utils.MockUUIDModule`` for being able to mock ``uuid.uuid4()``.
* Add ``qa_utils.MockBoto3``.
* Add ``qa_utils.MockBotoSQSClient`` so that ``get_queue_url`` and ``get_queue_attributes`` can be used
in testing of ``ff_utils.stuff_in_queue``.
* Add support for ``sentry_dsn`` and a ``ENCODED_SENTRY_DSN``
beanstalk environment variable in ``deployment_utils``.
* In tests for ``ff_utils``, convert tests for ``search_metadata`` and ``stuff_in_queue``
to be proper unit tests, to avoid some timing errors that occur during integration testing.

1.2.1

Not secure
=====

`PR 114: Port some utility <https://github.com/4dn-dcic/utils/pull/114>`_

* New ``ff_utils`` functions
for common pages/info we'd like to obtain:
``get_health_page``, ``get_counts_page``,
``get_indexing_status``, and ``get_counts_summary``.
* New ``CachedField`` facility.
* New ``misc_utils`` functions ``camel_case_to_snake_case``,
``snake_case_to_camel_case``, and ``make_counter``.

Page 26 of 27

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.