# nuntium
A short description of the project
## Development Requirements
- Python3.8.2
- Pip
- Poetry (Python Package Manager)
### M.L Model Environment
```sh
MODEL_PATH=./ml/model/
MODEL_NAME=model.pkl
```
### Update `/predict`
To update your machine learning model, add your `load` and `method` [change here](app/api/routes/predictor.py#L13) at `predictor.py`
## Installation
```sh
python -m venv venv
source venv/bin/activate
make install
```
## Runnning Localhost
`make run`
## Deploy app
`make deploy`
## Running Tests
`make test`
## Runnning Easter Egg
`make easter`
## Access Swagger Documentation
> <http://localhost:8080/docs>
## Access Redocs Documentation
> <http://localhost:8080/redoc>
## Project structure
Files related to application are in the `app` or `tests` directories.
Application parts are:
app
├── api - web related stuff.
│ └── routes - web routes.
├── core - application configuration, startup events, logging.
├── models - pydantic models for this application.
├── services - logic that is not just crud related.
└── main.py - FastAPI application creation and configuration.
│
tests - pytest
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
毕设&课程作业_基于FastAPI 的博客应用后端.zip (56个子文件)
Graduation Design
fuckjs 66KB
Pipfile 395B
.env 72B
Makefile 1KB
app
utils.py 3KB
__init__.py 22B
schemas
__init__.py 117B
token.py 191B
user.py 756B
msg.py 68B
init_data.py 384B
main.py 1KB
services
predict.py 1KB
api
__init__.py 0B
deps.py 2KB
routes
__init__.py 0B
endpoints
utils.py 919B
__init__.py 0B
users.py 4KB
login.py 3KB
api.py 316B
sql_app.db 0B
crud
__init__.py 28B
crud_user.py 2KB
base.py 2KB
core
__init__.py 0B
security.py 941B
logging.py 336B
events.py 401B
paginator.py 1KB
celery_app.py 159B
errors.py 98B
config.py 1KB
email-templates
src
test_email.mjml 375B
new_account.mjml 695B
reset_password.mjml 1KB
models
__init__.py 23B
user.py 505B
db
__init__.py 0B
init_db.py 954B
session.py 268B
base_class.py 287B
base.py 165B
poetry.lock 49KB
tests
__init__.py 0B
test_pagination_behavior.py 1KB
ml
model
.gitkeep 0B
docker-compose.yml 102B
.idea
.gitignore 182B
azure-pipelines.yml 715B
Dockerfile 309B
pyproject.toml 726B
Pipfile.lock 33KB
.gitignore 8KB
egg.sh 720B
README.md 1KB
共 56 条
- 1
资源评论
学术菜鸟小晨
- 粉丝: 1w+
- 资源: 4960
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功