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.1.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.1-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moxie_api-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5db3b121229b20277fa7f9e8b8b80bee790106b8698a32222b95dffa2e285b4a
MD5 445a7e5d99fee941fcb6f60d6e5d331f
BLAKE2b-256 fbe2192bb9739ae965e83a215b364037e639ce16d98546a226badfabb35a5dd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moxie_api-2.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33073a51bdce3e6e9cc0e2f484e8d54cf1eebca75530c574c55684540a15bbe4
MD5 07da023bc487178cebd58ee5f7ac1408
BLAKE2b-256 1595b9cf86bb7c6e4a815cc13514204c18ae2c25be20b97642b18ad1990a7fed

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