# dj-stripe/dj-stripe

dj-stripe automatically syncs your Stripe Data to your local database as pre-implemented Django Models allowing you to use the Django ORM, in your code, to work with the data making it easier and faster.

Repository: https://github.com/dj-stripe/dj-stripe
Canonical: https://ross.abutalabs.com/products/dj-stripe
Homepage: https://dj-stripe.dev
Language: Python
License: MIT
License Family: permissive
Topics: python, django, stripe, payments, subscriptions, billing, finance, fintech
Last push: 2026-08-23T22:42:57+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 58, longevity 100
- inputs: {"age_days": 4776, "days_push": 10, "days_rel": 68, "gap_med": 264.0, "n_releases_24m": 3}
- flags: no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1791, forks 516 (observed 2026-08-28T04:05:37.088043+00:00)

## What it is
dj-stripe is a Django application that syncs Stripe data into your local database as pre-implemented Django models, letting you query payments, subscriptions, and invoices via the Django ORM. It also provides built-in webhook handling with signature verification, idempotency, retries, and Django signals.

## Use cases
- sync stripe data to django database
- handle stripe webhooks in django
- query stripe subscriptions with django orm
- build a saas billing app with django and stripe
- manage multiple stripe accounts in one django project
- track subscription states and history locally
- access payment data offline for reporting

## When to choose
- you use Django and want Stripe data as local models with real foreign keys
- you need reliable webhook processing with signature verification and retries
- you want to join Stripe data with your own application data in queries
- you need offline access to payment data for reporting or testing

## When to avoid
- you don't use Django or the Django ORM
- you prefer calling the Stripe API directly without local data replication
- you need a framework-agnostic Stripe integration
- you can't host a webhook endpoint reachable by Stripe

## Facets
- artifact type: library
- maturity: active
- function: orm, webhook, sdk, database, middleware
- domain: fintech, web-development, backend, e-commerce, apis
- platform: python, self-hosted
- tags: django, stripe, payments, subscriptions, billing, webhook-handling, saas, web-server

## Member repositories
- dj-stripe/dj-stripe (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:37.088043+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:23:04.852886+00:00, confidence not recorded.
  - homepage: https://dj-stripe.dev (fetched 2026-08-29T11:02:06.708956+00:00, sha 6bae86f3eb7b)
  - site_page: https://dj-stripe.dev/about (fetched 2026-08-29T11:02:06.711573+00:00, sha 086a2f4a3918)
  - site_page: https://dj-stripe.dev/docs/dev (fetched 2026-08-29T11:02:06.713510+00:00, sha d5d4280ef370)
  - site_page: https://dj-stripe.dev/docs/latest (fetched 2026-08-29T11:02:06.717115+00:00, sha 538ffbd30d70)
  - site_page: https://dj-stripe.dev/docs/latest/installation (fetched 2026-08-29T11:02:06.718750+00:00, sha 57ef6e88da22)
  - registry_pypi: https://pypi.org/pypi/dj-stripe/json (fetched 2026-08-29T11:02:06.720253+00:00, sha ae97cfa0ae43)
  - site_page: https://dj-stripe.dev/changes (fetched 2026-08-29T11:02:06.715272+00:00, sha c73d9f52c13f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
