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.1.13.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.1.13-py3-none-any.whl (129.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apex_saas_framework-0.1.13.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.1.13.tar.gz
Algorithm Hash digest
SHA256 df59b83b92c2fa09fde676684c700506f440fad143cdd6971f01aba3d5e06e1a
MD5 cb7b3ab83266bf2af67472c9df85cb47
BLAKE2b-256 f37c1547c085f2b3de00562fd7d4de15e2b595406c5f249d7657b04acdf8647b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apex_saas_framework-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 35234e9915eeabf54b3296db6603cac525fff39dad9db21cab497bdbf88553f2
MD5 e03226940e8027a540780336858f4136
BLAKE2b-256 c324ccaab9c886beaa0c3e69f92f80dbc5701b14c9dec7cb498c7b776c4a84a9

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