An ipython shell for fastapi which automatically imports code and optionally opens a database connection
Project description
fastapi-shell
Table of Contents
Installation
pip install fastapi-shell
Usage
Begin a fastapi-shell session with default import rules:
python -m fastapi_shell
Exclude sandbox
and tests
modules from session imports:
python -m fastapi_shell --exclude sandbox tests
Only include app
modules in session imports:
python -m fastapi_shell --include app
Include app
modules except for tests
in session imports:
python -m fastapi_shell --include app --exclude tests
Run code during session initialization:
python -m fastapi_shell --run-code "import db; db.connect()"
License
fastapi-shell
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastapi_shell-0.1.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for fastapi_shell-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce0f487b0f7f20b3372dda3268034d713764a7c4afbff1d21cae12894ed0a4f2 |
|
MD5 | 0e7f34c97e5d312f5ea8847355d6e1d5 |
|
BLAKE2b-256 | e31e06410f3c43319d29adc0dbed5952fba62c1037fd4a77da9aad998ecfb168 |