Cross-platform OAuth integrations SDK for NoSpoon applications
Project description
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
import os
from nospoon_integrations import IntegrationClient, IntegrationClientConfig, 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 providers
integrations = IntegrationClient(IntegrationClientConfig(
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"],
),
))
# Use providers
auth_url = integrations.google.get_auth_url("https://myapp.com/callback")
status = await integrations.google.get_connection_status(user_id)
Providers
- Google - Gmail API, OAuth
- HubSpot - CRM contacts, OAuth
- Facebook - Graph API, Pages
- LinkedIn - Posts, OAuth
Documentation
See the main documentation for full usage details.
License
MIT
Project details
Release history Release notifications | RSS feed
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 nospoon_integrations-0.2.1.tar.gz.
File metadata
- Download URL: nospoon_integrations-0.2.1.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2acf695858486e994699caf866973dd2a2d9252ed5c7840ffe19333a0960794
|
|
| MD5 |
e67b51bb58cb6c8233fd4a8d6161321f
|
|
| BLAKE2b-256 |
666dc1e42d212bdd4e9c606861a10e33dacb2bdfb368a8fb190b44020e6483bd
|
Provenance
The following attestation bundles were made for nospoon_integrations-0.2.1.tar.gz:
Publisher:
publish-pypi.yml on nospoonai/nospoon-integrations
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nospoon_integrations-0.2.1.tar.gz -
Subject digest:
d2acf695858486e994699caf866973dd2a2d9252ed5c7840ffe19333a0960794 - Sigstore transparency entry: 832850408
- Sigstore integration time:
-
Permalink:
nospoonai/nospoon-integrations@d2d652afd268e0f75b54b0896a2658f865c3a32c -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/nospoonai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d2d652afd268e0f75b54b0896a2658f865c3a32c -
Trigger Event:
release
-
Statement type:
File details
Details for the file nospoon_integrations-0.2.1-py3-none-any.whl.
File metadata
- Download URL: nospoon_integrations-0.2.1-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7388684da688d8db5ab48e9ddd88dc8cf07c77406c9caf8917912160e0ce8889
|
|
| MD5 |
e25bd7d71f7ff3bdb298d07b33ca5b91
|
|
| BLAKE2b-256 |
771af971536a5f67f24771c80a9ad67076fbaaa5ad17002ddc601e8dc16d3a71
|
Provenance
The following attestation bundles were made for nospoon_integrations-0.2.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on nospoonai/nospoon-integrations
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nospoon_integrations-0.2.1-py3-none-any.whl -
Subject digest:
7388684da688d8db5ab48e9ddd88dc8cf07c77406c9caf8917912160e0ce8889 - Sigstore transparency entry: 832850412
- Sigstore integration time:
-
Permalink:
nospoonai/nospoon-integrations@d2d652afd268e0f75b54b0896a2658f865c3a32c -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/nospoonai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d2d652afd268e0f75b54b0896a2658f865c3a32c -
Trigger Event:
release
-
Statement type: