Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Zephyr Framework

PyPI version Python versions Downloads

A modern, high-performance Python web framework with advanced developer tools and enterprise-grade capabilities.

⚠️ Development Status: This framework is currently in active development. APIs may change between releases. Use in production at your own risk.

Architecture

graph TD
    A[Application] --> B[Core]
    A --> C[Security]
    A --> D[Database]
    B --> E[Router]
    B --> F[Middleware]
    B --> G[Events]
    C --> H[Auth]
    C --> I[RBAC]
    C --> J[Rate Limit]
    D --> K[ORM]
    D --> L[Migration]
    D --> M[Pool]
    style A fill:#f9f,stroke:#333,stroke-width:2px
    style B,C,D fill:#bbf,stroke:#333,stroke-width:2px
    style E,F,G,H,I,J,K,L,M fill:#dfd,stroke:#333,stroke-width:2px

Features

Core Framework

  • Modern API patterns (FastAPI-style decorators)
  • GraphQL & WebSocket support
  • Event-driven architecture
  • Advanced database patterns
  • Type-safe queries and validation

Security

  • JWT Authentication
  • Role-Based Access Control (RBAC)
  • Redis-based Rate Limiting
  • CSRF Protection
  • Security Headers

Database

  • Advanced ORM with type safety
  • Query builder with joins
  • Migration system
  • Connection pooling
  • Read/write splitting

Caching

  • Multi-level cache (Memory + Redis)
  • Cache tags and invalidation
  • Cache warming strategies
  • Distributed caching

Queue System

  • Distributed job queues
  • Job scheduling
  • Retry mechanisms
  • Dead letter queues
  • Queue monitoring

Developer Tools

  • Interactive debugger with breakpoints
  • Performance profiler
  • Code generation tools
  • Schema management
  • Migration tools

Observability

  • Distributed tracing
  • Metrics collection
  • Structured logging
  • Real-time monitoring
  • Health checks

CLI Tools

  • Development server
  • Database migrations
  • Code generation
  • Monitoring dashboard
  • Deployment management

Project Structure

zephyr/
├── zephyr/                # Main package
│   ├── core/             # Core components
│   │   ├── app.py       # Application class
│   │   ├── config.py    # Configuration
│   │   ├── context.py   # Request context
│   │   └── router.py    # URL routing
│   ├── security/        # Security components
│   │   ├── auth.py     # Authentication
│   │   ├── rbac.py     # Access control
│   │   └── rate_limit.py# Rate limiting
│   ├── db/             # Database components
│   │   ├── models.py   # ORM models
│   │   ├── query.py    # Query builder
│   │   └── pool.py     # Connection pool
│   ├── cache/          # Caching system
│   │   ├── memory.py   # Memory cache
│   │   └── redis.py    # Redis cache
│   ├── queue/          # Queue system
│   │   ├── memory.py   # Memory queue
│   │   └── redis.py    # Redis queue
│   ├── graphql/        # GraphQL support
│   ├── websockets/     # WebSocket support
│   └── tools/          # Developer tools
├── docs/               # Documentation
├── examples/           # Example code
└── deployment/         # Deployment configs

Installation

uv is an extremely fast Python package and project manager written in Rust. It's 10-100x faster than pip and provides a unified toolchain.

Install uv:

# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

# Or via pip/pipx
pip install uv

Install Zephyr:

# Create virtual environment and install
uv venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
uv pip install zephyr-py

# With performance optimizations
uv pip install zephyr-py[performance]

# With all dev tools
uv pip install zephyr-py[dev]

Using pip

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install package
pip install zephyr-py

# With optional dependencies
pip install zephyr-py[performance]  # Performance optimizations
pip install zephyr-py[dev]          # Development tools

Requirements

  • Python 3.11 or higher
  • Modern async/await support

Quick Start

from zephyr import Application
from zephyr.core import Router
from zephyr.security import JWT, RateLimiter
from zephyr.cache import RedisCache
from zephyr.db import Database

# Create application
app = Application("myapp")

# Configure components
app.use_jwt(JWT(secret_key="your-secret"))
app.use_rate_limit(RateLimiter(requests=100, window=60))
app.use_cache(RedisCache(url="redis://localhost"))
app.use_database(Database(url="postgresql://localhost/myapp"))

# Define routes
router = Router()

@router.get("/")
async def hello():
    return {"message": "Hello from Zephyr!"}

@router.post("/items")
@jwt_required
async def create_item(item: Item):
    return await item.save()

app.add_router(router)

# Run the application
if __name__ == "__main__":
    app.run(host="0.0.0.0", port=8000)

Visualizing Diagrams

The documentation includes Mermaid diagrams which can be viewed in several ways:

  1. VS Code:

    • Install the "Markdown Preview Mermaid Support" extension
    • Open markdown file and press Ctrl+Shift+V to preview
  2. Mermaid Live Editor:

  3. Documentation Site:

    • Run mkdocs serve in the project directory
    • Open http://localhost:8000

Documentation

Contributing

This framework developed by BBDevs.

License

Business Source License (BSL) 1.1

This software is licensed under the Business Source License 1.1. You may use this software for development and testing purposes. Commercial use requires a separate commercial license from BBDevs.

Key restrictions:

  • ✅ Allowed: Development, testing, evaluation, non-commercial use
  • ❌ Restricted: Commercial production use without license
  • ❌ Restricted: Creating competing frameworks or services
  • ❌ Restricted: Redistribution of source code

For commercial licensing, contact: licensing@bbdevs.com

See LICENSE for full terms.

Changelog

See CHANGELOG.md for version history and release notes.

Metadata

Release files for zephyr-py 0.1.0.dev3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zephyr-py 0.1.0.dev3
File Size Uploaded Provenance Actions
zephyr_py-0.1.0.dev3.tar.gz 2.6 MB Without provenance Details for zephyr_py-0.1.0.dev3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zephyr-py 0.1.0.dev3
File Interpreter ABI Platform Actions
zephyr_py-0.1.0.dev3-py3-none-any.whl Python 3 none any Details for zephyr_py-0.1.0.dev3-py3-none-any.whl

Total release size: 2.9 MB

Release files / zephyr_py-0.1.0.dev3.tar.gz

Download URL zephyr_py-0.1.0.dev3.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
6ecd7c37ced3e9cf8f625282b6aeb6cc891461087200ac2d91b098374c66778e
BLAKE2b-256 checksum
How to use checksums
2396ec4dc13a2fed7a8183511462a8ae3f2655418cf972267a199c3c17dafabb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / zephyr_py-0.1.0.dev3-py3-none-any.whl

Download URL zephyr_py-0.1.0.dev3-py3-none-any.whl
Size 302.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7abb983994e6622844700fc9fcb9f19fd35b227ac6bfe2ff315db8e8e64b078
BLAKE2b-256 checksum
How to use checksums
87110acc8004d0e42860fec1394d4c825e2728cd2f5c4a669b97d608e3793d9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for zephyr-py 0.1.0.dev3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page