Skip to main content

A fast, expressive, Python-native web framework with auto OpenAPI docs.

Project description

Moxie Banner

Moxie API

The blazing-fast, modern Python framework designed for speed, efficiency, and developer productivity.

Python Version License Performance


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 uvicorn and optimized asyncio for 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

moxie_api-2.0.3.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moxie_api-2.0.3-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file moxie_api-2.0.3.tar.gz.

File metadata

  • Download URL: moxie_api-2.0.3.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for moxie_api-2.0.3.tar.gz
Algorithm Hash digest
SHA256 d8d5c7b9a043a23f9bbd7eb5defd780414d578115b721398748698c57f06975f
MD5 9d03fe32cf7320140688483fd0827d00
BLAKE2b-256 47a6d87d411ae11349f3a9adc712c7cc8709a172d9ea88aac5ccd512591cb41a

See more details on using hashes here.

File details

Details for the file moxie_api-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: moxie_api-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for moxie_api-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 05ffc960a596c49563cd3a4bb3c5de5e806b96b9d4776884eeaa13547a8b09b9
MD5 1f69539f8252bccf6b95f390466cc8c3
BLAKE2b-256 30845606d76736733b3d663d9b2ac3978aa9a8a919bc3118532acca3bc1fc016

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