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.1.0.tar.gz (25.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.1.0-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apexsaas-1.1.0.tar.gz
  • Upload date:
  • Size: 25.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.1.0.tar.gz
Algorithm Hash digest
SHA256 45faf2673fc955bb37953a2489f3a456baf564f7f9ff18fd0668d2b4f3702785
MD5 4a0faf8f98964ff2a6de3d0b7b5205ce
BLAKE2b-256 cc355877377d41db4ca84a222a7bf09a2828f9154630ffee47ce1579c2165ad2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apexsaas-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 43.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 720d5d70db068a20f89694dc542782f49442c6155dce4051550471f30deae753
MD5 0b17e026a472ebacd5abaeadec074ff6
BLAKE2b-256 5e5fe56e1bbd720927c14220933690b8f42fbe4474e74f47e0c6f3dee0956605

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