最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【调研】Python的合适本地存取和查看的数据库

Python crifan 2361浏览 0评论

想要去实现:

用Python代码能操作的,PC端的数据库

适合本地存取数据量不是很多的数据库

最好还有方便可用的查看数据库的工具

目前已知的,貌似sqlite之类的应该比较合适。

后来又想到,或许redis之类的,非关系数据库,貌似也不错?

又想到了Realm

python  数据库 realm

移动端数据库新王者:realm – IOS – 伯乐在线

realm数据库 – Do you like

Realm数据库简介 – KevinEmily

发现realm只支持移动端。

Access data in .realm file from Python – Stack Overflow

Realm

而python操作MySQL或SQlite,貌似都还是很繁琐:

Python MySQL Database Access

Databases – Full Stack Python

SQLAlchemy

SQLAlchemy – The Database Toolkit for Python

python  非关系数据库

用 Python 写一个 NoSQL 数据库

Python非关系型数据库

Full Stack Python 系列之 5.3 NoSQL 数据存储

算了,考虑到本地不用安装额外的东西,还是SQLite方便。

python SQLAlchemy

python SQLAlchemy sqlite

使用SQLAlchemy – 廖雪峰的官方网站

SQLite — SQLAlchemy 1.2 Documentation

Engine Configuration — SQLAlchemy 1.2 Documentation

# sqlite://<nohostname>/<path>
# where <path> is relative:
engine =create_engine(‘sqlite:///foo.db’)
#Unix/Mac – 4 initial slashes in total
engine =create_engine(‘sqlite:////absolute/path/to/foo.db’)

Introductory Tutorial of Python’s SQLAlchemy | Python Central

Python ORM example (Python + SQLAlchemy + SQlite/MySQL)

Quickstart — Flask-SQLAlchemy Documentation (2.3)

python SQLAlchemy sqlite 使用

SQLAlchemy 教程 – 简书

SQLAlchemy ORM教程之一:Create – 简书

SQLAlchemy ORM教程之二:Query – 简书

20.Python笔记之SqlAlchemy使用 – 刘耀 – 博客园

SQLAlchemy入门(一) – 止于至善 – SegmentFault

Python下操作SQLAlchemy | IT范儿

Alembic

alembic 0.9.6 : Python Package Index

Tutorial — Alembic 0.9.7 documentation

【整理】Mac和Windows下查看SQLite的工具

转载请注明:在路上 » 【调研】Python的合适本地存取和查看的数据库

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.165 seconds, using 22.13MB memory