fastapi-shell-0.1.3
توضیحات
An ipython shell for fastapi which automatically imports code and optionally opens a database connection
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fastapi-shell-0.1.3 |
| نام | fastapi-shell |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | jpribyl <jpribyl@github.io> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fastapi-shell/ |
| مجوز | - |
# fastapi-shell
[](https://pypi.org/project/fastapi-shell)
[](https://pypi.org/project/fastapi-shell)
---
**Table of Contents**
- [Installation](#installation)
- [License](#license)
## Installation
```console
pip install fastapi-shell
```
## Usage
Begin a fastapi-shell session with default import rules:
```console
python -m fastapi_shell
```
Exclude `sandbox` and `tests` modules from session imports:
```console
python -m fastapi_shell --exclude sandbox tests
```
Only include `app` modules in session imports:
```console
python -m fastapi_shell --include app
```
Include `app` modules except for `tests` in session imports:
```console
python -m fastapi_shell --include app --exclude tests
```
Run code during session initialization:
```console
python -m fastapi_shell --run-code "import db; db.connect()"
```
## License
`fastapi-shell` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
نیازمندی
| مقدار | نام |
|---|---|
| - | ipython==8.6.0 |
| - | prompt-toolkit==3.0.30 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl fastapi-shell-0.1.3:
pip install fastapi-shell-0.1.3.whl
نصب پکیج tar.gz fastapi-shell-0.1.3:
pip install fastapi-shell-0.1.3.tar.gz