Metadata-Version: 2.1
Name: membank
Version: 0.2.1
Summary: A library to handle persistent memory
Home-page: https://github.com/Kolumbs/membank
Author: Juris Kaminskis
Author-email: juris.kaminskis@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/Kolumbs/membank/issues
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Database
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# membank
Python library for storing data in persistent memory (sqlite, postgresql, berkeley db)
## usage
>>> memory = LoadMemory() # defaults to sqlite memory
>>> Dog = namedtuple('Dog', ['color', 'size', 'breed'])
>>> memory.create(Dog) # expects Python collections.namedtuple
>>> memory.set.dog(Dog('brown')) # stores object into database
>>> memory.get.dog() # retrieves all objects as tuple

... new process ...
>>> memory = LoadMemory() # this works unless sqlite memory is used before
>>> memory.get.dog()


