Mirapi

Latest version: v0.0.3

Safety actively analyzes 688803 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.3

Features
- **`APIRouter` Implementation:**
- Introduced the `APIRouter` class to manage routes using RESTful methods (GET, POST, PUT, PATCH, DELETE, etc.) in a modular way.
- Added route decorators for all major HTTP methods in both `MirAPI` and `APIRouter`, enabling more flexible route definitions.
- Implemented the `include_router` method in `MirAPI`, allowing external routers to be seamlessly included, facilitating route composition and better code organization.

- **Class-Based Route Handlers:**
- Added support for class-based route handlers in `MirAPI` and `APIRouter`.
- Route handlers can now be defined as classes with methods corresponding to HTTP methods (e.g., `get`, `post`, `put`, etc.).
- This feature provides a more structured approach to route management and allows for better separation of concerns.

Refactor
- **`find_handler` Method Update in `Router`:**
- Refactored the `find_handler` method to support class-based route handlers.
- Added logic to instantiate handler classes and dynamically resolve the appropriate HTTP method handler (GET, POST, etc.) based on the incoming request.
- Maintained support for function-based route handlers.

0.0.2

We are excited to announce the first official release of **MirAPI** version 0.0.2!

**MirAPI** is a lightweight, fast, and easy-to-use ASGI-based Python web framework for building APIs. It offers a straightforward yet powerful approach for creating robust asynchronous web applications and RESTful APIs.

Key Features
- **ASGI-based** for high performance and scalability
- **Simple routing system** with built-in support for standard HTTP methods
- **Automatic OpenAPI (Swagger) documentation** generation
- **Pydantic integration** for request body validation and type hinting
- **JSON response support** out of the box
- **Customizable error handling** with support for custom exceptions
- **Lightweight and fast** asynchronous architecture designed for speed and simplicity

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.