Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nospoon_integrations-0.2.0.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nospoon_integrations-0.2.0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file nospoon_integrations-0.2.0.tar.gz.

File metadata

  • Download URL: nospoon_integrations-0.2.0.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nospoon_integrations-0.2.0.tar.gz
Algorithm Hash digest
SHA256 714a2550d5b987869b59be70e31b3fe9ee21f7d67d0272ff2e22409928cbccf0
MD5 cd865e31ca8ffbeb6e1071c3164d5955
BLAKE2b-256 588f1a9cd687f4477c7738a01983e1aab8c2249d18ff25ca395ac933136d37e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for nospoon_integrations-0.2.0.tar.gz:

Publisher: publish-pypi.yml on nospoonai/nospoon-integrations

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nospoon_integrations-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nospoon_integrations-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90e8267e265b3912b55e9cdc15beeb89a91c3e2272436c13196ba1fe381511aa
MD5 bdf89f33af466541cf14916d495b5905
BLAKE2b-256 58451fe2a03902c295547baa19d78b2266226bd286d2b2702ce9017f37ea30c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for nospoon_integrations-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on nospoonai/nospoon-integrations

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page