This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Pickled Data Object: Python data persistence for apps with simple needs.

Project Description

Description

Pickled Data Object (pkldo) is method #470 for saving Python data to a file. It provides functionality for create, retrieve, update, and delete operations and uses Python’s built-in Pickle routines. It also performs operations atomically and offers file integrity. Its best fit is for applications with basic data persistence needs.

Development Status

  • Tested on BSD and Linux.
  • Windows compatibility will be next.
  • Documentation in progress.

Quick Example

Here’s a brief example of how to use a Pickled Data Object:

>>> import pkldo
>>> class Test(pkldo.Pdo):
...     pass
...
>>> a = Test()
>>> a.some_data = "howdy"
>>> a.create_pdo('/tmp/some_file')
>>> b = Test()
>>> b.load_pdo('/tmp/some_file')
>>> b.some_data
'howdy'
>>> b.some_data = "hmmmm"
>>> b.save_pdo()
>>> c = Test()
>>> c.load_pdo('/tmp/some_file')
>>> c.some_data
'hmmmm'
>>> c.delete_pdo()
>>>
Release History

Release History

This version
History Node

0.3.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pkldo-0.3.1.tar.gz (8.5 kB) Copy SHA256 Checksum SHA256 Source Jun 26, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting