fastapi-migrations:Fastapi和Alembic之间的小集成

时间:2021-05-08 15:35:52
【文件属性】:
文件名称:fastapi-migrations:Fastapi和Alembic之间的小集成
文件大小:29KB
文件格式:ZIP
更新时间:2021-05-08 15:35:52
python sqlalchemy vscode migration python3 Fastapi迁移 该库为alembic提供了一个小的包装。 注意 根据初始发展。 这不能用于生产库。 这可能意味着: 可能会引入重大更改 不良的文档和变更日志 尚未完全测试 *浏览源代码以了解其工作原理 等待版本> 0.1.0以便在生产环境中使用。 安装 您可以使用以下方法安装该库: pip3 install fastapi-migrations 用法 您既可以编程方式使用,也可以通过CLI(命令行界面)使用。 想象一下您的项目文件夹 app/ cli/ __init__.py action.py db/ __init__.py base.py models/ __init__.py my_model.py endpoints/ __
【文件预览】:
fastapi-migrations-main
----setup.py(2KB)
----poetry.lock(46KB)
----.gitignore(286B)
----pyproject.toml(639B)
----MANIFEST.in(127B)
----LICENSE(1KB)
----README.md(3KB)
----tests()
--------test_programatic_commands.py(3KB)
--------__init__.py(0B)
--------test_config.py(1KB)
--------models.py(0B)
--------test_imports.py(453B)
--------fixtures.py(897B)
----fastapi_migrations()
--------lib.py(7KB)
--------templates()
--------__init__.py(215B)
--------cli.py(1KB)
----.vscode()
--------settings.json(158B)
--------launch.json(474B)
--------tasks.json(1KB)

网友评论