1Metadata-Version: 1.1 2Name: pickleshare 3Version: 0.7.5 4Summary: Tiny 'shelve'-like database with concurrency support 5Home-page: https://github.com/pickleshare/pickleshare 6Author: Ville Vainio 7Author-email: vivainio@gmail.com 8License: MIT 9Description: PickleShare - a small 'shelve' like datastore with concurrency support 10 11 Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike shelve, 12 many processes can access the database simultaneously. Changing a value in 13 database is immediately visible to other processes accessing the same database. 14 15 Concurrency is possible because the values are stored in separate files. Hence 16 the "database" is a directory where *all* files are governed by PickleShare. 17 18 Example usage:: 19 20 from pickleshare import * 21 db = PickleShareDB('~/testpickleshare') 22 db.clear() 23 print("Should be empty:",db.items()) 24 db['hello'] = 15 25 db['aku ankka'] = [1,2,313] 26 db['paths/are/ok/key'] = [1,(5,46)] 27 print(db.keys()) 28 29 This module is certainly not ZODB, but can be used for low-load 30 (non-mission-critical) situations where tiny code size trumps the 31 advanced features of a "real" object database. 32 33 Installation guide: pip install pickleshare 34 35Keywords: database persistence pickle ipc shelve 36Platform: UNKNOWN 37Classifier: License :: OSI Approved :: MIT License 38Classifier: Programming Language :: Python :: 2 39Classifier: Programming Language :: Python :: 2.7 40Classifier: Programming Language :: Python :: 3 41