Skip to main content

A Python SDK for Restate

Project description

Documentation Examples Discord Twitter

Restate Python SDK

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

Prerequisites:

  • Python >= v3.11

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.2 0.3 - 0.5 0.6 - 0.7 0.8 - 0.9
1.0
1.1 - 1.2
1.3 (1)
1.4

(1) Note The new Service/Object/Workflow constructor fields and the decorator fields inactivity_timeout, abort_timeout, journal_retention, idempotency_retention, ingress_private, workflow_retention work only from Restate 1.4 onward. Check the in-code documentation for more details.

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 the build tools:

pip install -r requirements.txt

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 and run a local build to update the Cargo.lock too, 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.9.1.tar.gz (67.5 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.9.1-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded PyPymusllinux: musl 1.2+ x86-64

restate_sdk-0.9.1-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded PyPymusllinux: musl 1.2+ ARM64

restate_sdk-0.9.1-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

restate_sdk-0.9.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

restate_sdk-0.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

restate_sdk-0.9.1-cp313-cp313t-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ x86-64

restate_sdk-0.9.1-cp313-cp313t-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

restate_sdk-0.9.1-cp313-cp313t-manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

restate_sdk-0.9.1-cp313-cp313-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

restate_sdk-0.9.1-cp313-cp313-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ ARM64

restate_sdk-0.9.1-cp313-cp313-manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

restate_sdk-0.9.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

restate_sdk-0.9.1-cp313-cp313-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

restate_sdk-0.9.1-cp313-cp313-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

restate_sdk-0.9.1-cp312-cp312-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

restate_sdk-0.9.1-cp312-cp312-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ ARM64

restate_sdk-0.9.1-cp312-cp312-manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

restate_sdk-0.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

restate_sdk-0.9.1-cp312-cp312-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

restate_sdk-0.9.1-cp312-cp312-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

restate_sdk-0.9.1-cp311-cp311-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

restate_sdk-0.9.1-cp311-cp311-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

restate_sdk-0.9.1-cp311-cp311-manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

restate_sdk-0.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

restate_sdk-0.9.1-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

restate_sdk-0.9.1-cp311-cp311-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for restate_sdk-0.9.1.tar.gz
Algorithm Hash digest
SHA256 400fa1603ea528a14b041bbb06b5ff33da4ff09b4f43c1c2564e7af27f252e26
MD5 2b61600cec45a08835483eb175b07499
BLAKE2b-256 18272db8566a1703227284356abdfd1a6c444b2a1351a45827bf69e6f4573ad4

See more details on using hashes here.

File details

Details for the file restate_sdk-0.9.1-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.9.1-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c178d6d9b29740aa15848a40ea7e6fd3a4d3f8a1e743159892fe8343f10e4bc2
MD5 b820fa5c0cd95f04cf5076b603ee811e
BLAKE2b-256 5e495b96f46a43917688c3886649aa4568648de590bc48f37551b9829eef0182

See more details on using hashes here.

File details

Details for the file restate_sdk-0.9.1-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.9.1-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ad238d57adb0765ae8d189a93d909724808a0839a1e326fb1e3d9d5208d97486
MD5 2c756dad42a20db57748959641a31a3a
BLAKE2b-256 06e783aef4002c47af9f3fa4c7a5cffef4ae4bf9d0d151bea9f4d08c9723ac45

See more details on using hashes here.

File details

Details for the file restate_sdk-0.9.1-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.9.1-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 12cbbcb703b6b87301214c87df3b5d220fe26f0316757da6e2ce0482f6419435
MD5 345b528396384804ad6e3fc5417b2f0d
BLAKE2b-256 ab453450eea73b66dff014647e080a7a3c648518a3313c2b9e3bbfdb05a577fa

See more details on using hashes here.

File details

Details for the file restate_sdk-0.9.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.9.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0ee52436ba5a4bf7f4e9a60b11f6f7482b0bc863d30ccc5cc2540126e3fa0701
MD5 f6678d5b03be8a351e4dc97f569b0b67
BLAKE2b-256 bdcc891ff3ab78b24b4a5d38bcf79d7cb96524db14f958ad17e5ae28999ff48b

See more details on using hashes here.

File details

Details for the file restate_sdk-0.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 44a66a9db815d27c63f49a61756b022cd3aec39a40c5392fa3c1c15735fcabd7
MD5 472051bfbc85084ce195876e24c09bfc
BLAKE2b-256 e9324612a49adf7676155f16a805874313f7a1b88a42d442ebce3447b42c771e

See more details on using hashes here.

File details

Details for the file restate_sdk-0.9.1-cp313-cp313t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 10ae0906d5437cd58b0324355681339a50b7d20d811a8daf38ddf29cb98070d7
MD5 c4ecd4b7d5204cebc96cbffb55c894ec
BLAKE2b-256 bb0eccf11a6d7dab43e944dcb3da86eb52f08309f9cc265f19815a57a8c5c884

See more details on using hashes here.

File details

Details for the file restate_sdk-0.9.1-cp313-cp313t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0cba67aca7c3687e2e3064834f3e6003d6aab317d56fd7f92ccdb8dcc1dcde0a
MD5 d1fb188b846686e70843d3fbc9a087f9
BLAKE2b-256 ff0a1db213880532ee84d2bb84db2ed4c6354966027d828eb0f306f3ade27e04

See more details on using hashes here.

File details

Details for the file restate_sdk-0.9.1-cp313-cp313t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 88c48936a8704fd4bb8ce8ae6dc4eab0b3d50a02605c571f603a8634395c4fe7
MD5 5324576251d24139b09d06b95af17ae1
BLAKE2b-256 0bd541d4cb2634537c04ec60b9ad1817567a3cbcdd51d6be15ffcaf51207c5f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 77a49cbdff68ba72851569b0d8c0d5f9d6cfa703d4081f73675b406c9393f2b5
MD5 1147978ba4033530aa91972ae447875b
BLAKE2b-256 0cc48ec62ac016dd4eda0fdeb6172ff7a8df609f9ce13fd1226c65fa7a1e4890

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp313-cp313-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 849b734c64fc2b296e0fe6d06a5226b9783d5859b2341590e865a42ed889fef0
MD5 f4f7c3928dfa0f7e1ecf2fc561d68369
BLAKE2b-256 e5ff05e9218d2780ce006b0c1549b1fbba48c5d3bca6b69a56d2d6113799eaef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a86c654785e9c05902c9739ebf6a6fe0216a7403310191fe5057eb11effeb8b6
MD5 29cc8c62e57d0c8bd1ef2e98faaae8c9
BLAKE2b-256 abe3e3d0c6a212f284f094ec12ff94f52aa917fcfb29f756258bc437b894be6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 806aba13291a78ed631b76ed41342c8bb4f8b576686ec190ed9488e9465bbb6d
MD5 433b767aec092f771e985a943a13c770
BLAKE2b-256 60f8f74442e6b4b7ba12d466c3968878d8b95f65089486e84302e91f58fc6bdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 065a20924b2cc86f55b3b5a48305533c038d253da2bbb49bc167b58eba78fd31
MD5 24eb7c041faf6e622c3446e76cd34a96
BLAKE2b-256 e2bcd46c3af60994d6a0c208b5bd25515e84fa28ec7428f851a71d40f3f684f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 72cc51257fe3a07947b1479ab9114976676942e056b122b147d59d7f2c21d386
MD5 2df79c79ea3d6517b99be7c81d9848ef
BLAKE2b-256 19b2f48d81029b2095edb2370afd14f08977c9a2e1ebba389342fe7b38df1dd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bc6269292a44d09b7a3e4172c8bf9641237dcc8b0bbace9c1463a2e857eb966e
MD5 ae366731b9995e73bada8ef93a248779
BLAKE2b-256 341320e492bab6691ae2a68cce6547a3fd9f9c794e637a62dc23b0161be8ae26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a72200040e16492b1de853f362088690f15b6e3d620f2c9777e2b86e76150459
MD5 f22d2467f70f71a88995d34057411edc
BLAKE2b-256 9bc6345af7fd623c6e76c90e80774a0339046e4d9f2c227c8108b35f9d0f1cd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 96c4049bc0ea917695a99cffae8403aef582140f06355109112ce18928aa8854
MD5 d4c8ba171f651018e8cbd09d57a50c91
BLAKE2b-256 4753a9cad3de1c9c375e6a3147cf2d7ccfa1ee06539fcfdc8dc79c77ab397627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e5c432bee401a7ff8a2bd51407f7a80ee9910d8e45a6c513cfa19e3247f2c310
MD5 a8cd017030043210a8a86bef089a1077
BLAKE2b-256 07257e600356adcf3b02c109a4f09853a2d203ce43197d3a920165b1e600ea08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87d80b42129784535de7a90c9a0ec189ee183e2142957cb2ae1a7bd42656f187
MD5 03b6d047d50cd7e85a92376e557a1cda
BLAKE2b-256 10115a9d50be4274d88e35de47a66cbd6c870923840aec0736001054ee75616f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e4a09c2a459884ef50c5be0cc90d8f478efef44efecf4d31b015878d2dca3654
MD5 b9892c0cb94a90cf425e80fc863a87c4
BLAKE2b-256 c57bbab05cffea17c11db7e228a040ebca423be3835e368c552126f71b30e7af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9ed6d2c4bd2f9d1a9f4ec844e8aaae455953bf331fc36efe1e83e73c1bf2ab57
MD5 06f623492903a7d426400ab419d6bc99
BLAKE2b-256 7fe4e9237726bcd88caf2e469cf662a59cc64265b1ec8805c5e22aaaed0b1e71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 c707ffb30bff1cce7f2bb2403fd570a5766436f08b431cb930c2d6c901cf4f5c
MD5 93adc8f9b9b6df9575c0f2ea3db98526
BLAKE2b-256 7391174c7e1e5079dba5eebf5fafa3ae292046291f12feea47a3dac61fd68520

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 74864d92b84f68a8d14f402d0f76896c4ad7d09774bbe763dfdaed57c3f14dfc
MD5 638ab441047f95bd309419e1b2c23038
BLAKE2b-256 15c6fdd25e069bfe7a021bdc28539fe98a08c0ba784d2f10b38bed28209ba1b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65ee791439384c5a7149c7c17c68798174c73edaa036a031e583f81ae6878522
MD5 90c50c5017212d15fc5f82842fe2f46d
BLAKE2b-256 ab07f99eb69319806af296d116b4f2cd922fd795be5d30f88fa80bd1729b8b96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b50013d90cc61dd585353dfa87f0dd44d1e6351e07defcd6c65364b24323c90
MD5 e2f66367912320fde07682b9d1da9a74
BLAKE2b-256 a92050495cdef27df8843245916a5b537588626ced78e41e2c7c57c25daeabcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d2aa9e16c47a77a1b4b70817824929f2bf419631e8ce7736bb7980b45ca67295
MD5 30cd597e936b94e88bc099f5f6882e71
BLAKE2b-256 fb217d22126e2e642291a68da17d96027d33041036d6a615eae0058455bd1f54

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