METADATA 1.5 KB

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