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.1.tar.gz (26.7 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.1-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apexsaas-1.2.1.tar.gz
  • Upload date:
  • Size: 26.7 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.1.tar.gz
Algorithm Hash digest
SHA256 f6885adfd5affa36ef25421276e3010986b3c3a09adcd88e2dd5552b5462972a
MD5 87c956bef7c3e2eba6cd99a5c1a9b13d
BLAKE2b-256 d9f5ae149064349c0e9ba8558a68157512ae2a1bc0bf17eb2780f64864d48f31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apexsaas-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 47.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 033b4256ffff93b5e73e9a933ce675cc5ed4d4778fd6a26182c9a071a4a5d28c
MD5 9ad9b48f6299d3b8e53c85ec1bc8f2f7
BLAKE2b-256 ad842e87faf0182e7262b3ab5b2ee2e1c6de8c540d4713bd5a72f9b6acd7bcae

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