Skip to main content

A pure Python SDK for multi-tenant SaaS (users, auth, RBAC, payments, email, files), database-agnostic and framework-agnostic.

Project description

Apex SaaS Framework

A pure Python SDK for multi-tenant SaaS applications. Database-agnostic and framework-agnostic.

Features

  • Authentication: Signup, login, JWT tokens, password reset
  • Users: User management with flexible models
  • Organizations: Multi-tenant organization support
  • RBAC: Roles and permissions system
  • Payments: PayPal integration
  • Email: SendGrid integration
  • Files: File upload and management
  • Settings: Application settings management

Quick Start

from apex import Client, set_default_client, bootstrap
from apex.auth import signup, login
from apex.core.base import Base, UUIDPKMixin, TimestampMixin
from sqlalchemy import Column, String

# Define your models
class User(Base, UUIDPKMixin, TimestampMixin):
    __tablename__ = "users"
    email = Column(String(255), unique=True)
    password_hash = Column(String(255))

# Initialize client
client = Client(database_url="sqlite+aiosqlite:///./mydb.db", user_model=User)
set_default_client(client)

# Bootstrap database
bootstrap(models=[User])

# Use functions directly
user = signup(email="user@example.com", password="pass123")
tokens = login(email="user@example.com", password="pass123")

Installation

pip install apex-saas-framework

Documentation

For detailed documentation, visit: https://github.com/apexneural/apex-saas-framework

License

MIT License

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

apex_saas_framework-0.3.24.tar.gz (96.1 kB view details)

Uploaded Source

Built Distribution

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

apex_saas_framework-0.3.24-py3-none-any.whl (145.9 kB view details)

Uploaded Python 3

File details

Details for the file apex_saas_framework-0.3.24.tar.gz.

File metadata

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

File hashes

Hashes for apex_saas_framework-0.3.24.tar.gz
Algorithm Hash digest
SHA256 3306993207de7fa1428f3692095a5c61255666e89656f64e60325dac09dc0b60
MD5 47318aa6c2313484b09834f800e92e4d
BLAKE2b-256 6234ba5c09b35e6ed6f2df2d80f532d5a017c4edbb067d648ed49767a8b05df8

See more details on using hashes here.

File details

Details for the file apex_saas_framework-0.3.24-py3-none-any.whl.

File metadata

File hashes

Hashes for apex_saas_framework-0.3.24-py3-none-any.whl
Algorithm Hash digest
SHA256 3ffe725f67b43aa66d9986aac1c4819846c709e0c88c77742cc6212ceafc35f4
MD5 cadafc5e20e3cfda8f09b7d95c8fbdcb
BLAKE2b-256 8081a0f78f5674590f504098230b3282ae19b5f45e01d9a1bb69da17a9f3c673

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