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

Uploaded Python 3

File details

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

File metadata

  • Download URL: apexsaas-1.2.2.tar.gz
  • Upload date:
  • Size: 26.8 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.2.tar.gz
Algorithm Hash digest
SHA256 167ca14cc2ee2b621d0f07841b0b3096d40090ae455bdfd89471b704508f62fa
MD5 ced10ca3c0a7a6831ae893178b46cf8a
BLAKE2b-256 ca39fde36592bcd80e53e6567a9acafd6ca00c2616cc65dd617658c1ab81256d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apexsaas-1.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a32bb1fd638345c28ed25fbd37c4658c31e6a38425eca0c05bc588f3a3158f0d
MD5 84ab3aa2c9c7e66b682a64c20e67b192
BLAKE2b-256 fbd145c4fca56315840fce8f50cdf96e2286767057282d239542c81657cbd450

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