Skip to main content

A Python SDK for Restate

Project description

Documentation Examples Discord Twitter

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

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

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

restate_sdk-0.4.1.tar.gz (45.9 kB view hashes)

Uploaded Source

Built Distributions

restate_sdk-0.4.1-cp312-cp312-musllinux_1_2_x86_64.whl (2.0 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

restate_sdk-0.4.1-cp312-cp312-musllinux_1_2_aarch64.whl (2.0 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ ARM64

restate_sdk-0.4.1-cp312-cp312-manylinux_2_28_aarch64.whl (1.8 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.28+ ARM64

restate_sdk-0.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

restate_sdk-0.4.1-cp312-cp312-macosx_11_0_arm64.whl (1.5 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

restate_sdk-0.4.1-cp312-cp312-macosx_10_12_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

restate_sdk-0.4.1-cp311-cp311-musllinux_1_2_x86_64.whl (2.0 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

restate_sdk-0.4.1-cp311-cp311-musllinux_1_2_aarch64.whl (2.0 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ ARM64

restate_sdk-0.4.1-cp311-cp311-manylinux_2_28_aarch64.whl (1.8 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.28+ ARM64

restate_sdk-0.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

restate_sdk-0.4.1-cp311-cp311-macosx_11_0_arm64.whl (1.5 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

restate_sdk-0.4.1-cp311-cp311-macosx_10_12_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page