Catalog PyPI
PACKAGE EXPLORERView in registry

afi-platform

PyPI

Thin Python client for the AFI Platform API

Versions collected1
Direct dependencies3From release 1.0.1
Last observed20 Oct, 21:07 UTC

README

Version 1.0.1 documentation

afi-platform

Thin synchronous Python client for the AFI control plane (/api/v1/platform).

pip install -e clients/python
from afi_platform import PlatformClient

with PlatformClient("http://localhost:8081") as client:
    token = client.login("admin@example.com", "secret")["token"]

client = PlatformClient("http://localhost:8081", get_token=lambda: token)
print(client.list_organizations())

Contract: ../../api/openapi/platform.openapi.yaml.

Gateway signed requests

from afi_platform import sign_headers

headers = {
    "Content-Type": "application/json",
    **sign_headers(
        method="POST",
        url="http://localhost:8080/v1/chat/completions",
        body=body,
        private_key_pem=open("signer.pem", "rb").read(),
        key_id="local-signer",
    ),
}

Release time: Jul 29 20:57 AM

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.11 Aug 20263

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:07 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c43e067fe78df4ade1e3b5af315b20f73a44c7d41c4cd77d963939db955e9984