Skip to main content

Framework Agnostic Referral Program Package with Stripe Connect Integration

PyPI Version Python Versions License

CertGames.com | ©AngelaMos | 2025


Overview

stripe-referral is a production-ready, framework-agnostic Python package for building referral programs with automated payout processing.

Features

  • Framework Agnostic: Works with Flask, FastAPI, Django, or standalone

  • Multiple Payout Methods: Stripe Connect, Wise API, Manual bank transfers

  • Type Safe: Full TypedDict returns and modern type hints

  • Database Agnostic: SQLAlchemy-based (PostgreSQL, MySQL, SQLite)

  • Production Ready: Alembic migrations, error handling, validation

  • Clean Architecture: Repository pattern, service layer, adapter pattern


Quick Start

Installation

pip install stripe-referral

Basic Usage

from stripe_referral import ReferralService, get_db

# Generate referral code
with get_db() as db:
    result = ReferralService.create_code(
        db=db,
        user_id="user_123",
        program_key="certgames"
    )
    print(f"Your code: {result['code']}")

# Track referral conversion
with get_db() as db:
    tracking = ReferralService.track_referral(
        db=db,
        code="REF_ABC123",
        referred_user_id="user_456"
    )
    print(f"Earned: ${tracking['amount_earned']}")

Documentation

Coming soon…


Contributing

See CONTRIBUTING.rst for development setup and guidelines.


License

MIT License - see LICENSE for details.


Security

See SECURITY.rst for our security policy and how to report vulnerabilities.

Metadata

Release files for stripe-referral 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stripe-referral 0.1.1
File Size Uploaded Provenance
stripe_referral-0.1.1.tar.gz 26.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for stripe-referral 0.1.1
File Interpreter ABI Platform
stripe_referral-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 63.3 kB

Release files / stripe_referral-0.1.1.tar.gz

Download URL stripe_referral-0.1.1.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
985a58f4b9d228df69d6e7b5c9e20cdf0bd78e68cebc9dcf264d8193d71f2a69
BLAKE2b-256 checksum
How to use checksums
15b3d01882498d3950dae67592ec1b130d0883f6595d0e57ec3be70187283af4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2025.

Transparency log

Release files / stripe_referral-0.1.1-py3-none-any.whl

Download URL stripe_referral-0.1.1-py3-none-any.whl
Size 37.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7be060e32a334463ac4e4d0e40710a334031bba88081c2117923cf2a34f13562
BLAKE2b-256 checksum
How to use checksums
2b37688a40ba3bb1e04cd78acc58bcbba5ac9da94b290adf5acd9e68748ff8f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2025.

Transparency log

Security for stripe-referral 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stripe_referral-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page