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.23.tar.gz (94.9 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.23-py3-none-any.whl (144.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apex_saas_framework-0.3.23.tar.gz
  • Upload date:
  • Size: 94.9 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.23.tar.gz
Algorithm Hash digest
SHA256 1ec8021c40f5a8f35d5f2189fb4004fd0e43616ee7be36d5e40bd2fa1870ae9b
MD5 2f622e51fcf0e9c46dd4c55b35d3a3d1
BLAKE2b-256 46c7509da571fbd09274c427e4f0decc97b54207cb7dbcada8981e4214c8dfe3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apex_saas_framework-0.3.23-py3-none-any.whl
Algorithm Hash digest
SHA256 1aaeb1afe331765b9d942cd0384e3238963da34ac97a72d0018f291593167b4a
MD5 346e257c286462d184289491ace892c3
BLAKE2b-256 6e77ed9564735b06f2acd5ee384c54732ee75ac4bb280fea90266116e16eda84

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