Flink Tasks
Tasks API for Stateful Functions on Flink
What is it?
A lightweight API that borrows concepts from Celery to allow Python developers to run task based workflows on Apache Flink Stateful Functions. Workflows are composed of Tasks which accept parameters and can be chained together as continuations into a Pipeline. The Pipeline becomes the Flink state.
@tasks.bind()
def greeting_workflow(first_name, last_name):
return say_hello.send(first_name, last_name).continue_with(say_goodbye)
@tasks.bind()
def say_hello(first_name, last_name):
return f'Hello {first_name} {last_name}'
@tasks.bind()
def say_goodbye(greeting):
return f'{greeting}. So now I will say goodbye'
Try the demo.
Additional documentation can be found here.
The pipeline function can be downloaded here.
Metadata
Release files for statefun-tasks 3.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| statefun_tasks-3.5.0.tar.gz | 61.6 kB | Without provenance | Details for statefun_tasks-3.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| statefun_tasks-3.5.0-py3-none-any.whl | Python 3 | none | any | Details for statefun_tasks-3.5.0-py3-none-any.whl |
Total release size: 129.5 kB
Release files / statefun_tasks-3.5.0.tar.gz
| Download URL | statefun_tasks-3.5.0.tar.gz |
|---|---|
| Size | 61.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fa003b7a14146df06eb6688ca1a64fed3628c0d6af008ec4b8aa68f3db09478
|
|
BLAKE2b-256 checksum How to use checksums |
f25a824563c0de6c05053b0ba147d514d280487dad8983c80dadfd7abfcc3549
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / statefun_tasks-3.5.0-py3-none-any.whl
| Download URL | statefun_tasks-3.5.0-py3-none-any.whl |
|---|---|
| Size | 68.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f7fdc47c17b7cc0ce1703c60e22df4c9262a5d41327b0b796a277368178609f
|
|
BLAKE2b-256 checksum How to use checksums |
dc52ecbe2f5d5d1607f8c5770175acdafd5aa887678cd886a93f257acdf30811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for statefun-tasks 3.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.