Registry / web-framework / flask-script

flask-script

JSON →
library2.0.6pypypiunverified

Flask-Script is a Python extension for Flask that provided support for writing external scripts, including running a development server, a customized Python shell, database setup scripts, and other command-line tasks. The project's last release was in September 2017 (version 2.0.6), and its maintainers are no longer actively developing new features, only merging pull requests. It has largely been superseded by Flask's built-in command-line interface (Flask CLI), which uses the Click library.

pip install Flask-Script
INSTALL
IMPORT
SIG · FLASK-SCRIPT
F
flask-script
web-frameworkpythonv2.0.6
Install
3.3s avg
Import
—
Disk
22MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.0.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 23.9MB
glibc
py 3.10–3.920 runs
installs and imports cleanly · install 3.3s · import 0.000s · 24MB
22MB installed
● package 22MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Manager
✓ from flask_script import Manager
✗ from flask_script import Manager

This quickstart creates a simple 'manage.py' script that initializes a Flask app with a Flask-Script Manager and adds a custom 'hello' command. Run it using `python manage.py hello` to see 'Hello, world!' printed.

from flask import Flask from flask_script import Manager, Command app = Flask(__name__) class HelloCommand(Command): """Says hello.""" def run(self): print("Hello, world!") manager = Manager(app) manager.add_command("hello", HelloCommand()) if __name__ == '__main__': manager.run()
manage.py --version
Debug
Known issues
breakingFlask-Script is explicitly not compatible with Flask 2.0 and later versions, leading to import errors or unexpected behavior.
fix
For new projects, avoid Flask-Script entirely. For existing projects, you must migrate to Flask's built-in CLI, which uses the Click library, or downgrade Flask to a compatible version (<2.0).
affects: Flask >= 2.0
deprecatedThe Flask-Script library is no longer actively maintained; the last release was in 2017. Flask itself has provided a built-in command-line interface (Flask CLI) since version 0.11 (and extensively with Flask 1.0 and Click) that offers superior functionality and active development.
fix
New projects should use Flask's built-in CLI (installed with Flask) or the Click library directly for command-line interfaces. Existing projects are strongly encouraged to migrate.
affects: All versions (due to lack of maintenance and official deprecation by Flask)
deprecatedThe import path `flask.ext.script` is deprecated. While it might still work in some legacy setups, it signals an outdated approach.
fix
Always use `from flask_script import Manager` (or other components) directly.
affects: Older Flask versions using the `flask.ext` namespace.
gotchaUsing Flask-Script's `Server` command for a development server with automatic reloading can lead to "bizarre side-effects" like code executing twice or silent crashes. Flask's built-in CLI offers a more robust development server.
fix
Prefer using `flask run` from the Flask CLI for development, as it handles reloading and debugging more reliably.
affects: All versions using the `Server` command.
Upgrade
Version history
2.0.6latest on PyPI · released Sep 6, 2017
Audit
Dependencies
FlaskrequiredCore dependency for web application framework.
Agent activity
6 hits · last 30 days
node
6
Resources
flask-script — pip install flask-script · libregistry