Skip to main content

ApexSaaS - Complete authentication, payments, and email solution for Python. Database-agnostic, framework-agnostic, and production-ready. Features include user signup/login, password reset, JWT tokens, PayPal payments, subscriptions, and SendGrid email integration.

Project description

ApexSaaS

Complete authentication, payments, and email solution for Python. Database-agnostic, framework-agnostic, and production-ready.

Features

  • 🔐 Authentication: User signup, login, password reset, JWT tokens
  • 💳 Payments: PayPal integration for orders and subscriptions
  • 📧 Email: SendGrid integration for transactional emails
  • 🚀 Database-agnostic: Works with any database or storage
  • Framework-agnostic: Use with FastAPI, Flask, Django, or any Python app
  • 🎯 Production-ready: Battle-tested and ready for production use

Quick Start

Installation

pip install apexsaas

Example: User Signup

from apexsaas.auth import signup

result = signup(
    email="user@example.com",
    password="SecurePass123!",
    name="John Doe",
    sendgrid_api_key="SG.your_sendgrid_api_key",
    from_email="noreply@yourdomain.com",
    jwt_secret="your-secret-key"
)

# Store in your database
user_data = result['user']
access_token = result['access_token']
refresh_token = result['refresh_token']

Example: Create Payment Order

from apexsaas.payments import create_order

order = create_order(
    amount="99.99",
    currency="USD",
    client_id="your_paypal_client_id",
    client_secret="your_paypal_client_secret",
    return_url="https://yourdomain.com/success",
    cancel_url="https://yourdomain.com/cancel",
    sandbox=True
)

# Redirect user to PayPal
redirect(order['approval_url'])

Example: Send Custom Email

from apexsaas.email import send_email

result = send_email(
    to_email="user@example.com",
    to_name="John Doe",  # Optional
    subject="Welcome!",
    html_content="<h1>Your custom HTML email</h1>",
    sendgrid_api_key="SG.your_key",
    from_email="noreply@yourdomain.com"
)

Documentation

  • User Guide: Complete documentation with examples
  • Quick Start: Get started in 5 minutes

Requirements

  • Python 3.8+
  • SendGrid API key (for emails)
  • PayPal Client ID & Secret (for payments)
  • JWT Secret (for authentication)

License

MIT License

Support


Version: 1.0.2

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

apexsaas-1.2.0.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

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

apexsaas-1.2.0-py3-none-any.whl (45.5 kB view details)

Uploaded Python 3

File details

Details for the file apexsaas-1.2.0.tar.gz.

File metadata

  • Download URL: apexsaas-1.2.0.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for apexsaas-1.2.0.tar.gz
Algorithm Hash digest
SHA256 9421065744fc06af9723e55236552f430925737ec7aa72fb9eb1192b16a58370
MD5 07a0ace72afe9e6370c7a8eb4efad9b5
BLAKE2b-256 a6f6440db67cbec4b7c53a155f87a33505113666a6c40353a5d5714aff52c19d

See more details on using hashes here.

File details

Details for the file apexsaas-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: apexsaas-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 45.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for apexsaas-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 770b73dbc74048fe0779c52de91d0600dd7d5d1e2ca9acbb77dbf44ad5077b8d
MD5 d004b9a495204a7b5363b160f92999e4
BLAKE2b-256 776d25031117afc606dfa9611576948cd692eaeec7abd3c78517d1fa95a48d96

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