Skip to main content

Python SDK for the GrowPanel subscription analytics REST API

Project description

growpanel (Python)

Official Python SDK for the GrowPanel subscription analytics REST API.

pip install growpanel
from growpanel import GrowPanel

gp = GrowPanel(api_key="gp_...")

summary = gp.reports.get_summary()
print(summary.summary.mrr_current)

mrr = gp.reports.get_mrr(date="20260101-20260531", interval="month")
for period in mrr.result:
    print(period.date, period.total_mrr)

Auth

Issue a key in app.growpanel.io → Account → API keys. Pass it as api_key= when constructing the client; it's sent as Authorization: Bearer <key> on every request.

Surfaces

The SDK groups operations by API area, mirroring the interactive docs:

  • gp.reports.* — MRR, leads, cohorts, cashflow, retention, churn
  • gp.customers.* — list + detail (analytics view)
  • gp.plans.* — list plans
  • gp.plan_groups.*, gp.segments.*, gp.data_sources.*, gp.data_customers.*, gp.data_invoices.*, gp.data_plans.* — data management with full CRUD
  • gp.profile.*, gp.notifications.*, gp.webhooks.* — account & integrations

For anything not exposed as a named method, gp.raw is the generated module tree — every endpoint in the OpenAPI spec is reachable from there.

Generating from the live spec

pip install -e ".[dev]"
openapi-python-client generate \
    --url https://api-dev.growpanel.io/openapi.json \
    --config openapi-python-client.config.yaml \
    --overwrite

Output lands in src/growpanel/_generated/. In CI, this runs automatically on every API change.

Errors

from growpanel import GrowPanel, GrowPanelError

gp = GrowPanel(api_key="...")
try:
    gp.customers.detail(id="cus_doesnotexist")
except GrowPanelError as err:
    if err.status == 404:
        ...  # handle not-found
    raise

Interactive docs

The full reference (with try-it-out) lives at api.growpanel.io/docs.

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

growpanel-0.1.2.tar.gz (111.3 kB view details)

Uploaded Source

Built Distribution

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

growpanel-0.1.2-py3-none-any.whl (526.1 kB view details)

Uploaded Python 3

File details

Details for the file growpanel-0.1.2.tar.gz.

File metadata

  • Download URL: growpanel-0.1.2.tar.gz
  • Upload date:
  • Size: 111.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for growpanel-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b4e4a661a8653c13369590a6ea345a773078d4e864ad97a1d51a54ad06035dc3
MD5 1b93972669e9ae93f48f155e87f60810
BLAKE2b-256 19d7b316806694bf9b0861d22c7e641c22d03d72a96b5640f93de234237921e6

See more details on using hashes here.

File details

Details for the file growpanel-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: growpanel-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 526.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for growpanel-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d7550fe781e34db7277c1ff36dc1c4f1f630f4ba1669f92af70e97e5e49e5dc
MD5 7915e5b5214385b31b31adbe717e4972
BLAKE2b-256 4687344034d59ddddae257313b96d829a101a02df9f6863afcba92869e8a24ce

See more details on using hashes here.

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