No project description provided
Project description
Flask-Nestify
Flask-Nestify is a Python library that provides a wrapper around Flask, enabling developers to build REST APIs with a structure and style similar to the Nest.js framework. It simplifies the development process by introducing modularity, decorators, and a clear separation of concerns.
Features
- Decorators: Use decorators to define routes, middleware, and request handlers.
- Dependency Injection: Simplify service management with built-in dependency injection.
- Nest.js-like Structure: Write Flask applications with a familiar Nest.js-inspired structure.
Installation
pip install flask-nestify
Quick Start
Here's an example of how to use Flask-Nestify:
# app.py
from flask import Flask
from flask_nestify import Nestify, Controller, Get
flask_app = Flask(__name__)
app = Nestify(flask_app)
if __name__ == '__main__':
flask_app.run()
# hello_controller.py
from flask_nestify import Controller, Get
class HelloController(Controller):
@Get('/hello')
def hello(self):
return {'message': 'Hello, World!'}
Documentation
For detailed usage and advanced features, please refer to the documentation.
Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a detailed description of your changes.
License
This project is licensed under the MIT License.
Acknowledgments
Inspired by the Nest.js framework and built with the power of Flask.
Project details
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
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 flask_nestify-0.2.0.tar.gz.
File metadata
- Download URL: flask_nestify-0.2.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.9 Linux/6.11.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f515b1c8b47cdeabf063cf73b0c5ac9d9e0b13c88b555989da217bc9399ddc5
|
|
| MD5 |
3460807d0dff65b24a653c5f559562f7
|
|
| BLAKE2b-256 |
948f88f4a3705fa48668d500e6f74645bf64c11a2eb14631b879c33a531f5d61
|
File details
Details for the file flask_nestify-0.2.0-py3-none-any.whl.
File metadata
- Download URL: flask_nestify-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.9 Linux/6.11.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fe200ccbfb59d6a627a735f957165ceb18703ba2dd671177c15a376eb4a3d25
|
|
| MD5 |
e1fec9187e12bcd6fee0f136a9184e2a
|
|
| BLAKE2b-256 |
11afcdafbfba9da28df9c1cc8b4708d72c02ab0f3ab4fac9ec2f781585659c67
|