Skip to main content

PCMI Python SDK

Async HTTP client for PCMI. For high-throughput store/retrieve, use gRPC or REST directly.

Requirements

  • Python 3.10+

Install

The pcmi package is published to PyPI on each GitHub Release. Until the first publish:

pip install -e .                                    # from this directory
pip install "git+https://github.com/marco-spagn/pcmi.git#subdirectory=sdk/python"

After publish:

pip install pcmi

Quick start

export PCMI_BASE_URL=http://localhost:8000 PCMI_API_KEY=testkey123
python smoke.py
import asyncio
from pcmi import PCMIClient

async def main() -> None:
    async with PCMIClient("http://localhost:8000", "your-api-key") as client:
        await client.store("user.note", "hello", tags=["demo"])
        result = await client.retrieve("user.note", tags=["demo"])
        print(result)

asyncio.run(main())

Documentation

Metadata

Release files for pcmi 1.51.0

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

Source distribution (sdist)

Source distribution for pcmi 1.51.0
File Size Uploaded Provenance Actions
pcmi-1.51.0.tar.gz 6.7 kB Without provenance Details for pcmi-1.51.0.tar.gz

Built distribution (wheel)

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

Total release size: 13.8 kB

Release files / pcmi-1.51.0.tar.gz

Download URL pcmi-1.51.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c573f615488cc14302d75204daf834f9f5a9b9dd723fc4e50fd392355bd598aa
BLAKE2b-256 checksum
How to use checksums
3dcd0cda876f02a5d74587550cb624088c4553360740e482da6bf9d95e31a9da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / pcmi-1.51.0-py3-none-any.whl

Download URL pcmi-1.51.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4da7feff35dbde4d6b837ff820951402b5be43ff312240609fe9ca7d0fef1a40
BLAKE2b-256 checksum
How to use checksums
1c424533996ed6af52d62ecc5dd6f716d5ccb4cff39bdeb13581fb41232d6eb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for pcmi 1.51.0

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.

Release history Release notifications | RSS feed

This release

1.51.0 This release

2 release files No provenance

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