Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

temporalcodec-0.5.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

temporalcodec-0.5.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

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

Hashes for temporalcodec-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d9090820f10bec9c81d0dc0f15331e666a2b1fb172dae533a3e0fdd41f624a93
MD5 16ae29077244ff0b2b79aeed738b5a7c
BLAKE2b-256 ba44f453bbb002f484e417d6a88527f281bf3d4d343f7d90a83b8d640d09bc63

See more details on using hashes here.

Provenance

The following attestation bundles were made for temporalcodec-0.5.0.tar.gz:

Publisher: build.yml on mrsimonemms/temporal-codec-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for temporalcodec-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e439863c35b3fc64f21b11eeb3dd0ff8b3c7e284ddb776086a8b1fbf72c80d58
MD5 9edcd8a79d6dacef96f2025a317456d5
BLAKE2b-256 fceff4aa1bbaa9eab6d2d1d5af39ee8f465c82bd9ce91dcac4f3f683d94c915e

See more details on using hashes here.

Provenance

The following attestation bundles were made for temporalcodec-0.5.0-py3-none-any.whl:

Publisher: build.yml on mrsimonemms/temporal-codec-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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