Py42

Latest version: v1.27.1

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

Scan your dependencies

Page 11 of 14

0.4.4

Not secure
Changed

- `py42.settings.items_per_page` no long affects `DepartingEmployeeClient.get_all_departing_employees()`, which is now always set at 100 items per page.
- `FileEventQuery` and `AlertQuery` objects will now return up to 10,000 results by default (the previous default value was 100).

Fixed

- Issue where `DepartingEmployeeClient.get_all_departing_employees()` always resulted in a 400 status code.

0.4.3

Not secure
Added

- `py42.settings.items_per_page`. This effectively replaces `page_size` for the methods that were changed below.

Changed

The following resources no longer accept `page_num` and `page_size` parameters and no longer return a
`requests.Response` object:
- `UserClient.get_users()`
- `DeviceClient.get_devices()`
- `OrgClient.get_orgs()`
- `LegalHoldClient.get_legal_holds()`
- `LegalHoldClient.get_legal_hold_memberships()`
- `DepartingEmployeeClient.get_all_departing_employees()`

They instead return a generator object that is iterated over to retrieve all the pages, eliminating the need to
manually compose loops to retrieve each page. For example, the below snippet will retrieve all pages of users:

python
for page in users.get_users():
user_list = json.loads(page.text)["data"]["users"]

0.4.2

Not secure
Added

- Support for querying file events by Actor.

0.4.1

Not secure
Fixed

- Issue where setting `AlertQuery.sort_direction` did not properly apply the specified direction.

0.4.0

Not secure
Added

- Added `alerts` to `SecurityModule` with
- `search_alerts()`
- `get_query_details()`
- `resolve_alert()`
- `reopen_alert()`
- For querying alerts, build an `AlertQuery` object with fields:
- `AlertState`
- `Description`
- `Severity`
- `Actor`
- `RuleName`
New filter operators `contains` and `not_contains` for alert string fields.
- Added `EmployeeCaseManagement` module with `departing_employee` with:
- `create_departing_employee()`
- `resolve_departing_employee()`
- `get_all_departing_employees()`
- `toggle_alerts()`
- `get_case_by_username()`
- `get_case_by_id()`
- `update_case()`
Access via `py42.SDK.employee_case_management.departing_employee`
- Added `get_current_tenant` to `py42.SDK.administration`.
- Added `py42.SDK.user_context.get_current_tenant_id`.

0.3.1

Not secure
Added

- `SecurityModule.get_security_plan_storage_info_list()`
- `SecurityModule.get_user_security_events()`
- `SecurityModule.get_plan_security_events()`

Changed

- Removed `SecurityModule.get_security_event_locations()`. Use `SecurityClient.get_security_event_locations()` instead.
- Removed `get_normalized_security_event_plan_info().` Support for pre-6.7 format security event plan info responses has
been removed, and as a result this method is no longer necessary. Use `SecurityClient.get_security_event_locations()` instead.

Fixed

- a timeout of 60 seconds is now enforced on all http requests. Previously the timeout was infinite.
This allowed for the possibility of requests that would hang forever under certain circumstances.

Page 11 of 14

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.