Dcicutils

Latest version: v8.11.0

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

Scan your dependencies

Page 23 of 25

1.8.2

=====

`PR 126: C4-503 Grab Environment API <https://github.com/4dn-dcic/utils/pull/126>`_

* Adds get_beanstalk_environment_variables, which will return information
necessary to simulate any application given the caller has the appropriate
access keys.
* Removes an obsolete tag from create_db_snapshot, which was set erroneously.

1.8.1

=====

`PR 125: Edits to getting_started doc <https://github.com/4dn-dcic/utils/pull/125>`_

* Edited getting_started.rst doc to reflect updated account creation protocol.

1.8.0

=====

`PR 124: Add url_path_join <https://github.com/4dn-dcic/utils/pull/124>`_

* Add ``misc_utils.url_path_join`` for merging parts of URLs.
* Add ``make retest`` to rerun failed tests from previous test run.

1.7.1

=====

`PR 123: Add GA for build <https://github.com/4dn-dcic/utils/pull/123>`_

* Adds 3 Github Actions for building the library, building docs
and deploying to PyPi

1.7.0

=====

`PR 122: Speed up ff_utils unit tests, and misc small bits of functionality <https://github.com/4dn-dcic/utils/pull/122>`_

* Added an ``integratedx`` mark to possible marks in ``pytest.ini``. These
are the same as ``integrated`` but they represent test cases that have
an associated unit test that is redundant, so that the ``integratedx``
test doesn't have to be run to get full coverage.

* For ``ff_utils``:

* Split tests into a ``xxx_unit`` and
``xxx_integrated`` version. The latter is marked with new
``integratedx`` mark.

* For ``env_utils``:

* Added some test cases.

* For ``s3_utils``:

* Small remodularization of ``s3Utils`` for easier access to
some constants in testing.
* Improvements to error reporting in ``s3Utils.get_access_keys()``.

* For ``qa_utils``:

* In ``MockFileSystem``, fixed a typo in debugging typeout.
* In ``MockResponse``:

* Added a ``url=`` init arg and ``.url`` property.
* Added a .text as synonym for ``.content``.

* In ``MockBotoS3Client``:

* Extended to handle ``region_name=``.
* Added ``mock_other_required_arguments=`` and ``mock_s3_files=``
init args for use in testing.
* Added ``MockBotoS3Client``, add ``.get_object(Bucket, Key)``.

* For ``ff_utils``:

* Used ``ValueError`` rather than ``Exception`` in several
places errors are raised.
* Some very small other refactoring was also done
for modularity that should not affect behavior.

1.6.0

=====

`PR 121: More time functions <https://github.com/4dn-dcic/utils/pull/121>`_

In ``misc_utils``:

* Fix ``as_datetime`` to raise an error on bad input, allowing ``raise_error=False``
to suppress that if needed.
* Add ``as_ref_datetime`` to convert times to the reference timezone (US/Eastern by default).
* Add ``as_utc_datetime`` to convert times to UTC.
* Extend ``in_datetime_interval`` to parse all string arguments using
``as_ref_datetime``.
* Rename ``HMS_TZ`` to ``REF_TZ``, but keep ``HMS_TZ`` as a synonym for compatibility for now.
* Rename ``hms_now`` to ``ref_now``, but again keep ``hms_now`` as a synonym for compatibility for now.

The rationale for these changes is that if we deploy at other locations, it may not be HMS that is relevant, so we could be at some place with another timezone.

Page 23 of 25

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.