Skip to main content

Persistent archival of python objects in an importable format.

Project description

Persistent Archival of Python Objects

Documentation Status Language grade: Python Tests Pypi pyversionsCode style: black

Persistent archival of python objects in an importable format.

This package provides a method for archiving python objects to disk for long-term persistent storage. The archives are importable python packages with large data stored in the npy numpy data format, or HDF5 files using the h5py package (if it is installed). The original goal was to overcomes several disadvatages of pickles:

  1. Archives are relatively stable to code changes. Unlike pickles, changing the underlying code for a class will not change the ability to read an archive if the API does not change.
  2. In the presence of API changes, the archives can be edited by hand to fix them since they are simply python code. (Note: for reliability, the generated code is highly structured and not so "pretty", but can still be edited or debugged in the case of errors due to API changes.)
  3. Efficient storage of large arrays.
  4. Safe for concurrent access by multiple processes.

Documentation: http://persist.readthedocs.org

Source: https://alum.mit.edu/www/mforbes/hg/forbes-group/persist

Issues: https://alum.mit.edu/www/mforbes/hg/forbes-group/issues

Installing

This package can be installed from PyPI:

python3 -m pip install persist

or from source:

python3 -m pip install hg+https://alum.mit.edu/www/mforbes/hg/forbes-group/persist

Project details


Download files

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

Source Distribution

persist-3.1.tar.gz (41.9 kB view details)

Uploaded Source

Built Distribution

persist-3.1-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file persist-3.1.tar.gz.

File metadata

  • Download URL: persist-3.1.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.8 Darwin/18.7.0

File hashes

Hashes for persist-3.1.tar.gz
Algorithm Hash digest
SHA256 171f391939a9b4e8a4baabd20be91e95caa74caae5760e523e0244451a6bceb8
MD5 822f989f4e7201d8b4bc64a9f27d624f
BLAKE2b-256 b718cfe20d263a50dffa5a41f39fcae5732dce5608bdbb81aa890d18e60b4eb6

See more details on using hashes here.

File details

Details for the file persist-3.1-py3-none-any.whl.

File metadata

  • Download URL: persist-3.1-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.8 Darwin/18.7.0

File hashes

Hashes for persist-3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b175669da863dd2498a9987d6ff03003330f2b7b9d1b3b7b2d418b9475e87b3
MD5 589470d0fdd97a13e2b0159d0b133f2c
BLAKE2b-256 8d89c3fd3d29b2b3651b230f74e0b7a2acd4a55667e2a01d590e86eaddc9961d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page