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.0.tar.gz (67.1 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.0-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.0-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded PyPymusllinux: musl 1.2+ ARM64

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

Uploaded PyPymanylinux: glibc 2.28+ ARM64

restate_sdk-0.9.0-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.0-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.0-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.0-cp313-cp313t-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

restate_sdk-0.9.0-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.0-cp313-cp313-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

restate_sdk-0.9.0-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.0-cp313-cp313-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

restate_sdk-0.9.0-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.0-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.0-cp312-cp312-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

restate_sdk-0.9.0-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.0-cp312-cp312-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

restate_sdk-0.9.0-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.0-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.0-cp311-cp311-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

restate_sdk-0.9.0-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.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

restate_sdk-0.9.0-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.0.tar.gz.

File metadata

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

File hashes

Hashes for restate_sdk-0.9.0.tar.gz
Algorithm Hash digest
SHA256 e3680c68c454ac4967cc4d76c987aa1b05a1273c0c7e63ae6ed560ea523a9b81
MD5 76e1b7d359805555eff7cbdd005bd21f
BLAKE2b-256 02a06697ecc72e8869cea09b2cc8fdf6a5b553882717a54997668c6b4f154795

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5b9677d8ea1f24f8116d9b41d3bd2693af0cf7792ae7ad40d69ee277b29092eb
MD5 872d0ad24cc45e448ff1609c7a70edab
BLAKE2b-256 1a86e1118ad56ea5ad07179f517e3f2758637857b1ce72e1204d471b17b9e14f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6dbddb86d58bcbb1d2ae571fed2ace74f4dfa3f15f77f5f20533d09a83ca98d8
MD5 9113763f4df6e1c5d2b72159946b8a69
BLAKE2b-256 ff814d8f70a0485532854f3fb286707a64958723fa0f505c9c3e10356431ecbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8f6f1446e49b71924a8d3cfd5d2a37f2f99e0c437fe7af99c2d6e92a89d010d5
MD5 8d4b746408d6069f848799882f8df229
BLAKE2b-256 657e36c19ba5a4df8f925c4b2748fce9c919402275d82701c8e7ff20ccc2764b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 87e8a4b9c095811baf812867ba78eaca3479d45f28ac6c32e8f7633fc3f08121
MD5 9a5719a140a22e4772d33d5a3cabdeac
BLAKE2b-256 f1aeaee9ae5281dd1a6d0855c2aac94179e2978b37a596acd8cfbcec359be492

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5c2f4bb3e139023007fa72088a2709fa944d6de3649b831ed9bc45f6057165a6
MD5 391c2b9529e2a5a425e6f0a7f00dd8a7
BLAKE2b-256 efb7e1cc646691f48360c0bcbfd8ec1adfdfd72d156adca3bc3466ef3cb4714b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f27268f1b28d3c09e9643bd877278f5c415b04aeca1c902cfbcc269123c7f202
MD5 cbb892e7f9fd97236884ff59f7b44965
BLAKE2b-256 1075c1acc388f719bc2921484253c0c823cb7041e35078fd7503385afc4876e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 36c4df2c3e78a8654f489aa954fd0c8d71e27de70e4f0d1e1cda1371d5339dc1
MD5 d57f4d34ad7f2dde63984c0ca77d9f4e
BLAKE2b-256 66d7ced5fc6a3f2209920b8fd880af6eb6f496e604986600b2e0dbfec87a69c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d34b981c82105ea1c839fbf9d5685053410dbce4e4af776a28bda3960afb7c4b
MD5 f3ae316707dc47e0f47a18607c107725
BLAKE2b-256 248654f508ff6ebf7966e168f75017286b28f154a1aa5fd1f0e12b62840c7e94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0a57da5509041afd9700fb6ca62584f0404c223ef6de39808bdf7c64fe3b007d
MD5 0901489cf1b1328401adefac1251c5b0
BLAKE2b-256 3ef5a067ff8489bd4121af41caa614ae5713a76ade3fbc6fa99452aeb9dbd5f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp313-cp313-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3bb197dbd8cf5b2e188689e0d2cbc79ed9ed0440f7e118a64af5907379e5d9b4
MD5 04f73b96d0b8cdfea8977ecdcab73e3c
BLAKE2b-256 64702ff723f8dbff07fb1b4b9882d6aba2635267e63cc53046d76b2a2a4b1494

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8f13a12ee891cfa10a68e682024cf5166c635d315601f76b6102fadfc95d0989
MD5 4098aa8e81d1fdd8ba775fd52ebab8f3
BLAKE2b-256 6daf0e4031a2e7fee9230a8d8ba9a28a200b0a2b42380692f156da16be6cf771

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7e43078003e476a4814f3a433c5d40a50b8144ff5961b00479262c9605acaae0
MD5 f219bd1d292316dd59af0325dae0473a
BLAKE2b-256 1de2624e74a5b9edd9607f0180e7a1264662653dfccdb92f74d790c803a0a9cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0f17296562f4e699b9c710b1e599524be35cdd5ba91fbb1c88b7d277248e386
MD5 7d5e554d7623262d4b1aa1a68627f187
BLAKE2b-256 7a5d3ed2fdbea34bbf45f2aa7514c12560a07acf914f68af7ecbd14dad3d9e0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f78582375605600d4fe4f3aa9111b75b79e8e8245e6fd661d6524b9c37c4d6e7
MD5 1da8bca521017c2aa92203ee44c38e40
BLAKE2b-256 77e30b0c5fc4c313bb016074253bbae02af5095b0e6b523d8710671524458625

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b492f3a1a5cb103efc36ef7eefe823a281eca9e74d0910570c5678ac81beb93b
MD5 8f8c59b65b2652bb31f3d38968354d62
BLAKE2b-256 943cfc41b8911570c564b669a82c23d6887b918e189b73c8fce66ced9aa1fd1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b28f7692246d5ea16bb21a0a15745e907cf1f096faca4f63be32989da330346a
MD5 75bd325f0c361455ca38971e9e4d1d5a
BLAKE2b-256 73fc12333bac816fca212218056de1978a2ab9437c858dd27e0c7826e3e5659c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 169995e88f8c516e1b86604af44d276aec8702de2dd4ebea2bb8a9d48ab8ee5f
MD5 fe2300f48c69cf2757f6867b4c45c29b
BLAKE2b-256 178c028cf9eb9859d68c72b77dea3c14d1a83ee01dd3729add896af56d29cc35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 075c068c47fc917607f3e20cc39bd63754511a6206952e29622aa64085f235ed
MD5 57aee848a1d813cb66348251ecfabe92
BLAKE2b-256 449bfab6c3d2f1d493cc28e0719f9e3d09083782b0cdcffd2c0daa8eaf5f3339

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a444b5f5c00817fde6038237b85290d07dffcc5eebf442fae877c6c2dec6587a
MD5 2f24142970c63079ca717e63cd2f0c02
BLAKE2b-256 8bd703f55e54c04f3666712452e51ed13d245d6ade8f5adf4c1bed825439cb22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5d703bfa4cc71f97508ab9d34d0ce365c538d373b744b7b40272749f55062691
MD5 b5c1972e2cf1cfbd46a1d193502ff7ef
BLAKE2b-256 6b5762765b6f0ab84dee35b701273746b0a63267bbeb3d456a7643a6ba2f2e96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 712cd3c02a80d02ca094b5901bc239108c435877b4bedfbf979976239c3f7e82
MD5 b86bf480e4be8d10f0d3cc2d858b7cf4
BLAKE2b-256 34815067d5701273e2132cc87d4be7f935a3c3b3aa8d77b6a45616e6c5ece271

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 dae549ff3451beafabcb31d74f1dac59a990a16a5f08f575c18b4907f1cc0f88
MD5 80c464b65f4b1cd54baf486fab2edc1e
BLAKE2b-256 a8cc037c65393b3ecc3ce9dadd8f26780f99b8bf610959ae4d32d3f4cf9049ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dd25e22031fe3dfa45fa49c06b88bacf8eb3b3e56091c87920b295e1cc44b80a
MD5 a59733abfef3a14dc827680a79521494
BLAKE2b-256 7e87c22c8e998b504f70fd2a665e569c43945c79f77a4d996dd68ab5aa90a71a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b0727308d7262b94624a880e1b402489b076f4d08d11fe9dc7c30ceb093bfb3c
MD5 36f56c1c414e5e8f9eaa347e3ed69e89
BLAKE2b-256 570da2d87070ca38cfbbdcf33a8ef2acf99ed5d42a065977cc8d3deaed2191e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4d814199a6a41f4558555b63af6db665ece63b7b8ddd1b2eb17a789d261b0de
MD5 f34091277654804aaa44b4e6162d7389
BLAKE2b-256 a2695744048d1438eb06475ea973ca8ddd9d2572f581b6229a0425ae99d73d20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.9.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4a69c93897c56a23592471e7402ee9d94ebefad587a1adefc967464a9c548454
MD5 e71823f3e26d021aa957a8347535eeb2
BLAKE2b-256 b4bb9df31c34c4dd908dc0a32327440713efd10f3f44e02de066ff34cc63f602

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