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.22.tar.gz (84.0 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.22-py3-none-any.whl (129.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apex_saas_framework-0.3.22.tar.gz
  • Upload date:
  • Size: 84.0 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.22.tar.gz
Algorithm Hash digest
SHA256 a27695f9b058b7d4783b454e6cfe088271cd82ce33c1362e467a205e35b72408
MD5 76ae13ad57e311aa1c8498547a8f3713
BLAKE2b-256 fb182be17f7a971b2fe9fb95998e018c5c87dad17a7f62d0209501bfe801e558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apex_saas_framework-0.3.22-py3-none-any.whl
Algorithm Hash digest
SHA256 27561c5895b34f5a261fc36cfcb463b095089f50cf4a513c758d0167f6f14212
MD5 d767e3a9b266b7bb34503ff8f70b39db
BLAKE2b-256 558b5e5bb97c503d81d5872246a15cbfa4f7081f4aa3c15f0a1871c4d0896658

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