简体   繁体   English

对于可以脱机工作的python客户端应用程序,建议使用哪个数据库

[英]Which database would be recommend for a python client app that can work offline

I am running a Python app on a client and I need to share a JSON file with other clients and a server. 我正在客户端上运行Python应用程序,并且需要与其他客户端和服务器共享JSON文件。 The client should be able to work offline and update the JSON file. 客户端应该能够脱机工作并更新JSON文件。 The server should also be able to edit some configuration in the JSON file. 服务器还应该能够编辑JSON文件中的某些配置。

What DB would you recommend? 您会推荐什么DB? It should be small, simple and be able to run offline and make sync operations to online DB. 它应该小巧,简单,并且可以脱机运行并与在线数据库进行同步操作。

Br Esben 埃斯本

I would recommend using PyBoxDB. 我建议使用PyBoxDB。 It is really simple and extensible, since it is all written in python. 它真的很简单且可扩展,因为它们都是用python编写的。 Here's how to use it 这是使用方法

from pyboxbeta import PyBox
database = PyBox("[database name]")
database.data[key] = value

And when you are done editing, 当您完成编辑后,

database.close

Heres the website: https://pybox.netlify.com/ 以下是网站: https//pybox.netlify.com/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 您会为python推荐哪个gps库? - Which gps library would you recommend for python? 你能推荐哪个用于python的ldap对象映射器? - Which ldap object mapper for python can you recommend? python 中的哪个正则表达式适用于该文本? - Which regex expression in python would work on this text? 你能推荐一个可以接受WS-Attachments的Python SOAP客户端吗? - Can you recommend a Python SOAP client that can accept WS-Attachments? 无法在 python 中为这个程序编写脚本,有人可以推荐任何东西让它工作吗 - Couldn't write the script in python for this program, Can someone please recommend anything to make it work 你能推荐一个适用于Python的Amazon AMI吗? - Can you recommend an Amazon AMI for Python? 我如何在Google Appengine应用程序的数据库中验证用户(任何人都可以推荐对Google Appengine应用程序进行用户身份验证的最佳方法)? - How do i verify user in database in google appengine app ( can anyone recommend the best way to do user authentication for google appengine app)? Python客户端服务器-判断客户端是否离线 - Python client-server - tell if client offline 无法在谷歌应用引擎上使用“使用AJAX启用客户端RPC请求”演示使用python 2.7 - Can't get “Using AJAX to Enable Client RPC Requests” Demo on google app engine to work with python 2.7 谁能为Python推荐一个像样的FOSS PDF生成器? - Can anyone recommend a decent FOSS PDF generator for Python?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM