Skip to main content

apiconn

Operation-first REST and GraphQL API connections over requ. Python 3.14+, MIT.

pip install apiconn
from apiconn import API

with API.rest('https://api.example.com/v1', token='selected-token') as api:
    users = api.resource('users')
    user = users.get(123)
    users.update(123, name='Ash')

    api.operation('activate_user', method='POST', path='users/{id}/activate')
    result = api.call('activate_user', id=123, json={'active': True})
from apiconn import AsyncAPI

async def user_name():
    async with AsyncAPI.graphql('https://api.example.com/graphql') as api:
        data = await api.query('query { user { name } }')
        return data['user']['name']
  • Explicit discoverable operations, optional input/output validators and Connector protocols. REST resource CRUD is a convenience over operations.
  • Native GraphQL documents/variables, with partial data and errors preserved.
  • Selected bearer/basic/header credentials, confined endpoints and finite JSON.
  • Bounded page/cursor iteration with cycle detection and no automatic next-URL fetch.
  • Sync and async interfaces with explicit owned/borrowed transport lifecycle.

HTTP methods, TLS, pooling, headers, timeouts and request/response bytes belong to requ. Its async I/O runs in worker threads; canceling an await does not undo a request already sent. Mutations are never automatically retried. No OAuth, provider discovery, caching or persistence is installed implicitly.

See the API contract for examples, bounds and error semantics. Run the local service example without external credentials. expose_api serves APIs; apiconn consumes them. Other Wispsy packages are optional consumers, not core dependencies.

Development: uv sync, then uv run python -W error::ResourceWarning -m unittest discover -s tests -v. Verify exact archives and independent installations with uv run python scripts/check_distribution.py.

Metadata

Release files for apiconn 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apiconn 0.1.0
File Size Uploaded Provenance Actions
apiconn-0.1.0.tar.gz 21.3 kB With provenance Details for apiconn-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apiconn 0.1.0
File Interpreter ABI Platform Actions
apiconn-0.1.0-py3-none-any.whl Python 3 none any Details for apiconn-0.1.0-py3-none-any.whl

Total release size: 33.6 kB

Release files / apiconn-0.1.0.tar.gz

Download URL apiconn-0.1.0.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9d9c1471c73ff77914c60cded75bd100e8e7fbaa8296910dab3d9154d5f651b4
BLAKE2b-256 checksum
How to use checksums
9904e34336cf9d69522c1a6491aeb87162557a2bc57b09fcede7408729e16360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 8, 2026.

Transparency log

Release files / apiconn-0.1.0-py3-none-any.whl

Download URL apiconn-0.1.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69a4a2b4f9e78d57b3234cfd8199c0478cdeda083f7defaa23da32e81db10e0c
BLAKE2b-256 checksum
How to use checksums
73027909c8cddc438ff7cd02a9cc7ee53e3970738c7540632f647d731728227b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 8, 2026.

Transparency log

Security for apiconn 0.1.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.

Select from 2 files

Attestation for apiconn-0.1.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 Nov 8, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page