Skip to main content

openriak

Python HTTP client for OpenRiak, generated from the OpenRiak Smithy model.

pip install openriak
import asyncio
from openriak import Config, OpenRiak
from openriak.models import (
    GetDefaultObjectOperationInput,
    GetObjectInput,
    PutDefaultObjectOperationInput,
    PutObjectOperationInput,
)

async def main():
    client = OpenRiak(Config(endpoint_uri="http://127.0.0.1:8098"))
    body = b'{"message":"hello"}'

    # Default bucket path: /buckets/{bucket}/keys/{key}
    await client.put_default_object(PutDefaultObjectOperationInput(
        bucket="demo",
        key="hello",
        content_type="application/json",
        w="1",
        dw="1",
        body=body,
    ))
    default_out = await client.get_default_object(
        GetDefaultObjectOperationInput(bucket="demo", key="hello")
    )
    print(await default_out.body.read())

    # Typed bucket path: /types/{bucketType}/buckets/{bucket}/keys/{key}
    await client.put_object(PutObjectOperationInput(
        bucket_type="default",
        bucket="demo",
        key="hello-typed",
        content_type="application/json",
        w="1",
        dw="1",
        body=body,
    ))
    typed_out = await client.get_object(
        GetObjectInput(bucket_type="default", bucket="demo", key="hello-typed")
    )
    print(await typed_out.body.read())

asyncio.run(main())

OpenRiak is an async client. See openriak.client and openriak.models for the full API.

Metadata

Release files for openriak 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openriak 0.1.4
File Size Uploaded Provenance
openriak-0.1.4.tar.gz 127.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for openriak 0.1.4
File Interpreter ABI Platform
openriak-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 191.7 kB

Release files / openriak-0.1.4.tar.gz

Download URL openriak-0.1.4.tar.gz
Size 127.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7548fb1b9642c845535c3516511bc1124c014facb3955755653dce659df155a5
BLAKE2b-256 checksum
How to use checksums
4b3a802d783cfd353dfc51e667554b1b8788296bf38a1b52b4e78ba846dcb782
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / openriak-0.1.4-py3-none-any.whl

Download URL openriak-0.1.4-py3-none-any.whl
Size 64.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8746defb192e39825a45661e1568328e5ad7160f545d7dc5884b2e943ad45aa
BLAKE2b-256 checksum
How to use checksums
d7453ead925ceeffed764d8c286509abcb82fdcdb9dbb679a47ed25329d125c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for openriak 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page