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.12.tar.gz (83.7 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.12-py3-none-any.whl (129.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apex_saas_framework-0.1.12.tar.gz
  • Upload date:
  • Size: 83.7 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.12.tar.gz
Algorithm Hash digest
SHA256 86220d0bdbd0229771c668f679bb3e0f84b999df8fc7c99d4a682efe03ad0c90
MD5 f2d18e0929df635e2dc5c4910c199b57
BLAKE2b-256 0db546056e62cbb718a349c116ff833f1d774704103b69915a3a4fce89b39f0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apex_saas_framework-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ebddd8283f1766e5064e440a1998804ce4e29c3a52d39d5adf84d8f48d5fc085
MD5 312dcddd21a7b3f181349fc75bb70133
BLAKE2b-256 a000858f6d65375fea0f3afa70c46f1e4ac8355dfa0e240346e14e0e402b2093

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