Skip to main content

A Python SDK for Restate

Reason this release was yanked:

Critical bug in ctx.service_send

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.5.0.tar.gz (49.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

restate_sdk-0.5.0-cp313-cp313-musllinux_1_2_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

restate_sdk-0.5.0-cp313-cp313-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ ARM64

restate_sdk-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl (1.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

restate_sdk-0.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

restate_sdk-0.5.0-cp313-cp313-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

restate_sdk-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

restate_sdk-0.5.0-cp312-cp312-musllinux_1_2_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

restate_sdk-0.5.0-cp312-cp312-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ ARM64

restate_sdk-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl (1.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

restate_sdk-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

restate_sdk-0.5.0-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

restate_sdk-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

restate_sdk-0.5.0-cp311-cp311-musllinux_1_2_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

restate_sdk-0.5.0-cp311-cp311-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

restate_sdk-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl (1.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

restate_sdk-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

restate_sdk-0.5.0-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

restate_sdk-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file restate_sdk-0.5.0.tar.gz.

File metadata

  • Download URL: restate_sdk-0.5.0.tar.gz
  • Upload date:
  • Size: 49.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.2

File hashes

Hashes for restate_sdk-0.5.0.tar.gz
Algorithm Hash digest
SHA256 1ff8d3b4e9e03db2910419f5ba81a8d1ed39cba52c149801ee339f8f16662999
MD5 956da3e658bdc719025d55b0bb19a11c
BLAKE2b-256 e6331d8e5a165b0e71408fff38ef5db916d6a74ccc751ea0cc192c391a3d8fd8

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3c66d16c74d1493748f74c3193fd76845916b0a10be4195c11b0c58e02f0f200
MD5 85116a0d567e0c9c60eb885438115d1c
BLAKE2b-256 4794c1229777cbc7b524e955891b19afd3a25bc79184d2f6e4434f736f7b4874

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp313-cp313-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp313-cp313-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6b3944aa2b18b49633baab151de314e8461e7298f6269317a0394cd547b44a61
MD5 3b0d081ee98474a33f947a0e7639f57a
BLAKE2b-256 529f0bccda11d36e5022d24e1905a4544db1bd9792fa0cfa9b0b3669f911222c

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d05fb892f9f859fc614f621d1e7705fd93f947fe87cd34acb9b6f3876e4b9e5d
MD5 db28746b171763ec0ff2bf8cffbe286a
BLAKE2b-256 7c2818ca1704ec38c4de2380c955241bb17b3d1f261799866124cc797cded18c

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 16b71cfeb6e40dfa211389ec2e1e0982271b1434f5c8e813e1e400461f94263d
MD5 2ba32a33d8a9310b18b062b07516d36e
BLAKE2b-256 7ee23291f103f424e37cbbf39507aa31ec4a950430c0ad5f6790d7b5f451563e

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32a12d008427838d33732a478cdbafb18889934f9627abd9a3a866b8e8dae499
MD5 bfce113ba42c664d6a41c80aa92472bf
BLAKE2b-256 f74463e2ae60dfe107e298e1b2a9e28f1e569e8d9264a86648e4a0401402dc73

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b06d8fbea4eaf7aec46bf7100b1e968662d3ffa149f8ea6edeae523e6c84e010
MD5 d31f9431d45e27dde678c78b4815ca3b
BLAKE2b-256 c32ad00f4817cc7de5baf87598cb0e3625a36df3160d9ddf1e31d8e02e028f3d

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5535be58b0f18a771d60328a7ea3b02df71331ef3a47655a75f844c309f06f71
MD5 1ae7d77f20a4ecf923415f4564661673
BLAKE2b-256 fee20d34bc8b06989335cb1386b95eb454784057850f6b1121456609091ce72f

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp312-cp312-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6f4c0bbe0ef4a0e862728c23b7cd39f55b113193dda692944f0bc683e5706a92
MD5 37aa897e5d29e39e5d45a4ba471e0c85
BLAKE2b-256 3ef7560afef037980c3f558552cff272b875c04cad4b8bd150c6f76ab25c266e

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 737b5a19f884de31d4f4ea5c8b0704fbacd11ac6f6f17e15bc3ce7d73558e909
MD5 c7d4d6225b3b1869cf24abe535d901ae
BLAKE2b-256 e578012833a5252d15cf28ee4745432fef559cd6c213b5528a24eba3fee067bb

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c197ad354381396e700d91105006374aef0caf17b328306391d4e5feb41dbcfd
MD5 235bc8fee607211860ed062f89ad36e2
BLAKE2b-256 7795d97d2a6944873cc8db4437eb47148ec47242b7eb0b72e54cc9ed8e083277

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9cb1f3818a7f5c3a5247b17011c1edafc03a30142dad0eb39c4f30071d8ad8be
MD5 22109888b55fdc31b9e0d6905f059a81
BLAKE2b-256 7c7a9a5642d19d173756366c50e5dff8096560e118982895a8b857aeab4fccd4

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 67a6bfdfd1ee40444ea31a4b8507145573eb62377fe97c10d015b388a03177b4
MD5 6ffe2b21981d9138965cea3442d85bb3
BLAKE2b-256 3adb2b1d1bcd9d686b296e12de9b08e22ef483b6ca64aba64c40ed6cd379bd20

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dd2918d6dfe05abcfd88a5f7a86b15d3d4ef3c6290a0c5c74027705a110b7f63
MD5 3d4729318205c7916f30b527b647625e
BLAKE2b-256 803fd8319f0b83b03c73d20ce70a40acf2183f5cf4e913c802ab2afc2c24ef9a

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp311-cp311-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 807a247c5a150642d133f830def2cb4d4ed4dc134d5975281f71c0865e7000da
MD5 5d52bb45693cc6bc3c08df1519b9a236
BLAKE2b-256 45b0103ff9359bf5fad183975175543d02615b3e512feed85db24c5e3a8f2cc0

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ca4dfe7da52cb557c9ae21318d31e9d137bca7d9fce100a5110e692a82d51885
MD5 0434f80a8b9e01b4b43099b7c2f641d4
BLAKE2b-256 e3d27afbdee050547e571e35d34177ce81d3586f7aca0121c8fdcaeb08bad2a0

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 72b05c752b395d8d54279731e1ba4825a91961dd5b870aab0e434e1dfc542501
MD5 e877becc1b7e6d83e755e88e598eac06
BLAKE2b-256 dcfeefb07eabac35303de72414a18a24acfa8b3af43d769e66e38194a248437c

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09d9db7114ad266a9e24e39998b0a3eef321cd11152c55ba6851a3c9904b6a81
MD5 64579a27e2d829da654b4aac14fad656
BLAKE2b-256 1d88718f46bfaa07280dae52dbae341d0abcdcbb4e581ea1d4bb902d7cfaf66e

See more details on using hashes here.

File details

Details for the file restate_sdk-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 805030cb028d7883b1ba4885a0509a963acaab06bb2a1e3ce634064559993502
MD5 7ec49b7618f34d46290b379ec98dddd3
BLAKE2b-256 2c8dd6d8a7b05d0b6dac14e0e9562f910ec0123d2b08904f86795e0c3bd7a3a0

See more details on using hashes here.

Supported by

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