Skip to main content

Backup to store results of functions, so they do not need to be rerun

Project description

remember

Backup to store results of functions, so they do not need to be rerun. As long as the function is unchanged, and the inputs are the same.

from norerun import norerun
@norerun
def count(n):
  for i in range(n):
    pass
  return i

count(1000000000) #this is going to take a few seconds

count(1000000000) #now this is inmediate

A hidden pickle file is created in the current working directory ".bak". It can be deleted to reset the memory, or norerun.flush() will do the same.

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

norerun-1.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

norerun-1.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file norerun-1.0.1.tar.gz.

File metadata

  • Download URL: norerun-1.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for norerun-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bc46d94e39670a9d1c811765eb281b07cf60488b079e5fa22fab3dfcd302c05d
MD5 5e27602464660bca14ca64517c29b608
BLAKE2b-256 7dad8105e20fc4fb3621f25109d854f11543d40233314f16d9510fdb6f05808e

See more details on using hashes here.

File details

Details for the file norerun-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: norerun-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for norerun-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70486dca1b93ed87af522ef91ccf6f9441b27206fa85f136d4ec0db5d32e21df
MD5 2e79431c3b855bf50fe56c64db49c12e
BLAKE2b-256 a6d336326b77b2ebd7fa66878db6880cb6d9a9280f074e2389bee0faa3143d75

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