Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prodesire/memlite
A fast, pure-Python, untyped, in-memory database engine, using Python syntax to manage data, instead of SQL, inspired by PyDbLite.
https://github.com/prodesire/memlite
Last synced: 2 months ago
JSON representation
A fast, pure-Python, untyped, in-memory database engine, using Python syntax to manage data, instead of SQL, inspired by PyDbLite.
- Host: GitHub
- URL: https://github.com/prodesire/memlite
- Owner: Prodesire
- Created: 2016-09-05T12:58:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-09T16:59:23.000Z (about 7 years ago)
- Last Synced: 2024-10-04T13:31:39.965Z (3 months ago)
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 20
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
MemLite
=============MemLite is
* a fast, pure-Python, untyped, in-memory database engine, using
Python syntax to manage data, instead of SQL, inspired by PyDbLite.Supported Python versions: 2.6-2.7
Installation
---------------.. code-block:: bash
python setup.py install
Usage
---------------Create fields
.. code-block:: bash
import memLite
db = memlite.Base()
db.create('a', 'b', 'c')Create indexs:
.. code-block:: bash
db.create_index('a', 'b')
Insert a piece of data:
.. code-block:: bash
db.insert(a=-1, b=0, c=1)
Query data under condition:
.. code-block:: bash
db.query(a=-1, b=0)