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.8.0.tar.gz (32.9 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.8.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nospoon_integrations-0.8.0.tar.gz
Algorithm Hash digest
SHA256 4c1ffa38654b89fa5ad4768511f8381a3b8e6bbf7d814f7c1c10fa5cc6e81bd3
MD5 2651637a60c67a7f3fa8713d955d6942
BLAKE2b-256 c931cbcb849a6d8906e32130019ed08bb8af2f5686f4fa9d24f2c057fe46ca19

See more details on using hashes here.

Provenance

The following attestation bundles were made for nospoon_integrations-0.8.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.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nospoon_integrations-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97e16c624b75a1acad2cd296ccfbf68aeddcd90931ed69d399558698892cd924
MD5 b5c802b8a76476ac64e92065d46fbe7f
BLAKE2b-256 02b8a1272ce64e7c3f90bae4f96880d078902cb202b9f606a5d63cd3bdec9d46

See more details on using hashes here.

Provenance

The following attestation bundles were made for nospoon_integrations-0.8.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