用于 SQLite 的 Python 轻量级数据库包装器 [英] Python lightweight database wrapper for SQLite

查看:27
本文介绍了用于 SQLite 的 Python 轻量级数据库包装器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可用于 SQLite 的 Python 轻量级数据库包装器.我想要像 Django 的 ORM 这样的东西,但我可以只指向一个数据库文件,它会为我制作所需的 API(即处理所有 CRUD).

Is there a lightweight database wrapper in Python that I can use for SQLite. I would like something like Django's ORM, but that I can just point to a database file and it'll make the required API for me (i.e handle all the CRUD).

推荐答案

是的,SQLAlchemy 很棒,但也有其他选择.其中之一是 Peewee.非常轻巧,可能非常适合您的需求.

Yeah, SQLAlchemy is great, but there are also other options. One of them is Peewee. Very lightweight and it may fits perfectly with what you are looking for.

https://github.com/coleifer/peewee

这篇关于用于 SQLite 的 Python 轻量级数据库包装器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆