A Python SDK for Restate
Project description
Python SDK for restate
Restate is a system for easily building resilient applications using distributed durable async/await. This repository contains the Restate SDK for writing services in Python.
Community
- 🤗️ Join our online community for help, sharing feedback and talking to the community.
- 📖 Check out our documentation to get quickly started!
- 📣 Follow us on Twitter for staying up to date.
- 🙋 Create a GitHub issue for requesting a new feature or reporting a problem.
- 🏠 Visit our GitHub org for exploring other repositories.
Using the SDK
To use this SDK, add the dependency to your project:
pip install restate_sdk
Versions
The Python SDK is currently in active development, and might break across releases.
The compatibility with Restate is described in the following table:
Restate Server\sdk-python | 0.0/0.1/0.2 | 0.3/0.4 |
---|---|---|
1.0 | ✅ | ❌ |
1.1 | ✅ | ✅ |
Contributing
We’re excited if you join the Restate community and start contributing! Whether it is feature requests, bug reports, ideas & feedback or PRs, we appreciate any and all contributions. We know that your time is precious and, therefore, deeply value any effort to contribute!
Local development
- Python 3
- PyEnv or VirtualEnv
- just
- Rust toolchain
Setup your virtual environment using the tool of your choice, e.g. VirtualEnv:
python3 -m venv .venv
source venv/bin/activate
Install maturin
:
pip install maturin
Now build the Rust module and include opt-in additional dev dependencies:
maturin dev -E test,lint
You usually need to build the Rust module only once, but you might need to rebuild it on pulls.
For linting and testing:
just verify
Releasing the package
Pull latest main:
git checkout main && git pull
Update module version in Cargo.toml
, commit it. Then push tag, e.g.:
git tag -m "Release v0.1.0" v0.1.0
git push origin v0.1.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for restate_sdk-0.4.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a710d9d1c8c6b7439534b83d23e1ac1d18a342086a66647d4e70201d981f7b5 |
|
MD5 | 0edd17a383c780df08452f000a9764a2 |
|
BLAKE2b-256 | 023de3e8097245d016daf024b5879d8c67065011fa17521f80917ba272073657 |
Hashes for restate_sdk-0.4.1-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 172fbd44f263c3246c259c2b2f464dc05d69a7d38595531cd2138982b8344afb |
|
MD5 | 6738a7e799bd02f3aa7bfb65f8112868 |
|
BLAKE2b-256 | 169a3850544eed1fa7d5857e676a256def3917952f88a16e881ec81e02d78548 |
Hashes for restate_sdk-0.4.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1602bbe3c5e20975396749636fc85b8772d4cd9760eca0952606911d09ca3c20 |
|
MD5 | 00d8b22794163f7570b6502e5ee7b310 |
|
BLAKE2b-256 | e49edad4779d9fd0644f47a02b288d0913e0ad8e531ef65a92a2804720734de7 |
Hashes for restate_sdk-0.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea3693f321fc5383160396e973fda8f97fdf61d182b910673de344a55a6ff45e |
|
MD5 | 21ed19329c3d8a7a3f974fb3e4cfe023 |
|
BLAKE2b-256 | dffad4a3da40d2ea71b56278a71ae3865a3f5625d374ff5effad23d263b30d2f |
Hashes for restate_sdk-0.4.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b7bf6c920063843911c4358b7ffe1f90181d4fc689e2559aff6f15dc1b71328 |
|
MD5 | a5dc22e3db70713dadca55d6ce6115d8 |
|
BLAKE2b-256 | 9435643204e609644553d256491885805c8f21d8f96f591402e4dd78c2ada48c |
Hashes for restate_sdk-0.4.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e9fcfc6e6183faec0b23deeb90b9b87c0a17da3ca48b990bbc8a874219fb9b5 |
|
MD5 | 2237eb7b3a5d888556316ef389928502 |
|
BLAKE2b-256 | 7e6f5e7761b4793359a556f5c9aedaec424dc37e81fa954f9a600266ceb667b7 |
Hashes for restate_sdk-0.4.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1061d3a2bc8b87f89e1b57c4c2d5e77d464c67058a99464080b5a2092008dfd |
|
MD5 | 489ff42c2f86eee2510567689c6323aa |
|
BLAKE2b-256 | b366f99538216f3dd4f1e4c58ca70183ab45edb32eca1d6e02fee86e25c40cd3 |
Hashes for restate_sdk-0.4.1-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb9c7f72e267b9c24ab1e173f54f98fbd088f62ed0a371b02c56ca28aceb0b81 |
|
MD5 | c11fae54cea4802d7d2473080476672a |
|
BLAKE2b-256 | d83ed2714a053643021094cf238fe5c2ed81c8965fc98fded5e8bb38640a6d5e |
Hashes for restate_sdk-0.4.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1824b129f6216c705752ddba4d6872490abae8d88defaaac3b6f1362cd3b956e |
|
MD5 | 293eb5933f589fa3f951f1fdbd5ac210 |
|
BLAKE2b-256 | bfd0a5e28153248cbb1fb6c653aa028306ec20fd048a16298e974265a54e4977 |
Hashes for restate_sdk-0.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f70c91beed0df66bae9d89fe50f8cb8629fd859d95711aad91a714b24001bf89 |
|
MD5 | dba0bffb2027136848fa48d62406db33 |
|
BLAKE2b-256 | 7394ab9121844eda72fdcd2a4a00c8763553dd02c09ab5e7966cb49faf9ca3b7 |
Hashes for restate_sdk-0.4.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c20bd6f06b5650acf03ed897c548c5c0b5b70bdff2840e9d7726cc961ee82345 |
|
MD5 | 1f80e3dcf24e51bc44d89fc615341a22 |
|
BLAKE2b-256 | 3ddc1880197bf6674b9800d1a56190a065dbe0e59d2691a07c4f3fef7c5ed99a |
Hashes for restate_sdk-0.4.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3914ce8dcd4e1a5c68b7382bf51099c262f3b75f02cf7453a8a6c960d52812b |
|
MD5 | ed051f5ec8ed71717ac37f6bbd0b2ae6 |
|
BLAKE2b-256 | 90c45feeb5a9c6d8ad97ba53429a72a9d6a51b8240308307efde5ecb9d288cd9 |