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.2 0.3 - 0.5 0.6 - 0.7
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.7.2.tar.gz (59.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.7.2-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded PyPymusllinux: musl 1.2+ x86-64

restate_sdk-0.7.2-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded PyPymusllinux: musl 1.2+ ARM64

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

Uploaded PyPymanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

restate_sdk-0.7.2-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.7.2-cp312-cp312-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.12+ x86-64

restate_sdk-0.7.2-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.7.2-cp311-cp311-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

restate_sdk-0.7.2-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.7.2.tar.gz.

File metadata

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

File hashes

Hashes for restate_sdk-0.7.2.tar.gz
Algorithm Hash digest
SHA256 82995f9d4c673c7a3799c2ef214b6966236fc5f6d2acd1f4840ae828cdd6df69
MD5 372a6fc5b9ca22d04ee9fadeec4e2fe6
BLAKE2b-256 cb2b66da94e16898a943b9500e6a9556bbcb41c9b635fc9ade0a3a95b5dbed8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4adcc512ea9ff3e953be70b43d1bde87a13630d174820c8e69c3fc2e27fdf678
MD5 57175fd2466db31c4a341b4992a61051
BLAKE2b-256 cd5a3a96d3e480f2e00d3685de91800470b1f147594ac7d84edbc763f139cbe9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0132de43c5730bfba13223853643c06b36ab94d80e6d62375acf19753c271d7b
MD5 d5d0df10111b151e6311e873cda7d19c
BLAKE2b-256 655831e413ba50352184d8069ca036fd8ed4e5824a64483b9a5f3dbb471e1fe2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8b27cc558e56395aa435f0e17d8cef6c51ccfe0426109c0afea7dc0951d68c23
MD5 53ce83e7641324e2716a1e59c8ff41e6
BLAKE2b-256 ded1686e0953a4d2ecc56b06aa65da44ba15eed32ae4a3866d28844abadd0956

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 788524560d62fa0c7462f2bf9fbd048672d9884776378fde242bfa1efd6390ce
MD5 851515b0608f4711290c94c7441f9527
BLAKE2b-256 5db365036cf000a5c6ed980b2c572d0d64e91fa3cb1d4649351f9bc8ed105915

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d24f8887e7efb642a0c4167f7c91712f026b25d46f6c54451b9132e297dbc3b7
MD5 d55708d8eeac06ee21a971341afed40e
BLAKE2b-256 721e4fcbb51b61ccf43d016c41f6f8fb45d61c3b45b051b67d91eb5e663924cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ab57c51081c1462ccbba1b5a34526dd04aa31b60d1165685505ff0397fccd0d8
MD5 a6ddcd0369904004b5d666c726fdb043
BLAKE2b-256 72bcfcba0d58f38ca27618816921b45dd56714028aeee9de952f5a2fe74c4d84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ce02ef38e05ab796896703f8672b5dc12b0db3ddfdccbd5d0b478fd32cec81f0
MD5 2e1916982ae2bebd997c424bdd6cf736
BLAKE2b-256 62e675786eea31ca69df124dc6e2d92cce54bbfb733d8e0c16aa1dfd6d877617

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2eb82ae0e80820d6ee95748d94b39d64bab811106b3dcaf683d182227eb7e161
MD5 cd6e8ecd6a7cc43a788bdadc586a2f85
BLAKE2b-256 6f73c55b5a3d5fc4c5c0ca8be14597b98b8dfd19bd49926c3b1e2ea46a6353a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp313-cp313-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ac392b6c14d778e7560b9c5fca54e09f4cf059b9ecf76375797f332408f93b16
MD5 dc2349952aa84d870098b3b4a95327fd
BLAKE2b-256 ee5db25f46a4bad0b22a9b2c9fe901e01144866df180566b03b2b4094a509f92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 16022c0eda79018afbf9d6eb85c8a5df4bdc72f50dc9a6b2722b936dcbbc7fbc
MD5 b216db7fe5f87b4e345337500e75a533
BLAKE2b-256 cb97e5f828b27f1b8104b08b6a61257cc0b430b0ccf0b8423be7fae668040138

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d429ac4d2c9b61a16215d6bb9665699f312185c07aa76b93dd87cf3206c3951f
MD5 57f24e215daedeca1a3e02ac442a51db
BLAKE2b-256 f759514a299824091807575a153b080bf336ca16d6bddc929a176ed222907d8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a3df3b6c57c2ec3d909848c9730ccbaec213618a5236d6c8cfbdaa9637714cc
MD5 f9b18dc4012a85c5bfc730333dc03683
BLAKE2b-256 8cc91267483feb761edc92ffe36c21b11c968181b9964ba46a5850f111ac0d72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ecedf8b53c19ca6ade5618ee0f9a0b130266181c6bbc9ffc82fcae50a7fe0112
MD5 1fcfc8d1af06e28aa43ad8cb7590f732
BLAKE2b-256 e66de810a5b3dc55f8d2e32e9c20fcc7d692bacb3f3e205468936a06487b60d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 23acb3b61823693a86bcc6ff48b4ab83bd19ef727f5adf8cff88403ce7f2becc
MD5 7e8ff8b64a1a55481af345dd61c7b2b8
BLAKE2b-256 8790af2742fc8b8d93a43b48d6dbd95c14a40d9626681e48cb0f2991d56e3322

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f35395a224ee272bbfc855e8bf5eeb50f387a2178104d9130b4f94e6b6fa1f9e
MD5 f41abad1422a9f482c87f0cf607d5714
BLAKE2b-256 f0a280546b3833c8749baafbfd283efba5332ceadfc6e48d30bdb1a2c78c2ad8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 926e2b23b5c4b2dfe00e40407dfbaf43c3051cbf35fcd5cec6004969e400741b
MD5 12a21ca700c20f96349b2dbe31a7fe57
BLAKE2b-256 5610868068c19fb46bf41f54a9d3d95f485b9a538e649e0e9935f477a64da42e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65fe05134c52872ac80640b745d5a0f0988e3600dea002a6e81463f547cfa395
MD5 7f5131e49c05d69ac1f343861bd63c28
BLAKE2b-256 c2eba460425261d8fa0c61160161252fb72e88591a59034557968ecdd7008c7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2bce3fe1b2c0d11184b8a7118bc83e0c35c93fda01078dc6dd5223f05dc6dbd
MD5 6c501d7d7f69cd8287997802d4aa8aa5
BLAKE2b-256 1ec7b5b7445addfd26c3ffb423631a78d64617f4ee106f20b0df8e9450ab0eb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b5c262ceaf41cf98e649d48e9ddf5290c5ed870b4b159bb64e65bac65c26f680
MD5 777e1c0587cd9947162bc944abd294f0
BLAKE2b-256 7b4b4ff54e1fe2f88dd2c6802a464ed59735ea3f09ddf5c1df93ce2dfae98fae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 df998ca446966552392b9c36c7a600d82a367541d632da6b0ee965ae5c69bd38
MD5 a5e8dd97f2f76550e8be0f79c6f6d548
BLAKE2b-256 f1d95875c477ec26edcbcce677e554a32337407e0a571ca0462c7feb9fd7c935

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 32828ce1a1059004b3899fc2d68f014ea771b10756b8d060bda41330a997be06
MD5 ee5f027efd77c9af2ae3cc20ed4ca120
BLAKE2b-256 fb477ee92a52408ad4446f4d764d9163354ed1d114f8be895bc528054eb0f1bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7c0eac9376146f825e0e06c53a2501e11111dcf78ae460ff9449e78806469f7a
MD5 9208ac306a95cc014518ebc58b8f0f9c
BLAKE2b-256 9ed2fd6ec032bec44f15d91cefe2b83ccaa22b44fcbb9c22104f43158b80c115

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7d822a6c4a370c42759387d3a65dcbec30e9adc4e301505a6a7e3c54b7e65cf1
MD5 83db3ba1e3026fe029d1de6cf2cde35e
BLAKE2b-256 32ab34b9d60e074164baeb069e7858f868be9d3f42fcf6520c56c04f27bc9c80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c93fc43b90c29f7d3596984b25c0497eb4f3b63824b02c12e7c3c0374c1a4f46
MD5 97648dbfb4f904047d747961df5370a4
BLAKE2b-256 33dacdd2fbe67e21fcfd11cc91e1a273e27cd88f92b1a13260d6f2bf716e9a9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for restate_sdk-0.7.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5ebc41294878aaad78d0ce34c49ae05c1b7679b90af393bbd62e12ebfa347a36
MD5 6ee63bb5ae3750bdfa5ae9be5e5d9193
BLAKE2b-256 0ed0678b05d7334bf2b287158ee9781f192d0572a4dacbcda660bf8c13ea1a85

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