Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

race_inventorytools-0.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

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

Hashes for race_inventorytools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ddc1b0f5131fbb108d4335278d56e9054096772d0a903f52a15fe355dcdb766e
MD5 2dbb5ed20caf923d8018956f810ea42f
BLAKE2b-256 fa02510c29d61978e57ae01655d6242f549a79c66e41b918988b8523b9328eeb

See more details on using hashes here.

File details

Details for the file race_inventorytools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for race_inventorytools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41e324460d37bdb4af94a0fd71d84e5d8e12d7e392b96495f978ace4d517fd3e
MD5 282f26816e9fd84228e598c8122542fb
BLAKE2b-256 a87fe74a6e8893eece48fe6bdd5e33b983608b840c51ff6621530dd99043d333

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page