Dcicutils

Latest version: v8.11.0

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

Scan your dependencies

Page 1 of 25

8.11.0

======

* Add more schema parsing functions to `schema_utils`, including for new properties for
generating submission templates

8.10.0

======

* Added merge capabilities to structured_data.
* Added Question class to command_utils (factored out of smaht-submitr).
* Refactored out some identifying property related code from portal_object_utils to portal_utils.
* Internalized lookup_strategy related code to structured_data/portal_object_utils/portal_utils.

8.9.0

=====

* Add more schema parsing functions to `schema_utils`.

8.8.6

=====

* Added check for ES_HOST_LOCAL environment variable in ff_utils.get_es_metadata;
for running Foursight checks locally (with local ssh tunnel to ES proxy);
came up in foursight/checks/audit_checks (2024-04-23).
* Allow Python 3.12 (pyproject.toml).
* Added remove_empty_objects_from_lists options to structured_data.StructuredDataSet, defaulting
to True, which deletes empty objects from lists; however, only from the *end* of a list; if
this flag is True and there are non-empty objects following empty objects then we flag an error.
* Few general things initially related to and factored out of rclone support in smaht-submitr:
- Added extract_file_from_zip to zip_utils.
- Added http_utils with download function.
- Added get_app_specific_directory, get_os_name, get_cpu_architecture_name, short_uuid to misc_utils.
- Added are_files_equal, create_random_file to file_utils, compute_file_md5, compute_file_etag,
normalize_path, get_file_size, get_file_modified_datetime to file_utils.
- Minor extra sanity check to search_for_file in file_utils.
- Added deterministic ordering to paths returned by search_for_file in file_utils.
- Added create_temporary_file_name and remove_temporary_file tmpfile_utils.
- Minor fix to misc_utils.create_dict (do not create property only if its value is None).
- Minor updates to utility dcicutils.scripts.view_portal_object.

8.8.5

=====

* Fix bug in `creds_utils` to register portal key managers instead of parent class

8.8.4

=====
* Minor fix in structured_data to not try to resolve empty refs in norefs mode;
and added StructuredDataSet.unchecked_refs; not functionally substantive as
used (only) with smaht-submitr/submit-metadata-bundle --info --refs.
* Added nrows and nsheets to data_reader; convenience for smaht-submitr/submit-metadata-bundle --info.
* Added test_progress_bar module for progress_bar testing; would like to add more tests.
* Fixed up captured_output module to handle UTF-8 encoding to help unit testing progress_bar.
* Added hooks to progress_bar to help unit testing.
* Added a find_nth_from_end and set_nth to misc_utils to help progress_bar unit testing.
* Added format_size and format_duration misc_utils; refactor from smaht-submitr.
* Added format_datetime, parse_datetime to datetime_utils; refactor from smaht-submitr; and some tests.
* Added check_only flag to portal_utils.Portal.{post,patch}_metadata (came up in ad hoc troubleshooting).

Page 1 of 25

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.