Py42

Latest version: v1.28.2

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

Scan your dependencies

Page 10 of 14

1.0.0

Not secure
Changed

- `sdk.detectionlists` methods:
- `add_cloud_aliases()` > `add_cloud_alias()`
- `remove_cloud_aliases()` > `remove_cloud_alias`.

The above methods no longer support lists for their `alias` parameter.

0.9.0

Not secure
Added

- `sdk.detectionlists.departing_employee` methods:
- `set_alerts_enabled()`

Changed

- `sdk.detectionlists.departing_employee` methods:
- `create()` -> `add()`
- `resolve()` -> `remove()`
- `update()` -> `update_departure_date()`
- `get_by_id()` -> `get()`

0.8.1

Not secure
Changed

- `sdk.detectionlists` method renames:
- `create()` -> `create_user()`
- `get()` -> `get_user()`
- `get_by_id()` -> `get_user_by_id()`
- `update_notes()` -> `update_user_notes()`
- `add_risk_tag()` -> `add_user_risk_tags()`
- `remove_risk_tag()` -> `remove_user_risk_tags()`
- `add_cloud_alias()` -> `add_user_cloud_aliases()`
- `remove_cloud_alias()` -> `remove_user_cloud_aliases()`

0.8.0

Not secure
Added

- `sdk.detectionlists` methods:
- `update_notes()`
- `remove_risk_tag()`
- `add_risk_tag()`
- `add_cloud_alias()`
- `remove_cloud_alias()`
- `create()`
- `get()`
- `get_by_id()`

- `sdk.detectionlists.high_risk_employee` methods:
- `add()`
- `remove()`
- `get()`
- `search()`
- `set_alerts_enabled()`

0.7.0

Not secure
Removed

- Parameter `classification` removed from `OrgClient.create_org()`
- Parameter `legal_hold_membership_uid` removed from `LegalHoldClient.get_all_matter_custodians()`
- Removed `ArchiveClient`. Use `ArchiveModule`.
- Removed function `ArchiveModule.get_data_key_token()`.
- Removed function `ArchiveModule.get_web_restore_info()`.
- Parameter `classification` removed from `OrgClient.create_org()`.
- Parameter `legal_hold_membership_uid` removed from `LegalHoldClient.get_all_matter_custodians()`.
- Removed `SecurityClient`. Use `SecurityModule`.
- `py42.sdk.util`. Use `py42.util` instead.
- `py42.sdk.settings`. Use `py42.settings` instead.
- `py42.sdk.response`. Use `py42.response` instead.
- `py42.sdk.usercontext`. Use `py42.usercontext` instead.

Changed

- Parameter `active_state` was renamed to `active` and now accepts (True, False, or None)
instead of ("ACTIVE", "INACTIVE", or "ALL") on the following `LegalHoldClient` methods:
- `get_all_matters()`
- `get_all_matter_custodians()`
- Parameter `storageaccess` was removed from `SDKClient`. To restore files, just use
`SDKClient.archive.stream_from_backup()`.
- Parameter `active_state` was renamed to `active` and now accepts (True, False, or None)
instead of ("ACTIVE", "INACTIVE", or "ALL") on the following `LegalHoldClient` methods:
- `get_all_matters()`
- `get_all_matter_custodians()`
- `py42.sdk.archive.stream_from_backup()` now raises `Py42ArchiveFileNotFoundError` when it does not find a file.
- `py42.sdk.alerts` and `py42.sdk.detectionlists` raise `Py42SessionInitializationError` if they are unable to
connect to the necessary microservice and `Py42FeatureUnavailableError` if their environment does not support
the microservice.
- `py42.sdk.securitydata.get_security_plan_storage_info_list()` raises `Py42SecurityPlanConnectionError` if it can't
connect to get plan info.
- Storage node connection issues may raise `Py42StorageSessionInitializationError`.
- All requests may raise a subclass of `Py42HTTPError` denoting which type of HTTP error it is:
- `Py42BadRequestError`
- `Py42UnauthorizedError`
- `Py42ForbiddenError`
- `Py42NotFoundError`
- `Py42InternalServerError`
- `py42.modules.ArchiveModule` methods:
- `get_all_device_restore_history()` (formerly `get_restore_history_by_device_id()`)
- `get_all_user_restore_history()` (formerly `get_restore_history_by_user_id()`)
- `get_all_org_restore_history()` (formerly `get_restore_history_by_org_id()`)
now all return generator objects that handle paging through restore history.
- Renamed `AlertClient.get_query_details()` to `AlertClient.get_details()`.
- Renamed `SecurityModule.get_plan_security_events()` to `get_all_plan_security_events()`.
- Renamed `SecurityModule.get_user_security_events()` to `get_all_user_security_events()`.

Added

- py42 specific exceptions at new module `py42.exceptions`:
- `Py42Error`
- `Py42ArchiveFileNotFoundError`
- `Py42SessionInitializationError`
- `Py42FeatureUnavailableError`
- `Py42SecurityPlanConnectionError`
- `Py42HTTPError`
- `Py42BadRequestError`
- `Py42UnauthorizedError`
- `Py42ForbiddenError`
- `Py42NotFoundError`
- `Py42InternalServerError`
- Parameters `archive_password` and `encryption_key` added to `ArchiveModule.stream_from_backup()`.

0.6.1

Not secure
Changed

- To import alert filters, do: `from py42.sdk.queries.alerts.filters import *`
instead of importing them individually.

Page 10 of 14

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.