Skip to main content

Flasked

Flasked Badge

Flasked is an advanced Flask extension that brings unparalleled flexibility and ease to REST API development with Flask, particularly shining in dynamic environments like Jupyter notebooks. It empowers developers to dynamically manage routes without the need for server restarts, supports background server execution for seamless interactive development, and maintains compatibility with WSGI servers like Gunicorn for production deployments.

Key Features

  • Dynamic Route Management: Flasked allows for the dynamic addition, modification, and deletion of routes in real-time, eliminating the need for server restarts and enhancing the development workflow.

  • Background Server Execution: Designed with interactive environments in mind, Flasked can run the server in the background, making it a perfect match for Jupyter notebooks and similar setups.

  • WSGI Compatibility: While Flasked excels in development and testing environments, it is also fully compatible with WSGI servers, ensuring a smooth transition from development to production.

Quick Start

Installation

To install Flasked, simply run:

pip install flasked

Creating Your First Route

  1. Instantiate Flasked:

    from flasked import Flasked
    
    flasked = Flasked()
    
  2. Run the Server in Background:

    flasked.run_background()
    
  3. Define a Route:

    class HelloWorld:
        def get(self):
            return {"message": "Hello, World!"}
    
    flasked['/'] = HelloWorld
    
  4. Access Your Route:

    Open http://127.0.0.1:1024/ in your browser to see the greeting message.

  5. Stop the Server (optional):

    flasked.stop()
    

Documentation

For detailed documentation on Flasked's features, advanced routing options, and comprehensive examples, please refer to our documentation. Also, a jupyter notebook is available for learning more.

Contributing

Contributions are warmly welcomed! Whether it's through submitting bug reports, feature requests, or pull requests, your input helps make Flasked better for everyone.

License

Flasked is open-source software licensed under the MIT License. See the LICENSE file for more details.

Release files for Flasked 0.1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for Flasked 0.1.0
File Interpreter ABI Platform
Flasked-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / Flasked-0.1.0-py3-none-any.whl

Download URL Flasked-0.1.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d5842444a0ac536d06b165260c89c0d7a67a960e2fb98fa7ddff0e5d93dc8c1
BLAKE2b-256 checksum
How to use checksums
534693670d74336898c91d4bf1c7937ec8b49dad8beac6d5312d7909665438d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.31.0 setuptools/68.0.0 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.7.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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