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

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.1/0.2 0.3/0.4/0.5 0.6
1.0
1.1
1.2
1.3

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.6.0.tar.gz (57.3 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.6.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.6.0-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded PyPymusllinux: musl 1.2+ ARM64

restate_sdk-0.6.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl (1.9 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

restate_sdk-0.6.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.6.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.6.0-cp313-cp313t-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

restate_sdk-0.6.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.6.0-cp313-cp313-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

restate_sdk-0.6.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.6.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.6.0-cp312-cp312-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

restate_sdk-0.6.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.6.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.6.0-cp311-cp311-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

restate_sdk-0.6.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.6.0.tar.gz.

File metadata

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

File hashes

Hashes for restate_sdk-0.6.0.tar.gz
Algorithm Hash digest
SHA256 ef931238ecc69ac524d243a6f5e5e6447f5f88005753fb86a2ba76dac382dd7c
MD5 f4f606e6a51771f3fd84e148e11b3462
BLAKE2b-256 4aa4b1f3d5a075a8d2e4b926a97ff4e78f68c9715b04b6f1852f73b87ef2ce5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4c038cc1cd440da20f5935a51e08b7f3e843f125bc982d72df674daa274434a1
MD5 3d2622a164236120ea5e609dd9f0a03b
BLAKE2b-256 9b1da6aebc9e77f14943e0b00be0c8680b641279a055c921d4b309babbff0c60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2406d1b604177c1af0d992e35f4d4940495cadb3d592f313342d9db4b8195aeb
MD5 8178c45659d91ed88469850279f5ac9a
BLAKE2b-256 009c41038432d0f52b2132172c43abea4b0b647afa682e46ec99245c07d73c6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 90cd26a66d6cb2a9c299a3fe6a8c9643149643e78b652437a4c5edb8a424ee1d
MD5 ac886e54e788d2827f07d7c9a26db374
BLAKE2b-256 1d5ffa7f299ba3a773a5e84751e2b86f95fd48c18c800ddab1c06f9895984fc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 be22ab86afb6d0f4c864b8aebc6544951acfa9dc897222537f4b01ab7eaa7c38
MD5 4671a7bbb8fe5e57d3f48563f452cad9
BLAKE2b-256 a5f151d4c107cb64f58501d587191ceb92b14dda10c4870fb733ad5375b11de4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 16a0b57c2474da664eb35da1c8b39eb218820a2a3d96aeffcfd9a257531d0811
MD5 ff13aebadd5e0a826aae9f6f28bcd118
BLAKE2b-256 a530ac34c4f082686ccd988c3371f4e5786bffa3fb21d0e5ece939aa10000e66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 22bc2019c7fe49ff87cc67a1e21fee3d99866506772df4db1ff11634a9edf8a0
MD5 3bce617f36df6b868eded74c552924cb
BLAKE2b-256 2240b737485fffde3cb782ec896cb758971ce6d9c3f3f4a48efd7d94584acc9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8498c5a5e2271048438e5e3bbbbde4b066ee14a28ec105bf0cdfd8b851a3171d
MD5 e7c460d8b55c04423289282436c15a0a
BLAKE2b-256 a117f65b0f9766589d661378f4104ecc1c05fcc6aa17e4f1b232eee8cd8d6cfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a5fbdcdbc09145d45b3cb5fdc7e7e33c96b6c9e2a13f584cd1b95c84b0be2570
MD5 165295a5d56f6bf4f3417aea6a446f97
BLAKE2b-256 a109b4d1b22279fb67a6c352f77b2a675d6cf0d480bbc1e1d43ffdb3f4c7b52b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp313-cp313-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 45ba6caabe8b1272de57682238b79a12d2a24a52942a640b46c8b15a909f3d26
MD5 1af5909ffa130b9e95da81741aed03ce
BLAKE2b-256 23f0190c8fec6b1b329ff527a69bdf2d1f53964a2a32456a98080ce7a9c3d919

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e8ab8bcd29e27884c4cef394bba6021435928249f806122f25b8a49737477a32
MD5 760b6d7b630d693d26967b19a17e209e
BLAKE2b-256 2e47cf92d95a2ceeec84fb7aaf34a923432bdcfd9ac810064eabd1015f92f1d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a94c3427c232c0a5b6872ef096a4a45358a8c2fd6d3c12e3c6e8b3f92476fb3d
MD5 381d8557e02db036f8db980c1f3f7df5
BLAKE2b-256 c1685a850db64bf28c42c690ab8897e7709dc8f019d638556202d719068d596d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 492d068afe29b87eb6e40333ded5be274acf6e002ebf0469386237f09a31dad8
MD5 3c0bf4788ba433a00a3b526c9c8793ae
BLAKE2b-256 5ddcd4abdbb634dac48ceac18bcace19039af5764ddc06140580546d9a52bae2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 146cdc5b29e1c8675d0cc5f2c76fa25171cb52aeb8d786ddfdb46b32cc8acc0f
MD5 5c38950bec7fb2ce091045053f4d45c5
BLAKE2b-256 db4c6ae87ccc1d2004c6b2e2870bb4ffb65ac09f6d285a90051f083c09e3bab9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 feede7e9e86ee2bebe68118b4068b0cb367806409b3cd6886e09d7c17c24f4e0
MD5 f04dca33e6a926b0bcf8fe3fed52fab7
BLAKE2b-256 32885c2fcfce94f73eb4a764be1a54d6f8806885c19995b7d183dbb91ba647d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ab582f6681693e44a0a97cae0290e3f9256e5bf3acfd97b5c7bc4bb1246815f2
MD5 e07e53dfd603cb40368897d03af45840
BLAKE2b-256 dd0029f066181a59c12e6623b738448683ae36c18ca7068b5a7a9a8ee089c61e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8a1f2dbb4ecaf3571641b112d6a88be24677e5f8187b6dd41fec4bcc14adccb0
MD5 7c0317932fd9af2a147f0b3ca6e3b74f
BLAKE2b-256 6247dafe42b34e8223db9ed0d7fbc9499cdda3759286a3d44061f8835fb47041

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 95b666cf8c35f3ec3271a3e796488b09911ba885da15ef001c017ab926527984
MD5 ac94dacd80a2c4ac32d9291c50093e21
BLAKE2b-256 840ea843c11b000065aad572a689f159022a50a1f60edf37a770eb31554c6ff3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0877722550a4cd8e897e05f263bf15d66527677e4b4e56170547b07770742601
MD5 f24731c4f4013975313789a9669c82d9
BLAKE2b-256 c12183e692d91deb4a2ad713dde16ffc2d285f0f1d89ff52a0c76ae44b02cf77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b05a4e298a9f6311603d86ef6b53d72cb47c79013463a415603f8bb7895e34e6
MD5 2882e050f8c3053a435fe6fa3930d7e8
BLAKE2b-256 33ab1b1558e8eea708655f90a95eb22cb23ae7bd2fc9770b89a3a98751b29403

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6375be9cc9b2bbded62ad0a1e5ede8c101e686c93e452c38bc3fa34a59d06291
MD5 fe3f3c3d0c5d2ad72626bd8f68fb7546
BLAKE2b-256 437f3f01560b409b3e16bea9ca7351bd8c6ab503ac2e415d586027afed3ae420

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d85310fa104f0ad3d30659e62ff548c17905f029db692195365b524238ed5e9f
MD5 6acd453d0992a78ff5e39a946c215fde
BLAKE2b-256 d8656730d393634fd0a98cab644073da561f80f13120ec934c26ee139905ddda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c4355bdd6b6c1736963a9f57ec6599e7badba0536f0fbf7653549c52c63f9af9
MD5 0d22156894c5078b1748fbe660d520c0
BLAKE2b-256 f340b96f6d08711e1454442348a0fde144962aaba0a2f7986c3b764e7615b4ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6955d3a78ac5d02423d6751d3d9e74f2e3a607f6ed4a928aa2a51dc89442aee3
MD5 01f3b69f4edae306801c86c880646732
BLAKE2b-256 b4b5fdae21bdc014de3dc70bc7361ae068557ca88b984c59ca7a5bb648847ada

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51258b8c5dc3d409753e6f1a53d2e4cb06a4867e3f69d0abe05074dc8d29f0b4
MD5 30b289242729af4e07a40950aa841ad4
BLAKE2b-256 13c84c7bf4799004391407f4b29315936c7d0f6d619fed4a0fff0e22d16bd2f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.6.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ab0cc8f14e464340076bd92c4f909e0fc1a8ba53f61d0d69e3167348ef5ed229
MD5 a7219cb9887f635be8d20468cc0331c0
BLAKE2b-256 de03c50fa7280a2486c406fd54fe95975cca4ada2ecfb2f5c0fb658452e50b64

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