Dispatch-py

Latest version: v0.8.0

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

Scan your dependencies

Page 1 of 3

0.8.0

This release brings better interoperability with [`asyncio`](https://docs.python.org/3/library/asyncio.html), along with a [`flask`](https://flask.palletsprojects.com/en/3.0.x/) integration.

What's Changed
New features
* Flask integration by chriso in https://github.com/dispatchrun/dispatch-py/pull/169
* interoperability with asyncio (part 1) by achille-roussel in https://github.com/dispatchrun/dispatch-py/pull/174
* interoperability with asyncio (part 2): integration with aiohttp by achille-roussel in https://github.com/dispatchrun/dispatch-py/pull/175
* interoperability with asyncio (part 3): refactor with aiohttp by achille-roussel in https://github.com/dispatchrun/dispatch-py/pull/176
* support both asyncio and blocking modes with different abstractions by achille-roussel in https://github.com/dispatchrun/dispatch-py/pull/178

Other changes
* Wrap pickled values in dispatch.sdk.python.v1 container by chriso in https://github.com/dispatchrun/dispatch-py/pull/177
* Avoid pickling primitive values and proto messages by chriso in https://github.com/dispatchrun/dispatch-py/pull/179
* test: decouple test components from httpx by chriso in https://github.com/dispatchrun/dispatch-py/pull/170
* Flask integration tests by chriso in https://github.com/dispatchrun/dispatch-py/pull/171
* Depend on http-message-signatures >= 0.5.0 by chriso in https://github.com/dispatchrun/dispatch-py/pull/172
* README: light and dark mode logo by achille-roussel in https://github.com/dispatchrun/dispatch-py/pull/168
* README: update project description by achille-roussel in https://github.com/dispatchrun/dispatch-py/pull/173

**Full Changelog**: https://github.com/dispatchrun/dispatch-py/compare/v0.7.1...v0.8.0

0.7.1

This version fixes a few minor issues from the previous release.

What's Changed
* Simplify registration of error/output to status mappings by chriso in https://github.com/dispatchrun/dispatch-py/pull/166
* Add top-level dispatch.batch helper function by chriso in https://github.com/dispatchrun/dispatch-py/pull/165
* Fix the Lambda handler by Pryz in https://github.com/dispatchrun/dispatch-py/pull/162
* Set readme badges to main branch by Pryz in https://github.com/dispatchrun/dispatch-py/pull/164
* Update links in the example function by chicoxyzzy in https://github.com/dispatchrun/dispatch-py/pull/161

**Full Changelog**: https://github.com/dispatchrun/dispatch-py/compare/v0.7.0...v0.7.1

0.7.0

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

What's Changed

This version fixes bugs that were uncovered by more robust type checking. It also adds new APIs to support integrations with the newly released [Dispatch CLI](https://github.com/dispatchrun/dispatch)!

New features
* mypy: upgrade to 1.10.0 by achille-roussel in https://github.com/dispatchrun/dispatch-py/pull/156
Bug fixes
* update URLs from stealthrocket to dispatchrun by achille-roussel in https://github.com/dispatchrun/dispatch-py/pull/160
Documentation
* README: update logo by achille-roussel in https://github.com/dispatchrun/dispatch-py/pull/159
Other changes
* test: drop FastAPI dependency by achille-roussel in https://github.com/dispatchrun/dispatch-py/pull/155
* Creation/expiration time by chriso in https://github.com/dispatchrun/dispatch-py/pull/157
* Add dedicated error types for each of the error statuses by chriso in https://github.com/dispatchrun/dispatch-py/pull/158


**Full Changelog**: https://github.com/dispatchrun/dispatch-py/compare/v0.6.0...v0.7.0

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

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.