Canopy

Latest version: v8.40

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

Scan your dependencies

Page 4 of 5

8.5

New Features
- Added `proxy` parameter to `Session` object for specifying proxy server configuration.
- Added `openapi_configuration` parameter to `Session` for overriding the default configuration.

8.0

Breaking Changes
- Migrated from using the [Swagger Generator](https://github.com/swagger-api/swagger-codegen) to the
[OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) for the generated client code.
- The namespace for the generated code has therefore changed from `canopy.swagger` to `canopy.openapi`.

7.0

New Features
- Added `scalar_as` helper function to `StudyResult` class.
- Added `units` mapping to `StudyScalarResults` class.
- Added `simulation_count` property to `StudyResult` class.

Breaking Changes
- Renamed `scalar_data_units` and `vector_data_units` to `scalar_units` and `vector_units` respectively in `StudyJobResult` class.

6.0

New Features
- The `ConfigResult` and `LocalConfig` classes now expose a `raw_data` property for fetching the config data
without conversion to an object.
- The `dict_to_object` function will return the passed in data if it has already been converted to an object.
- New helper function `load_study_scalar_results`.
- The `load_study` helper function has been improved to support loading the aggregated study scalar results files
and the study inputs files. Some existing optional parameters have been renamed to avoid confusion between loading job and
study data; see Breaking Changes for more details.

Breaking Changes
- The `dict_to_object` function no longer supports shallow conversions. Use the `DynamicDictToObject` class instead.
- When calling `find_study` the `jobs` property on the result is now set to `None` rather than an empty list.
- Optional arguments to `load_study` have been renamed for clarity:
- `include_inputs` is now `include_job_inputs`
- `include_scalar_results` is now `include_job_scalar_results`
- `include_vector_metadata` is now `include_job_vector_metadata`
- `include_study_inputs` has been added
- `include_study_scalar_results` has been added
- The `data` property on `LocalConfig` will now convert the data dictionary to an object on first access, to match
the behaviour of `ConfigResult`. A `raw_data` property has been added to allow access to the data without conversion.

5.3

New Features
- Add standardised helper function to prompt for authentication information.

5.1

New Features
- Expose vector metadata from `StudyJobResult`.
- Add option to always load vector metadata even if no channel specified in `load_study_job` helper function.

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.