Py42

Latest version: v1.27.1

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

Scan your dependencies

Page 3 of 14

1.20.0

Added

- New file event filter query `sdk.queries.fileevents.filers.risk_filter.RiskScore` to search for file events based on riskScore values.

Changed

- Updated `sdk.queries.alerts.filters.alerts_filter.Severity` enum to use updated `riskSeverity` search propert instead of deprecated `severity`.
- New values `CRITICAL` and `MODERATE`.
- Aliased previous `severity.MEDIUM` > `riskSeverity.MODERATE` for backwards compatibility.
- Updated custom exception behavior such that the parameters relating to the exception are:
- Printed in addition to the error message.
- Accessible as properties of the custom exception class.

1.19.3

Removed

- Removed method Get_alert_log(), method was no longer functional

Changed

- updated URI paths to use new standardized versioning scheme

1.19.2

Fixed

- Decreased `get_all_alert_details` batch size to 25 when retrieving alert queries due to performance concerns.

1.19.1

Added

- The following enums classes are now available to reference in `py42.constants` in addition to their original modules:
- `CaseStatus`
- `RiskTags`
- `TrustedActivityType`
- `DepartingEmployeeFilters`
- `HighRiskEmployeeFilters`

Fixed

- Bug where `sdk.alerts.get_all_alert_details()` was raising error when no alerts were found in query.

1.19.0

Added

- New `trustedactivities` client with the following new methods:
- `sdk.trustedactivities.get_all()` to get all trusted activities.
- `sdk.trustedactivities.create()` to create a new trusted activity.
- `sdk.trustedactivities.get()` to get details about a single trusted activity.
- `sdk.trustedactivities.update()` to update a trusted activity.
- `sdk.trustedactivities.delete()` to delete a trusted activity

- New custom exceptions
- `Py42TrustedActivityInvalidChangeError`
- `Py42TrustedActivityConflictError`
- `Py42TrustedActivityInvalidCharacterError`
- `Py42TrustedActivityIdNotFound`

- New custom `HTTP 409 error` wrapper class `Py42ConflictError`

1.18.1

Fixed

- Bug where `sdk.securitydata.search_all_file_events()` errored when `page_token` param was `None`.
- Issue where `sdk.devices.get_page()` raises a vague error message when provided with invalid org UID.

Page 3 of 14

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.