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.")
Metadata
Release files for polis-client 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| polis_client-0.1.2.tar.gz | 216.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polis_client-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 280.4 kB
Release files / polis_client-0.1.2.tar.gz
| Download URL | polis_client-0.1.2.tar.gz |
|---|---|
| Size | 216.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cd2f7332b084ef283a6bd5dde8de54eb87903dc05bdc2ebe3cf8cc8ef2b81bf
|
|
BLAKE2b-256 checksum How to use checksums |
802e2f5143ce3078cc9dfbde14f53743445bee1717a3043e654d8246f63be80c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.2
|
Release files / polis_client-0.1.2-py3-none-any.whl
| Download URL | polis_client-0.1.2-py3-none-any.whl |
|---|---|
| Size | 64.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
959c34918dff1260c9813254d7f8e130e2c83674f2d3d7904e228ecb647432a0
|
|
BLAKE2b-256 checksum How to use checksums |
38b41c0e5056d94cdd3f853074c068bf937c2e94d628a7c4a39f2fb9118a4d74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.2
|