A Flask-Admin inventory CRUD demo application.
Project description
Race Inventory CRUD Demo
这是一个用于演示的 Flask-Admin 库存 CRUD 应用,包含产品管理和出入库流水管理。
安装运行
python -m pip install Race-Inventorytools
race-inventory-admin
默认访问地址:
http://127.0.0.1:5000/admin
可选环境变量:
$env:FLASK_RUN_HOST = "127.0.0.1"
$env:FLASK_RUN_PORT = "5000"
$env:FLASK_DEBUG = "1"
$env:RACE_DEMO_SECRET_KEY = "replace-with-your-secret"
$env:RACE_INVENTORY_DB = "D:\path\to\data.db"
本地打包
python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
构建产物会生成在 dist/ 目录。
准备离线依赖
.\scripts\download_dependencies.ps1
脚本会把依赖包下载到 wheelhouse/,并在已经构建 dist/ 的情况下把本项目 wheel 一起复制进去。比赛方可用下面命令离线安装:
python -m pip install --no-index --find-links wheelhouse Race-Inventorytools
上传 PyPI
python -m twine upload dist/*
建议先上传 TestPyPI 验证:
python -m twine upload --repository testpypi dist/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
race_inventorytools-0.1.0.tar.gz
(11.5 kB
view details)
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 race_inventorytools-0.1.0.tar.gz.
File metadata
- Download URL: race_inventorytools-0.1.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddc1b0f5131fbb108d4335278d56e9054096772d0a903f52a15fe355dcdb766e
|
|
| MD5 |
2dbb5ed20caf923d8018956f810ea42f
|
|
| BLAKE2b-256 |
fa02510c29d61978e57ae01655d6242f549a79c66e41b918988b8523b9328eeb
|
File details
Details for the file race_inventorytools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: race_inventorytools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41e324460d37bdb4af94a0fd71d84e5d8e12d7e392b96495f978ace4d517fd3e
|
|
| MD5 |
282f26816e9fd84228e598c8122542fb
|
|
| BLAKE2b-256 |
a87fe74a6e8893eece48fe6bdd5e33b983608b840c51ff6621530dd99043d333
|