Official Python SDK for the Pivot REST API
Project description
hellopivot-sdk
Official Python SDK for the Pivot REST API.
This SDK is generated from apps/rest/openapi.yaml with
openapi-python-client.
To keep hardcoded code to a minimum, nearly all request/response models and endpoint
functions are generated code.
Installation
pip install hellopivot-sdk
Quick start
import os
from hellopivot_sdk import AuthenticatedClient
from hellopivot_sdk.api.spaces import get_spaces_by_organization_id
client = AuthenticatedClient(
base_url="https://api.pivot.app",
token=os.environ["PIVOT_API_KEY"],
)
with client as authenticated_client:
response = get_spaces_by_organization_id.sync(
organization_id="your-org-id",
offset=0,
client=authenticated_client,
)
print(response)
Development
This project uses uv for dependency management and packaging.
cd libs/pivot-python-sdk
uv sync --group dev
uv run --group dev python scripts/codegen.py
uv run --group dev ruff check --select I .
uv run --group dev pytest
uv build
Regenerating from OpenAPI
Run this any time apps/rest/openapi.yaml changes:
pnpm nx codegen pivot-python-sdk
Generated files live in libs/pivot-python-sdk/src/hellopivot_sdk/.
Do not edit generated files manually.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hellopivot_sdk-0.1.0.tar.gz.
File metadata
- Download URL: hellopivot_sdk-0.1.0.tar.gz
- Upload date:
- Size: 67.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8c0346cb966f33f11c0d1e29ebe1163e39525b2257c9e700bd0844d48ca4b9b
|
|
| MD5 |
29a117eeb519a969bce72a2566911a06
|
|
| BLAKE2b-256 |
aadbce04a16390e5433198c13a0bd8b34ec786500031fb25763a24ae0c4abe03
|
File details
Details for the file hellopivot_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hellopivot_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 244.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20182d4bc31696e3b55edf7e69707d78b2b5bfc688262cadc1018dd54ce84376
|
|
| MD5 |
66138ad0fcfabc1f5d11176c841d3913
|
|
| BLAKE2b-256 |
586c2e1b39bb731ddfff9b6ea715d5eb5ab6a2faeea500bc918ec307ab8c99d1
|