Skip to main content

Python client of pctx0

Project description

Pctx0 Client

Python client for the pctx0 API.

Install

uv add pctx0

Usage

from pctx0 import knowledge

with knowledge(api_key="your-api-key") as client:
    client.list()

Or use the full client when you need multiple API areas:

from pctx0 import Pctx0Client

with Pctx0Client(api_key="your-api-key") as client:
    client.health()
    client.knowledge.list()

Development

uv sync
uv format --check --preview-features format
uv run pytest

Tests start a local mock API server automatically. To run against your own local pctx0 server:

PCTX0_BASE_URL=http://127.0.0.1:8000 PCTX0_API_KEY=your-api-key uv run pytest

Publish

uv build
uv publish --token "$UV_PUBLISH_TOKEN"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pctx0-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pctx0-0.1.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file pctx0-0.1.0.tar.gz.

File metadata

  • Download URL: pctx0-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.12 {"installer":{"name":"uv","version":"0.9.12"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pctx0-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a897b9f8ce9dcfa95a6e83641e6f275bb4bd7e84fd060e843af9d57c6c316d98
MD5 604b4cb4f7a2a50b181ce2af0eeaf168
BLAKE2b-256 5b428f07e9f6ef05af5b99fbf4ebfef0076daa503d029cc18c7fd36d5a62dc64

See more details on using hashes here.

File details

Details for the file pctx0-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pctx0-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.12 {"installer":{"name":"uv","version":"0.9.12"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pctx0-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 259c38bb49a16463d154854af10123f7eb58533f9571115af4bd7fa37019bcfd
MD5 a15d94502ca39c6561ee99a623b429fc
BLAKE2b-256 3c40bf90d0adaa5686a71087231400746b6b473a89c28dda0fa6d55cc23fe284

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page