NoSpoon Integrations - Python SDK
Cross-platform OAuth integrations SDK for NoSpoon applications.
Installation
pip install nospoon-integrations
# With Supabase support
pip install nospoon-integrations[supabase]
Quick Start
The IntegrationClient constructor takes storage plus one keyword argument per
provider you want to enable (each with its provider-specific config).
import os
from nospoon_integrations import IntegrationClient, ProviderConfig
from nospoon_integrations.storage import SupabaseTokenStorage
# Initialize storage
storage = SupabaseTokenStorage(
supabase_url=os.environ["SUPABASE_URL"],
supabase_key=os.environ["SUPABASE_SERVICE_ROLE_KEY"],
)
# Initialize client with the providers you need (flat keyword arguments)
integrations = IntegrationClient(
storage=storage,
google=ProviderConfig(
client_id=os.environ["GOOGLE_CLIENT_ID"],
client_secret=os.environ["GOOGLE_CLIENT_SECRET"],
scopes=["https://www.googleapis.com/auth/gmail.compose"],
),
hubspot=ProviderConfig(
client_id=os.environ["HUBSPOT_CLIENT_ID"],
client_secret=os.environ["HUBSPOT_CLIENT_SECRET"],
),
)
# OAuth providers: redirect the user, then handle the callback
auth_url = integrations.google.get_auth_url("https://myapp.com/callback")
status = await integrations.google.get_connection_status(user_id)
Credential providers (WordPress, Sanity)
WordPress and Sanity authenticate with a user-supplied credential rather than
OAuth. Enable them with their config, then call connect() with the credential —
it is verified live and only stored on success.
from nospoon_integrations import IntegrationClient
from nospoon_integrations.providers import SanityConfig, SanityConnectInput
from nospoon_integrations.storage import MemoryTokenStorage
integrations = IntegrationClient(storage=MemoryTokenStorage(), sanity=SanityConfig())
# Verify + store the connection (raises CredentialVerificationError if invalid)
await integrations.sanity.connect(
user_id,
SanityConnectInput(project_id="abc123", dataset="production", token=os.environ["SANITY_TOKEN"]),
)
# Post a blog entry as a draft (HTML body is converted to Portable Text)
result = await integrations.sanity.create_post(
user_id, title="Hello", body="<p>First post</p>", publish=True
)
Providers
- Google — Gmail API, OAuth
- HubSpot — CRM contacts, OAuth
- Facebook — Graph API, Pages
- LinkedIn — Posts, OAuth
- X (Twitter) — Tweets, OAuth 2.0 + PKCE
- WordPress — self-hosted REST API, credential-based (Application Passwords)
- Sanity — Actions/Assets/Query APIs, credential-based (robot token); includes a dependency-free
html_to_portable_text()converter
Documentation
See the main documentation for full usage details.
License
MIT
Metadata
Release files for nospoon-integrations 0.15.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 |
|---|---|---|---|---|
| nospoon_integrations-0.15.0.tar.gz | 58.6 kB | With provenance | Details for nospoon_integrations-0.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nospoon_integrations-0.15.0-py3-none-any.whl | Python 3 | none | any | Details for nospoon_integrations-0.15.0-py3-none-any.whl |
Total release size: 106.4 kB
Release files / nospoon_integrations-0.15.0.tar.gz
| Download URL | nospoon_integrations-0.15.0.tar.gz |
|---|---|
| Size | 58.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe5ea2d4daf652e73b88f0692bb55f0a3904b0b4f7cbf193a296844b3374c1ce
|
|
BLAKE2b-256 checksum How to use checksums |
5a26879dcd90b4fc67e09b2feaff8e6c858773ef96437f6481333a9bcbd36ab1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 5, 2026.
Transparency logRelease files / nospoon_integrations-0.15.0-py3-none-any.whl
| Download URL | nospoon_integrations-0.15.0-py3-none-any.whl |
|---|---|
| Size | 47.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6b7e9a2fe6d02643eb660feb41d3b6f6e2474fb5572aa2540ac8de56b4360bf
|
|
BLAKE2b-256 checksum How to use checksums |
d823d35f080d14d510f07e7f0e7145f941d22849491eb113c63228dc5b443a5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 5, 2026.
Transparency logSecurity for nospoon-integrations 0.15.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 nospoon_integrations-0.15.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 Jul 5, 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.