ellar 0.8.9
pip install ellar
Released:
Ellar - Python ASGI web framework for building fast, efficient, and scalable RESTful APIs and server-side applications.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Ezeudoh Tochukwu
- Requires: Python >=3.9
-
Provides-Extra:
all
Classifiers
- Environment
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
- Typing
Project description
Ellar - Modern Python ASGI Framework
Overview
Ellar is a modern, fast, and lightweight ASGI framework for building scalable web applications and APIs with Python. Built on top of Starlette and inspired by the best practices of frameworks like NestJS, Ellar combines the power of async Python with elegant architecture patterns.
✨ Key Features
- 🚀 High Performance: Built on ASGI standards for maximum performance and scalability
- 💉 Dependency Injection: Built-in DI system for clean and maintainable code architecture
- 🔍 Type Safety: First-class support for Python type hints and Pydantic validation
- 📚 OpenAPI Integration: Automatic Swagger/ReDoc documentation generation
- 🏗️ Modular Architecture: Organize code into reusable modules inspired by NestJS
- 🔐 Built-in Security: Comprehensive authentication and authorization system
- 🎨 Template Support: Integrated Jinja2 templating for server-side rendering
- 🔌 WebSocket Support: Real-time bidirectional communication capabilities
- 🧪 Testing Utilities: Comprehensive testing tools for unit and integration tests
🚀 Quick Start
Installation
pip install ellar
Basic Example
from ellar.common import get, Controller, ControllerBase
from ellar.app import AppFactory
import uvicorn
@Controller()
class HomeController(ControllerBase):
@get('/')
async def index(self):
return {'message': 'Welcome to Ellar Framework!'}
app = AppFactory.create_app(controllers=[HomeController])
if __name__ == "__main__":
uvicorn.run("main:app", port=5000, reload=True)
📚 Complete Example
from ellar.common import Body, Controller, ControllerBase, delete, get, post, put, Serializer
from ellar.di import injectable, request_scope
from ellar.app import AppFactory
from pydantic import Field
# Define Data Model
class CreateCarSerializer(Serializer):
name: str
year: int = Field(..., gt=0)
model: str
# Define Service
@injectable(scope=request_scope)
class CarService:
def __init__(self):
self.detail = 'car service'
# Define Controller
@Controller
class CarController(ControllerBase):
def __init__(self, service: CarService):
self._service = service
@post()
async def create(self, payload: Body[CreateCarSerializer]):
result = payload.dict()
result.update(message='Car created successfully')
return result
@get('/{car_id:str}')
async def get_one(self, car_id: str):
return f"Retrieved car #{car_id}"
app = AppFactory.create_app(
controllers=[CarController],
providers=[CarService]
)
🔧 Requirements
- Python >= 3.8
- Starlette >= 0.27.0
- Pydantic >= 2.0
- Injector >= 0.19.0
📖 Documentation
- Complete documentation: https://python-ellar.github.io/ellar/
- API Reference: https://python-ellar.github.io/ellar/references/
🤝 Contributing
We welcome contributions! Here's how you can help:
- Create an issue for bugs or feature requests
- Submit pull requests for improvements
- Create third-party modules
- Share your experience with Ellar
- Build and showcase your applications
See CONTRIBUTING.md for detailed guidelines.
📝 License
Ellar is MIT Licensed.
👤 Author
Ezeudoh Tochukwu @eadwinCode
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Ezeudoh Tochukwu
- Requires: Python >=3.9
-
Provides-Extra:
all
Classifiers
- Environment
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
- Typing
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ellar-0.8.9.tar.gz
.
File metadata
- Download URL: ellar-0.8.9.tar.gz
- Upload date:
- Size: 272.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2da7159c5e35d441ff0b4959ddfcaa3182821280f743922443a570d178fa0748 |
|
MD5 | 778a05b64eb1474414b8c06e433c4264 |
|
BLAKE2b-256 | 0156535b3aa672f182ef383bc794aaf4eeb217155ea6139f09f17cf36a86d67b |
File details
Details for the file ellar-0.8.9-py3-none-any.whl
.
File metadata
- Download URL: ellar-0.8.9-py3-none-any.whl
- Upload date:
- Size: 379.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7e8dcdb7ead164999668da0922b547b4832045afd32758dd2f29752112a5f40 |
|
MD5 | d8c4db70f36321385b73a609914e3e6a |
|
BLAKE2b-256 | 0be8078395650721f7f9f604bf029b08d10ba1917542ad9270b83fe6b4c73635 |