Octue

Latest version: v0.55.0

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

Scan your dependencies

Page 1 of 38

2021.12.10

gsutil 5.5 Probably N/A
pubsub-emulator 0.6.0 Definitely N/A


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

New features
- Add the `octue-app deploy cloud-run` CLI command for deploying apps to Cloud Run

Enhancements
- Remove need for a `Dockerfile` in basic apps
- Remove `SERVICE_ID` argument/environment variable and installing via `requirements-dev.txt` from the default Cloud Run `Dockerfile`
- Automatically add `SERVICE_ID` and `SERVICE_NAME` environment variables to Cloud Run services
- Enable getting of subscriptions from `Topic` instances
- Allow `Subscription` instances to be updated and have no namespace
- Allow not providing a subscriber to the `Subscription` constructor
- Allow `Service` instances to be named
- Use the service name when logging service activity in Cloud Run

Style
- Ignore missing public docstrings during development

Operations
- Add CI pass/fail badge for `main` branch to README
- Skip `update-pull-request` workflow if the skip indicator is in the pull request description

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

367.0.0

0.55.0

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

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

Enhancements
- Include received invalid data in flask app error messages
- Allow any iterable for `Dataset` `files` argument

Fixes
- Ensure `order` argument is given in `Service.send_exception`
- Add workaround for apparent bug in getting local metadata file's absolute path
- Remove (now-) unnecessary json decoding in `get_events`

Dependencies
- 💥 **BREAKING CHANGE:** Drop support for python3.7
- Use `twined==0.5.5`
- Update to `black==24.4.2`

Testing
- Remove unnecessary test
- Update asynchronous deployment test to accept numpy array as output values

---
Upgrade instructions
<details>
<summary>💥 <b>Drop support for python3.7</b></summary>

Upgrade to `python>=3.8` to keep using `octue`.
</details>

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

0.54.0

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

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

Enhancements
- 💥 **BREAKING CHANGE:** Return question UUID from `Child.ask`
- Deserialise manifests from events in `get_event`
- Raise error if no events found when calling `get_events`

Fixes
- Use correct base image for `python3.11` dockerfile
- Return schema-compliant events and attributes from `get_events`

Operations
- Import missing APIs into terraform config
- Deploy version `0.5.0` of event handler cloud function and update event store schema
- Update `actions/setup-python` to version 5

Dependencies
- 💥 **BREAKING CHANGE:** Make `db-dtypes` and `google-cloud-bigquery` optional
- Upgrade `gunicorn` to avoid vulnerability
- Loosen `numpy` dependency

Testing
- Test retrieving results from real asynchronous question
- Run tests with `python3.10` (`python3.9` isn't available on `macos-latest` for `arm64`)

Other
- Add DOI badge to readme

---
Upgrade instructions
<details>
<summary>💥 <b>Return question UUID from `Child.ask`</b></summary>

Instead of writing `answer = Child.ask(...)`, write `answer, question_uuid = Child.ask(...)` (and the same for `ChildEmulator`)
</details>

<details>
<summary>💥 <b>Make `db-dtypes` and `google-cloud-bigquery` optional</b></summary>

To keep using the `get_events` function, add the `bigquery` optional extra to your installation command e.g. `poetry install -E bigquery`.
</details>

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

0.53.0

Not secure
Summary
This pull request:
- Makes the SDK fully event-driven by using a single topic to emit/consume events
- Majorly refactors the event handler to facilitate asynchronous event retrieval
- Adds the ability to get and replay events from a BigQuery store

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

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

New features
- 💥 **BREAKING CHANGE**: Use single topic per workspace (https://github.com/octue/octue-sdk-python/pull/639)
- Add `get_events` function for retrieving events asynchronously from BigQuery
- Add `EventReplayer` class to replay asynchronously-retrieved events
- Add `Manifest.download` method

Enhancements
- Get subscription project name from topic by default
- Improve asking of asynchronous questions via `Child.ask`
- Return download path from `Dataset.download`
- Include question UUID in delivery acknowledgement log message
- Improve handling of invalid events
- Add `datetime` and `uuid` attributes to all events

Fixes
- Await successful publishing of question messages
- Fix `api_access_endpoint` usage in `mock_generate_signed_url`

Operations
- Add test BigQuery dataset, cloud function, and IAM roles to terraform config
- Switch to reusable workflows where possible

Dependencies
- Add `google-cloud-bigquery`
- Upgrade `coolname`
- Add `db-dtypes` for converting bigquery rows to dataframes

Refactoring
- 💥 **BREAKING CHANGE**: Rename `x.received_messages` to `x.received_events`
- 💥 **BREAKING CHANGE**: Rename `record_messages` parameters to `record_events`
- 💥 **BREAKING CHANGE**: Update `ChildEmulator` to use `event*` instead of `message*`
- Factor out making minimal dictionary
- Factor out creating push subscription
- Factor out emitting question event in `Service.ask`
- Factor out event handlers and related logic from `OrderedMessageHandler` into new `AbstractEventHandler`
- Move `validation` module into `octue.cloud.events` subpackage
- Rename `OrderedMessageHandler` to `GoogleCloudPubSubEventHandler`
- Rename "message" to "event" in event handler classes
- Rename `GooglePubSubHandler` to `GoogleCloudPubSubHandler`

Chores
- Update licence year to 2024

Testing
- Simplify various tests

Upgrade instructions
- Update all services in your services network to this version of `octue` or later (`0.53.0`+)
- Replace any usages of the `received_messages` methods with `received_events`
- Replace any usages of the `record_messages` parameters with `record_events`
- Replace the word `message` with `event` in usages of `ChildEmulator` methods (apart from in the case of `monitor_message`)

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

0.52.2

Not secure

Page 1 of 38

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.