Dispatch-py

Latest version: v0.6.0

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

Scan your dependencies

Page 1 of 3

0.6.0

<!-- Release notes generated using configuration in .github/release.yml at v0.6.0 -->

What's Changed

This version brings a lot of new and powerful APIs to the SDK.

The main change that v0.6 brings is enabling the integration of Dispatch in applications that are not based on FastAPI. The top-level `dispatch` package can now be used to create vanilla Dispatch applications:

python
import dispatch

The .function decorator is available on the top-level package to
declare functions that can be orchestrated by the scheduler.
dispatch.function
def greet(who: str):
...

The .run function runs the main event loop interacting with the
scheduler. It takes an optional initialization function that will
be called right before entering the event loop.
dispatch.run(lambda: greet.dispatch('me'))


New features
* Dispatch without FastAPI by achille-roussel in https://github.com/stealthrocket/dispatch-py/pull/154
Other changes
* Remove mock server entry point by chriso in https://github.com/stealthrocket/dispatch-py/pull/151
* Don't print verification key warning when running under Dispatch CLI by chriso in https://github.com/stealthrocket/dispatch-py/pull/152
* Extract new proto fields by chriso in https://github.com/stealthrocket/dispatch-py/pull/153


**Full Changelog**: https://github.com/stealthrocket/dispatch-py/compare/v0.5.1...v0.6.0

0.5.1

<!-- Release notes generated using configuration in .github/release.yml at v0.5.1 -->

What's Changed

This version adds multiple bug fixes, including one that prevented dispatch functions from running concurrently within a single application instance (distributing concurrent calls across multiple instances was unaffected).

Other changes
* FastAPI: run Dispatch functions in a thread executor by chriso in https://github.com/stealthrocket/dispatch-py/pull/146
* Add experimentation Lambda integration by Pryz in https://github.com/stealthrocket/dispatch-py/pull/142
* Don't pickle coroutine state twice by chriso in https://github.com/stealthrocket/dispatch-py/pull/148
* Bump cibuildwheel version to fix PyPI publish issue by chriso in https://github.com/stealthrocket/dispatch-py/pull/149


**Full Changelog**: https://github.com/stealthrocket/dispatch-py/compare/v0.5.0...v0.5.1

0.5.0

<!-- Release notes generated using configuration in .github/release.yml at v0.5.0 -->

What's Changed

This version introduces a new `Reset` error type, which when raised or returned, replaces the function being run by a different call.

New features
* add special Reset class to implement tail calls by achille-roussel in https://github.com/stealthrocket/dispatch-py/pull/145


**Full Changelog**: https://github.com/stealthrocket/dispatch-py/compare/v0.4.2...v0.5.0

0.4.2

<!-- Release notes generated using configuration in .github/release.yml at v0.4.2 -->

With this patch release, programs that run on Python 3.8 can now use Dispatch.

What's Changed
Other changes
* Python 3.8 support by chriso in https://github.com/stealthrocket/dispatch-py/pull/143
* Don't test ./examples by default by chriso in https://github.com/stealthrocket/dispatch-py/pull/144


**Full Changelog**: https://github.com/stealthrocket/dispatch-py/compare/v0.4.1...v0.4.2

0.4.1

<!-- Release notes generated using configuration in .github/release.yml at v0.4.1 -->

This patch release brings compatibility with Python 3.9 and 3.10.

Prior to this update, the Python SDK for Dispatch was only compatible with Python 3.11+, which caused a lot of issues due to default Python installations often being older on OSX and Ubuntu (usually 3.9). This caused a lot of friction for users who tried Dispatch but didn't have a supported version pre-installed.

What's Changed
Bug fixes
* v0.4.1: fix build by achille-roussel in https://github.com/stealthrocket/dispatch-py/pull/139
* Add MANIFEST.in by chriso in https://github.com/stealthrocket/dispatch-py/pull/141
Other changes
* Minor UX improvements by chriso in https://github.com/stealthrocket/dispatch-py/pull/138
* Python 3.10 support by chriso in https://github.com/stealthrocket/dispatch-py/pull/136
* Python 3.9 support by chriso in https://github.com/stealthrocket/dispatch-py/pull/140


**Full Changelog**: https://github.com/stealthrocket/dispatch-py/compare/v0.4.0...v0.4.1

0.4.0

<!-- Release notes generated using configuration in .github/release.yml at v0.4.0 -->

This is an important release with new concurrency APIs to compose more advanced applications powered by Dispatch.

The release also includes new default integrations for errors raised by popular services like Slack and OpenAI, so dispatch functions can automatically handle retries when executing requests to those APIs.

What's Changed

New features
* Concurrency primitives: any, all, race by chriso in https://github.com/stealthrocket/dispatch-py/pull/131
* Remote endpoints by chriso in https://github.com/stealthrocket/dispatch-py/pull/134
* Slack integration by chriso in https://github.com/stealthrocket/dispatch-py/pull/132
* OpenAI integration by chriso in https://github.com/stealthrocket/dispatch-py/pull/133

Other changes
* Fix registration of synchronous functions by chriso in https://github.com/stealthrocket/dispatch-py/pull/129
* mock server: show more info when a call fails by chriso in https://github.com/stealthrocket/dispatch-py/pull/128
* Promote docopt dependency by chriso in https://github.com/stealthrocket/dispatch-py/pull/130
* Promote httpx dependency by chriso in https://github.com/stealthrocket/dispatch-py/pull/137

**Full Changelog**: https://github.com/stealthrocket/dispatch-py/compare/v0.3.0...v0.4.0

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.