Octue

Latest version: v0.61.0

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

Scan your dependencies

Page 2 of 40

0.59.1

<!--- SKIP AUTOGENERATED NOTES --->
Contents ([677](https://github.com/octue/octue-sdk-python/pull/677))

Fixes
- Pass output arguments into `Analysis` and use them

Reversions
- Revert "REF: Stop storing `output_location` in `Analysis`"

<!--- END AUTOGENERATED NOTES --->

0.59.0

<!--- SKIP AUTOGENERATED NOTES --->
Contents ([676](https://github.com/octue/octue-sdk-python/pull/676))

**IMPORTANT:** There is 1 breaking change.

Enhancements
- Allow using non-signed URLs for datasets in output manifest (controllable via the app configuration file)
- Handle all `requests` errors while:
- Getting cloud metadata for datafiles and datasets
- Downloading datafiles

Fixes
- Avoid trying to access buckets for URL datasets

Refactoring
- 💥 **BREAKING CHANGE:** Stop storing `output_location` in `Analysis`
- Remove unnecessary finalisation from template apps

---
Upgrade instructions
<details>
<summary>💥 <b>Stop storing `output_location` in `Analysis`</b></summary>

If calling `Analysis.finalise` manually, either stop doing this and rely on the `output_location` field of the app configuration or explicitly pass in the `upload_output_datasets_to` argument.
</details>

<!--- END AUTOGENERATED NOTES --->

0.58.0

<!--- SKIP AUTOGENERATED NOTES --->
Contents ([673](https://github.com/octue/octue-sdk-python/pull/673))

**IMPORTANT:** There are 2 breaking changes.

New features
- Add `dictionary_product` utility function

Enhancements
- 💥 **BREAKING CHANGE:** Disable event validation in `EventReplayer` by default
- 💥 **BREAKING CHANGE:** Enable filtering by multiple event kinds in `get_events`
- Enable excluding multiple event kinds in `get_events`
- Use all non-question events for question redelivery check in flask app
- Add ability to skip handling logs containing certain text in `AbstractEventHandler` and subclasses
- Return outside of `ThreadPoolExecutor` context managers

---
Upgrade instructions
<details>
<summary>💥 <b>Disable event validation in `EventReplayer` by default</b></summary>

Set `validate_events=True` in the `EventReplayer` constructor to retain the previous behaviour.
</details>

<details>
<summary>💥 <b>Enable filtering by multiple event kinds in `get_events`</b></summary>

To filter by one event kind as before, use `kinds=[event_kind]` instead of `kind=event_kind`.
</details>

<!--- END AUTOGENERATED NOTES --->

0.57.2

Summary
This release adds to the question retry capability already available on concurrent questions by allowing retries of single questions.

<!--- SKIP AUTOGENERATED NOTES --->
Contents ([671](https://github.com/octue/octue-sdk-python/pull/671))

Enhancements
- Enable question retries on single questions with `Child.ask`
- Log when retries are prevented for an exception type in `Child.ask`
- Remove `PYTHONUNBUFFERED` warning

Refactoring
- Move retry logic from `Child.ask_multiple` into `Child.ask`

<!--- END AUTOGENERATED NOTES --->

0.57.1

<!--- SKIP AUTOGENERATED NOTES --->
Contents ([669](https://github.com/octue/octue-sdk-python/pull/669))

Enhancements
- Skip non-result event validation if only result is required
- Add ability to skip event validation in event handlers
- Make diagnostics log messages more consistent
- Allow instantiation of `Diagnostics`, `Topic`, `Subscription`, and `GoogleCloudPubSubEventHandler` without cloud credentials

Refactoring
- Update from deprecated `datetime.datetime.utcnow` method
- Use `cached_property` in `Service`
- Remove unused attributes on `MockService` and `Runner`

Testing
- Implement `MockSubscription.delete`

<!--- END AUTOGENERATED NOTES --->

0.57.0

<!--- SKIP AUTOGENERATED NOTES --->
Contents ([668](https://github.com/octue/octue-sdk-python/pull/668))

**IMPORTANT:** There are 2 breaking changes.

Enhancements
- 💥 **BREAKING CHANGE:** Update `ChildEmulator` to use `EventReplayer`, support schema-compliant events and attributes, and support heartbeats and delivery acknowledgement events. This significantly simplifies the emulator
- 💥 **BREAKING CHANGE:** Remove `ChildEmulator.from_file`
- Download manifest datasets to same directory by default

Refactoring
- Move `ServicePatcher` into its own module

---
Upgrade instructions
<details>
<summary>💥 <b>Update `ChildEmulator` to use `EventReplayer` and full events</b></summary>

Give events (including attributes) that satisfy the service communication schema to child emulators.

</details>

<details>
<summary>💥 <b>Remove `ChildEmulator.from_file`</b></summary>

Load the JSON file separately and pass the events into the `ChildEmulator` constructor.
</details>

<!--- END AUTOGENERATED NOTES --->

Page 2 of 40

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.