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",
    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.0.3.tar.gz (23.9 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.0.3-py3-none-any.whl (41.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for apexsaas-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6a0c681464c28c1df261902315ccbb11b04cd36d63ad50d363fd64126d5d0c37
MD5 b6b1e71caf34b3e9b55fd33f5a9b5710
BLAKE2b-256 1c0723297d182f02bf6490f77ea7810ba01467bf3a4154d18f630a0c37ff9f3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apexsaas-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 41.6 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.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b4c75531b8e1db0f718873dd2135970512b1f539dfcd9b035d712906909f9c1f
MD5 2c8a0a40d95e52d660b01c003bd01169
BLAKE2b-256 6a3850e9dbef3ee6cba0ed9563c0fc66e0123524f382b9335a43a9ebdb287330

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