bottle-sqlalchemy:Bottle SQLAlchemy插件

时间:2021-05-18 14:36:55
【文件属性】:
文件名称:bottle-sqlalchemy:Bottle SQLAlchemy插件
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-18 14:36:55
python sqlalchemy bottlepy Python 这个bottle-sqlalchemy插件将SQLAlchemy与您的Bottle应用程序集成在一起。 它会在您的路由中注入一个SQLAlchemy会话并处理会话周期。 用法示例: import bottle from bottle import HTTPError from bottle . ext import sqlalchemy from sqlalchemy import create_engine , Column , Integer , Sequence , String from sqlalchemy . ext . declarative import declarative_base Base = declarative_base () engine = create_engine ( 'sqlite:///:memory:' , echo = True ) ap
【文件预览】:
bottle-sqlalchemy-master
----setup.py(1KB)
----.gitignore(17B)
----.travis.yml(2KB)
----LICENSE(1KB)
----examples()
--------basic.py(2KB)
----README.md(2KB)
----test.py(6KB)
----bottle_sqlalchemy.py(6KB)
----tox.ini(1KB)

网友评论