Skip to main content

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.

Metadata

Release files for flask-nestify 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask-nestify 0.2.1
File Size Uploaded Provenance
flask_nestify-0.2.1.tar.gz 10.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for flask-nestify 0.2.1
File Interpreter ABI Platform
flask_nestify-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 24.6 kB

Release files / flask_nestify-0.2.1.tar.gz

Download URL flask_nestify-0.2.1.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
09dbb0bb9267a1243ff14f69eeaa6743cb883f8546c76596b4ff73bda4eb5522
BLAKE2b-256 checksum
How to use checksums
74fb4081609eb0b8dbc1c98413a0c4c2d2869bf369eaa4faded390c3b856959f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.10.9 Linux/6.11.0-1012-azure

Release files / flask_nestify-0.2.1-py3-none-any.whl

Download URL flask_nestify-0.2.1-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c7fafada974605ad84fc6b2b9a37ad3dd63f57d1ed2336d811feb5d966a8f4b
BLAKE2b-256 checksum
How to use checksums
a51bf806544770f87d08f82e4df3e85ed3d249731e4a1c15d8724cc32f7dd649
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.10.9 Linux/6.11.0-1012-azure

Security for flask-nestify 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page