A fast, expressive, Python-native web framework with auto OpenAPI docs.
Project description
Moxie API
The blazing-fast, modern Python framework designed for speed, efficiency, and developer productivity.
Moxie is an ASGI-native web framework built on top of high-performance components. It combines the ease of use of FastAPI with a modular architecture that gives you full control over your API's lifecycle.
✨ Key Features
- 🚀 Blazing Fast: Built on
uvicornand optimizedasynciofor maximum throughput. - 🛠️ Dependency Injection: A robust, built-in DI system that makes testing and modularity a breeze.
- 📜 Auto OpenAPI: Stunning, interactive documentation with Swagger UI and ReDoc, generated automatically from your code.
- 🔌 Plugin System: Easily extend the framework with custom plugins for health checks, logging, and more.
- 🛡️ Type Safety: Full Pydantic integration for request validation and response serialization.
- 🌐 WebSockets: Native, easy-to-use WebSocket support with JSON serialization.
🚀 Quickstart
Install Moxie using pip:
pip install moxie-api
Create a file named app.py:
from moxie import Moxie
app = Moxie(title="My Awesome API")
@app.get("/")
async def root():
return {"message": "Welcome to Moxie!"}
@app.get("/items/{item_id}")
async def read_item(item_id: int, q: str = None):
return {"item_id": item_id, "q": q}
Run your API:
moxie dev app:app
Now visit http://127.0.0.1:8000/docs to see your interactive documentation!
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for more details.
📄 License
Moxie is licensed under the MIT License. See the LICENSE file for more information.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moxie_api-2.0.5.tar.gz.
File metadata
- Download URL: moxie_api-2.0.5.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4ceeb8d465be3fd577e23e841b0f7ee4601a4a794d399b7732ebf355d9b4e86
|
|
| MD5 |
7fe3b1571bc142680a2caf8768e77222
|
|
| BLAKE2b-256 |
d141b39cfa507e8824e0b866d1dbb28904229223d559171296f7a8df4a1148c4
|
File details
Details for the file moxie_api-2.0.5-py3-none-any.whl.
File metadata
- Download URL: moxie_api-2.0.5-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c328ce8518ef7b05bcbfee7189a81ad03cc0af5b392b4950db4d9097562a9f7
|
|
| MD5 |
fb7aa1badc1dc9fb21d90458fdd444f3
|
|
| BLAKE2b-256 |
041a22e96eb7be6e903a68caf5817cc07c183f33eb586493d0a743ce975b6352
|