in-memory database in Python

后端 未结 6 1914
没有蜡笔的小新
没有蜡笔的小新 2020-12-13 01:01

I\'m doing some queries in Python on a large database to get some stats out of the database. I want these stats to be in-memory so other programs can use them without going

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 01:18

    Extremely late to the party, but pyfilesystem2 (with which I am not affiliated) seems to be a perfect fit:

    https://pyfilesystem2.readthedocs.io

    pip install fs
    
    from fs import open_fs
    mem_fs = open_fs(u'mem://')
    ...
    

提交回复
热议问题