Skip to main content

Memoize functions to disk, load and save compressed Pickle files.

Project description

NOTE: You should use pandas.read_pickle and pandas.to_pickle instead for load and dump.

Available functions:

Use help(pickle_utils) in an interactive session for slightly more detailed docs.

load(filename_or_object)

Load a Pickle file, from a file name or a file-like object. If the argument is a file name, it must end in ".pkl" or ".pkl.gz". In the second case the file will be compressed.

Use pandas.read_pickle instead.

dump(data, filename_or_object)

Same as before but dump data to disk.

Use pandas.to_pickle instead.

@memoize(filename, log_level=info)

Decorator to memoize the output of a function to filename with pickle. The function will be executed only if filename does not exist.

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

pickle_utils-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pickle_utils-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pickle_utils-0.1.1.tar.gz.

File metadata

  • Download URL: pickle_utils-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for pickle_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 25ccc033320f605e891df98b84dd4ed90d4266750dbc60e51aa037b5b2798264
MD5 e61240490c1b5b27f8c75ee0b60ba6d1
BLAKE2b-256 32c3fb49f713c18267ee35e50c14d9215fc1662504d33d9025d119879c903554

See more details on using hashes here.

File details

Details for the file pickle_utils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pickle_utils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for pickle_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f952a8f0a08762d9f9777fa57763deb4f4c12bf01db5c47946228f3dcdb3069
MD5 fa1d0fb9aac0403bde9236d1a3c6f3d4
BLAKE2b-256 4329caea26058ad2911af170d64d115b2c3f34c236c8b4b49e34f9878a37a5f0

See more details on using hashes here.

Supported by

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