Py42

Latest version: v1.27.3

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

Scan your dependencies

Page 5 of 14

1.15.1

Not secure
Changed

- The `DateObserved` alert query filter now parses timestamps using microsecond precision.

- Change JWT auth token label from `v3_user_token` to `Bearer` when authenticating against the `/c42api/v3/auth/jwt` endpoint.

Fixed

- Python2.7 bug where non-unicode `str` timestamps would fail when used in a query filter.

1.15.0

Not secure
Fixed

- Issue where `sdk.detectionlists.create_user()` would always fail because of API changes.
The method has been deprecated and now returns the response from `sdk.detectionlists.get()`.

Added

- New custom exception `Py42UnableToCreateProfileError` that is raised when calling the
method `sdk.detectionlists.create_user()` due to the user not existing in Code42 or
is already in the process of being created on the back-end.

- `SyncDestinationUsername` filter class to `py42.sdk.queries.fileevents.filters.exposure_filter` module.

1.14.2

Not secure
Fixed

- Issue where `sdk.users.get_roles()` was using a deprecated API.

1.14.1

Not secure
Fixed

- Issue when calling `sdk.alerts.update_state()` without specifying a `note` parameter
would set the existing alert's note's message to the empty string.

Added

- Custom exception `Py42OrgNotFoundError`.

Changed

- `sdk.users.get_all()` now raises `Py42OrgNotFoundError` when the given `org_uid`
was not found.

- `sdk.users.get_page()` now raises `Py42OrgNotFoundError` when the given `org_uid`
was not found.

1.14.0

Not secure
Added

- New method `sdk.alerts.search_all_pages()` to retrieve all alert pages.

- New method `sdk.alerts.get_aggregate_data()` to get alert summary and observations.

Changed

- Method `sdk.alerts.search()` now accepts optional arguments `page_num` and `page_size`.

- Methods `sdk.cases.update()` and `sdk.cases.create()` now raise custom exception
`Py42InvalidCaseUserError` when trying to add an invalid user as a subject or an
assignee of a case.

- `sdk.cases.update()` now raises `Py42CaseNameExistsError` when the name of the case
already exists in the system.

1.13.0

Not secure
Added

- `sdk.legalhold.get_events_page()` to get a page of legal hold events.

- `sdk.legalhold.get_all_events()` to search for legal hold events.

- `sdk.users.update_user()` to update an existing user in Code42.

- `sdk.alerts.update_note()` to add or update a note regarding an alert.

- `sdk.from_jwt_provider()` method to create an `SDKClient` that supports custom auth mechanism.

Fixed

- Bug where proxy settings were not being applied correctly.

- Bug where 500 errors would not raise during `sdk.users.create_user()`.

Page 5 of 14

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.