Dispatch-py

Latest version: v0.7.1

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

Scan your dependencies

Page 1 of 3

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

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

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.