Skip to main content

Add your description here

Project description

polis-client-py

An unofficial Python API client for communicating with any Polis servers.

It will start off as read-only, but I intend to add helpers for handling POST requests via xid, and maybe jwt.

This will eventually be used in the red-dwarf algorithm library, doing much of the work of that library's current "data loader".

Installation

pip install polis-client

Usage

See: examples.ipynb

File Structure

./polis-client/
├── Makefile                    # Shared: Build scripts
├── README.md                   # Shared: Main project README
├── openapi
│   └── polis.yml               # Shared: OpenAPI spec
├── pyproject.toml              # Python dependencies
└── python
    ├── README.md               # Python client README
    ├── debug.py                # Messy testing file
    ├── examples.ipynb          # Primary documentation
    └── src
        └── polis_client
            ├── client.py       # Custom Python thin client
            └── generated/      # Auto-generated client code

Development

(We use uv, but you can use any Python environment.)

This project is structured around an OpenAPI definition at ../openapi/polis.yml, from which most of the code in this repository is auto-generated.

We have written a thin custom client around the auto-generated client code that is built (from the repository root) with:

$ uv run make regenerate-py

This command must be run whenever you update the YAML spec file. For legibility of commit history, any updates to auto-generated should be committed in a batch separate from your own changes. (e.g. "Adding auto-generated code.")

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

polis_client-0.1.1.tar.gz (215.7 kB view details)

Uploaded Source

Built Distribution

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

polis_client-0.1.1-py3-none-any.whl (64.1 kB view details)

Uploaded Python 3

File details

Details for the file polis_client-0.1.1.tar.gz.

File metadata

  • Download URL: polis_client-0.1.1.tar.gz
  • Upload date:
  • Size: 215.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for polis_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d9e5452bf2d4e7afbf095a0ddcb9a8a8119e83a924e802747618ffbf3662582d
MD5 e9d0bbce9b397b329346e3c29c17a968
BLAKE2b-256 55d5f6e8a7a31333fb385853a0a6881356b8163c780d57d026bd385aecf1c47c

See more details on using hashes here.

File details

Details for the file polis_client-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for polis_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 948cb91d3cd9956f06f48022640708c3cedd5784f04877b5439a6c9c81c3a551
MD5 55f6e958e270647f03fc6a187adaa304
BLAKE2b-256 6d7275f5befcd339e720a7ac3894e89521d8c3770a8a5208d3a460acd4740900

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