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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_shell-0.1.3.tar.gz.
File metadata
- Download URL: fastapi_shell-0.1.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
776c059816a23d46fd479dcdbcbc0f2b7b91dde650504ba6440ac7aab6308d62
|
|
| MD5 |
fe8db8bd856f59dda83fa09289330bcd
|
|
| BLAKE2b-256 |
ce4e8de82a78a3c57d525c52391cd962ff9a40317c27fc3f85fe2116d5c240a4
|
File details
Details for the file fastapi_shell-0.1.3-py3-none-any.whl.
File metadata
- Download URL: fastapi_shell-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce0f487b0f7f20b3372dda3268034d713764a7c4afbff1d21cae12894ed0a4f2
|
|
| MD5 |
0e7f34c97e5d312f5ea8847355d6e1d5
|
|
| BLAKE2b-256 |
e31e06410f3c43319d29adc0dbed5952fba62c1037fd4a77da9aad998ecfb168
|