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.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for fastapi_shell-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb9c73b14b4fb1a4895504b5c5bd3c93f5d49c6b2b7586bb5c9bb17ce7e3d458 |
|
MD5 | 5102b63de8723247996bbab3e5cda774 |
|
BLAKE2b-256 | c73c0a02008c41b68e022834422c7b7c40ad6ea9a98c82bc373bcebb622f9ce7 |