All Projects → sloria → Flask Konch

sloria / Flask Konch

Licence: mit
An improved shell command for the Flask CLI

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Flask Konch

Lua Resty Repl
Interactive console (REPL) for Openresty and luajit code
Stars: ✭ 165 (+153.85%)
Mutual labels:  cli, repl
Cliffy
NodeJS Framework for Interactive CLIs
Stars: ✭ 263 (+304.62%)
Mutual labels:  cli, repl
Alive Progress
A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
Stars: ✭ 2,940 (+4423.08%)
Mutual labels:  cli, repl
Psysh
A REPL for PHP
Stars: ✭ 9,161 (+13993.85%)
Mutual labels:  cli, repl
Fluddy
🤝 A dependency-free command line utility for managing, updating, creating and launching Flask Apps.
Stars: ✭ 23 (-64.62%)
Mutual labels:  cli, flask
Bull Repl
Bull / BullMQ queue command line REPL
Stars: ✭ 121 (+86.15%)
Mutual labels:  cli, repl
Vsh
vsh - HashiCorp Vault interactive shell and cli tool
Stars: ✭ 209 (+221.54%)
Mutual labels:  cli, repl
Multivisor
Centralized supervisor WebUI and CLI
Stars: ✭ 104 (+60%)
Mutual labels:  cli, flask
Racket Rash
The Reckless Racket Shell
Stars: ✭ 358 (+450.77%)
Mutual labels:  cli, repl
Lev
The complete REPL & CLI for managing LevelDB instances.
Stars: ✭ 295 (+353.85%)
Mutual labels:  cli, repl
Repl
🐚 an instant REPL for any command
Stars: ✭ 71 (+9.23%)
Mutual labels:  cli, repl
Jay
😎 Supercharged JavaScript REPL
Stars: ✭ 970 (+1392.31%)
Mutual labels:  cli, repl
Ldb
A C++ REPL / CLI for LevelDB
Stars: ✭ 201 (+209.23%)
Mutual labels:  cli, repl
Croissant
🥐 A Lua REPL and debugger
Stars: ✭ 285 (+338.46%)
Mutual labels:  cli, repl
Radian
A 21 century R console
Stars: ✭ 878 (+1250.77%)
Mutual labels:  cli, repl
Baapan
✨ Super Cool NPM Playground right on the Node REPL ✨
Stars: ✭ 60 (-7.69%)
Mutual labels:  cli, repl
Imdbtr
IMDb on terminal.
Stars: ✭ 63 (-3.08%)
Mutual labels:  cli
Msvgc
Make React components from your plain SVG files
Stars: ✭ 64 (-1.54%)
Mutual labels:  cli
Swarmops
Manage swarm clusters to provide a more concise and compact intermediate layer web application with swarm ui.
Stars: ✭ 63 (-3.08%)
Mutual labels:  flask
Sub Tv Cli
Downloading your series subtitles via terminal 📺
Stars: ✭ 63 (-3.08%)
Mutual labels:  cli

Flask-Konch


|pypi-package| |build-status| |black|

.. image:: https://user-images.githubusercontent.com/2379650/32085344-61a939da-ba9c-11e7-84e2-39fbd9eadc9d.png :alt: Flask-Konch

An improved shell command for Flask

Flask-Konch adds an improved shell command, flask konch, to the Flask CLI <http://flask.pocoo.org/docs/0.11/cli/>_.

Benefits of flask konch over flask shell

  • Uses IPython, BPython, or ptpython if available, and falls back to built-in interpreter
  • Automatically imports top-level Flask functions and classes by default
  • Define additional variables to include in the shell context
  • Configurable banner and prompt

Flask-Konch uses konch <https://github.com/sloria/konch>_, a shell configuration utility, under the hood.

Get it now

::

pip install flask-konch

Usage

To run the shell:

.. code-block:: bash

export FLASK_APP=path/to/app.py flask konch

To add additional variables to the shell context:

.. code-block:: python

app = Flask(name) app.config.update({"KONCH_CONTEXT": {"db": database, "User": User}})

Configuration options

  • KONCH_FLASK_IMPORTS: Whether to automatically import top-level Flask functions and classes. Defaults to True.
  • KONCH_FLASK_SHELL_CONTEXT: Whether to automatically import Flask shell context, as registered by shell_context_processor(f) <http://flask.pocoo.org/docs/0.12/api/#flask.Flask.shell_context_processor>_. Defaults to True.
  • KONCH_CONTEXT: Dictionary of additional variables to include in the shell context.
  • KONCH_SHELL: May be 'ipy', 'bpy', 'ptpy', 'ptipy', 'py', or 'auto' (default).
  • KONCH_BANNER: Custom banner.
  • KONCH_PROMPT: Custom input prompt.
  • KONCH_OUTPUT: Custom output prompt.
  • KONCH_CONTEXT_FORMAT: Format to display shell context. May be 'full', 'short', or a function that receives the context dictionary as input and returns a string.
  • KONCH_IPY_AUTORELOAD: Whether to load and enable the IPython autoreload extension (must be using ipython shell).
  • KONCH_IPY_EXTENSIONS: List of IPython extension names to load (must be using ipython shell).
  • KONCH_IPY_COLORS: IPython color style.
  • KONCH_IPY_HIGHLIGHTING_STYLE: IPython code highlighting style.
  • KONCH_PTPY_VI_MODE: Enable vi mode (must be using ptpython shell).

License

MIT licensed. See the bundled LICENSE <https://github.com/sloria/flask-konch/blob/master/LICENSE>_ file for more details.

.. |pypi-package| image:: https://badgen.net/pypi/v/flask-konch :target: https://pypi.org/project/flask-konch/ :alt: Latest PyPI version .. |build-status| image:: https://badgen.net/travis/sloria/flask-konch/master :target: https://travis-ci.org/sloria/flask-konch :alt: Travis-CI .. |black| image:: https://badgen.net/badge/code%20style/black/000 :target: https://github.com/ambv/black :alt: Code style: Black

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].