Metadata-Version: 2.1
Name: file-memoizer
Version: 0.0.2
Summary: Store function results across executions using cache files
Home-page: https://github.com/lordjabez/file-memoizer
License: MIT-0
Author: Judson Neer
Author-email: judson.neer@gmail.com
Requires-Python: >=3.8.1,<3.12
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: cachier (>=2.0.0,<3.0.0)
Project-URL: Repository, https://github.com/lordjabez/file-memoizer
Description-Content-Type: text/markdown

# File Memoizaer

[![Tests](https://github.com/lordjabez/file-memoizer/actions/workflows/test.yml/badge.svg)](https://github.com/lordjabez/file-memoizer/actions/workflows/test.yml)
[![Linter](https://github.com/lordjabez/file-memoizer/actions/workflows/lint.yml/badge.svg)](https://github.com/lordjabez/file-memoizer/actions/workflows/lint.yml)
[![Security](https://github.com/lordjabez/file-memoizer/actions/workflows/scan.yml/badge.svg)](https://github.com/lordjabez/file-memoizer/actions/workflows/scan.yml)
[![Release](https://github.com/lordjabez/file-memoizer/actions/workflows/release.yml/badge.svg)](https://github.com/lordjabez/file-memoizer/actions/workflows/release.yml)

This Python package makes it easy to store function results across executions using
cache files.


## Prerequisites

Installation is via `pip`:

```bash
pip install file-memoizer
```


## Usage

Basic usage is as follows:

```python3
import file_memoizer

file_memoizer.memoize()
def double(n):
    return 2 * n

class Arithmetic():

    @staticmethod
    @file_memoizer.memoize()
    def triple(n):
         return 3 * n
    
    @file_memoizer.memoize(ignore_unhashable_params=True)
    def multiply(self, x, y):
        return x * y
```

