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

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

Built distribution (wheel)

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

Total release size: 191.8 kB

Release files / openriak-0.1.6.tar.gz

Download URL openriak-0.1.6.tar.gz
Size 127.5 kB
Tags Source
SHA-256 checksum
How to use checksums
31cf98e2def2d26db749ab28ce5fd59050e513a250417a210dc198783ba25ad9
BLAKE2b-256 checksum
How to use checksums
45346eaf3db1678993c9e26f5dfca6ecc56692018417537d05888a8bfd35578f
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.6-py3-none-any.whl

Download URL openriak-0.1.6-py3-none-any.whl
Size 64.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f58f57836e094cf245aca895cf61f5f5ed9de84ee65ebb9e2bf1f1b2a8e34754
BLAKE2b-256 checksum
How to use checksums
9f6100b530013e402267611dba73234b4c6c260719b9cea94ef465f267426e89
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.6

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