Encode and decode your Temporal data
Project description
temporal-codec
Encode and decode your Temporal data with Python
Temporal SDK example
See keys.example.yaml for an example key file.
For best results, use an environment variable rather than hardcoding the file path.
Installation
pip install temporalcodec
Example
from dataclasses import dataclass_replace
from temporalio.client import Client
import temporalio.converter
from temporalcodec.encryption import EncryptionCodec
async def main():
client = await Client.connect(
"localhost:7233",
data_converter=dataclass_replace(
# Create the EncryptionCodec with keys loaded to memory
temporalio.converter.default(), payload_codec=await EncryptionCodec.create(keypath="/path/to/keyfile")
),
)
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file temporalcodec-0.5.0.tar.gz.
File metadata
- Download URL: temporalcodec-0.5.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9090820f10bec9c81d0dc0f15331e666a2b1fb172dae533a3e0fdd41f624a93
|
|
| MD5 |
16ae29077244ff0b2b79aeed738b5a7c
|
|
| BLAKE2b-256 |
ba44f453bbb002f484e417d6a88527f281bf3d4d343f7d90a83b8d640d09bc63
|
Provenance
The following attestation bundles were made for temporalcodec-0.5.0.tar.gz:
Publisher:
build.yml on mrsimonemms/temporal-codec-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
temporalcodec-0.5.0.tar.gz -
Subject digest:
d9090820f10bec9c81d0dc0f15331e666a2b1fb172dae533a3e0fdd41f624a93 - Sigstore transparency entry: 955861219
- Sigstore integration time:
-
Permalink:
mrsimonemms/temporal-codec-server@efae704c32dc713ef7ead7b8cf87bfdcff652f80 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/mrsimonemms
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@efae704c32dc713ef7ead7b8cf87bfdcff652f80 -
Trigger Event:
push
-
Statement type:
File details
Details for the file temporalcodec-0.5.0-py3-none-any.whl.
File metadata
- Download URL: temporalcodec-0.5.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e439863c35b3fc64f21b11eeb3dd0ff8b3c7e284ddb776086a8b1fbf72c80d58
|
|
| MD5 |
9edcd8a79d6dacef96f2025a317456d5
|
|
| BLAKE2b-256 |
fceff4aa1bbaa9eab6d2d1d5af39ee8f465c82bd9ce91dcac4f3f683d94c915e
|
Provenance
The following attestation bundles were made for temporalcodec-0.5.0-py3-none-any.whl:
Publisher:
build.yml on mrsimonemms/temporal-codec-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
temporalcodec-0.5.0-py3-none-any.whl -
Subject digest:
e439863c35b3fc64f21b11eeb3dd0ff8b3c7e284ddb776086a8b1fbf72c80d58 - Sigstore transparency entry: 955861228
- Sigstore integration time:
-
Permalink:
mrsimonemms/temporal-codec-server@efae704c32dc713ef7ead7b8cf87bfdcff652f80 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/mrsimonemms
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@efae704c32dc713ef7ead7b8cf87bfdcff652f80 -
Trigger Event:
push
-
Statement type: