Skip to main content

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:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask_nestify-0.2.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

flask_nestify-0.2.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file flask_nestify-0.2.1.tar.gz.

File metadata

  • Download URL: flask_nestify-0.2.1.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

Hashes for flask_nestify-0.2.1.tar.gz
Algorithm Hash digest
SHA256 09dbb0bb9267a1243ff14f69eeaa6743cb883f8546c76596b4ff73bda4eb5522
MD5 9314340859a4c665e95412f2d56ce303
BLAKE2b-256 74fb4081609eb0b8dbc1c98413a0c4c2d2869bf369eaa4faded390c3b856959f

See more details on using hashes here.

File details

Details for the file flask_nestify-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: flask_nestify-0.2.1-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

Hashes for flask_nestify-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c7fafada974605ad84fc6b2b9a37ad3dd63f57d1ed2336d811feb5d966a8f4b
MD5 c7660e82d0043e45152dd6b7961612e6
BLAKE2b-256 a51bf806544770f87d08f82e4df3e85ed3d249731e4a1c15d8724cc32f7dd649

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