Skip to main content

openriak

Python HTTP client for OpenRiak, generated from the OpenRiak Smithy model using smithy-beam.

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.5

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.5
File Size Uploaded Provenance Actions
openriak-0.1.5.tar.gz 127.5 kB Without provenance Details for openriak-0.1.5.tar.gz

Built distribution (wheel)

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

Total release size: 191.8 kB

Release files / openriak-0.1.5.tar.gz

Download URL openriak-0.1.5.tar.gz
Size 127.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2ecfc0b402f327c7c569038021e9a3ac5233c10b9811793fa13bb4722a51650f
BLAKE2b-256 checksum
How to use checksums
2dd96b041b23266f2896f12b83dd4dd555fd3c356333301f87e0d8576a946b6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.5-py3-none-any.whl

Download URL openriak-0.1.5-py3-none-any.whl
Size 64.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0ab125301845dad79fe88cfd289b87c294ea7cced267e686ba05c5f955e3ff2
BLAKE2b-256 checksum
How to use checksums
3c8a1b5efaef0de6b9a40ebebb4587d14938725fa0cb0e47ace59e1237df86e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.5

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