CirclePy
Python clients for Circle.so's Admin v1, Admin v2, Headless Auth and Member HTTP APIs. Synchronous clients use Requests; asynchronous clients use native aiohttp. Resources return ordinary provider dictionaries/lists and preserve unknown fields.
CirclePy 1.0.0 provides all six sync/async clients and the frozen v1 API inventory. See release notes, PyPI files, the migration guide and changelog.
Install
Requires CPython 3.11–3.15; CI validates Ubuntu, Windows and macOS. Python 3.7–3.10, PyPy and free-threaded builds are outside the tested support matrix. Install the pinned release in a virtual environment:
python -m venv circlepy-env
# Windows PowerShell: circlepy-env\Scripts\Activate.ps1
# Linux/macOS: source circlepy-env/bin/activate
python -m pip --isolated install --index-url https://pypi.org/simple "circlepy==1.0.0"
python -m pip check
For source development and the offline examples, clone the repository:
git clone https://github.com/atomimus/CirclePy.git
cd CirclePy
python -m venv .venv
# Windows PowerShell: .venv\Scripts\Activate.ps1
# Linux/macOS: source .venv/bin/activate
python -m pip install .
python -m examples.quickstart --offline
The last command exercises all six clients with synthetic loopback HTTP fixtures, without Circle credentials. Installation and quickstarts also cover clean environments, token restoration and explicitly opt-in sandbox variants. Check a release's version before pinning it in an application.
Choose a client and token
| API family | Sync export | Async export | Credential |
|---|---|---|---|
| Admin v1 | CircleClient |
AsyncCircleClient |
Admin v1 key (Token) |
| Admin v2 | AdminV2Client |
AsyncAdminV2Client |
Separate Admin v2 key (Bearer) |
| Headless Auth + Member | HeadlessClient |
AsyncHeadlessClient |
Headless Auth key mints member JWTs; Member requests use that member's access token |
Keep administrative and Auth keys on your server. Member requests act with the member's access, and the SDK cannot grant permissions or plan features. Circle recommends Admin v2 for new administrative integrations. Existing Admin v1 names and successful return formats remain available.
import os
from circlepy import AdminV2Client
def community_details():
with AdminV2Client(os.environ["CIRCLE_ADMIN_V2_KEY"], timeout=30) as client:
return client.communities.get()
Use an async client inside your application's event loop and await its network
methods. Async constructors perform no authentication; Headless's async
create(...) factory authenticates when awaited.
import os
from circlepy import AsyncHeadlessClient
async def member_feed():
async with await AsyncHeadlessClient.create(
os.environ["CIRCLE_HEADLESS_AUTH_KEY"],
community_member_id=int(os.environ["CIRCLE_MEMBER_ID"]),
raise_on_error=True,
) as client:
return await client.home.list_home_posts(page=1, per_page=20)
Sync clients support with/close(); async clients support async with/
await aclose(). Closing releases local connections; it does not revoke tokens.
See authentication, persistence and lifecycle.
Guides and API reference
Start with the documentation index and complete resource map. The resource guides link methods, parameters, examples and upstream references for content, members, spaces/access, messaging, notifications, learning, events, HTTP live rooms, workflows, forms, moderation, billing and paywalls.
- Pagination: lazy record/page iterators, opaque cursors and bounded traversal.
- Uploads and rich text: signed storage uploads, Markdown/TipTap and raw payloads.
- Timeouts, retries and errors: zero automatic retries by default; mutations are single-attempt.
- Migration and compatibility: preserved legacy calls, strict errors and permission differences.
- Provider and validation limits: experimental routes, schema gaps and missing live coverage.
The frozen October 27, 2026 inventory has 354 documented operations with explicit sync/native async methods and independent offline contracts. This is a bounded inventory, not a claim to cover every future Circle endpoint. The retained Headless basic-post update route is experimental and excluded from that count.
Live validation: all nine representative sandbox workflows in both modes remain not run. Their omission was explicitly accepted for this release preparation. No actual Circle account permissions, live parity, storage outcomes or live cleanup were verified. Financial evidence is synthetic/offline. The sandbox gate is waived/not selected, never reported as passed. See the precise boundary.
Upstream references: developer index, Admin v1, Admin v2, Member API, Auth API.
Contribute and get help
Contributing explains offline tests, documentation builds, validation profiles and clean artifact checks. Support and security reporting describe where to report an issue and what redacted evidence to include.
CirclePy is MIT licensed; see LICENSE and attribution. CirclePy is an independent SDK and does not imply endorsement by Circle.
Metadata
Release files for circlepy 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| circlepy-1.0.0.tar.gz | 693.3 kB | With provenance | Details for circlepy-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| circlepy-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for circlepy-1.0.0-py3-none-any.whl |
Total release size: 818.9 kB
Release files / circlepy-1.0.0.tar.gz
| Download URL | circlepy-1.0.0.tar.gz |
|---|---|
| Size | 693.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e9733db22fba2547ca538e6803ec54c4ae2a05f404e2c90a2bc7bb74bc540b7
|
|
BLAKE2b-256 checksum How to use checksums |
25cb04ff5dfce4efe347ed8f9f0ab231d9534154e4a76b53ab95117e1a2ad4cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logRelease files / circlepy-1.0.0-py3-none-any.whl
| Download URL | circlepy-1.0.0-py3-none-any.whl |
|---|---|
| Size | 125.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d6c37def0ab4cc5e7279c0a37e841090d8476a1a39c18a28269b30205a7f58c
|
|
BLAKE2b-256 checksum How to use checksums |
63c20e460afd3fb785a47d86dc49c207c9f9642e6763b7ec701655f51faec429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logSecurity for circlepy 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for circlepy-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.