Metadata-Version: 2.1
Name: cachier-python
Version: 0.1.3
Summary: A python wrapper package for connecting to a self-hosted cachier service
Home-page: https://github.com/apinanyogaratnam/cachier-python
Author: apinanyogaratnam
Author-email: apinanapinan@icloud.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10.4
Description-Content-Type: text/markdown
License-File: LICENSE

# Cachier Python

A python library wrapper for using a self-hosted cachier service.

URL: [cachier-python](https://pypi.org/project/cachier-python/)

## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Support](#support)
- [Contributing](#contributing)

## Installation

Install the package from pypi:

```sh
pip install cachier-python
```

## Usage

```python
from cachier_python import Cachier

# Create a cachier instance to connect to the service
client = Cachier('http://localhost:8000')

# cache expiry in seconds
CACHIER_EXPIRY = 600

# set the cache
client.set(key='my_key', value='my_value', expiry=CACHIER_EXPIRY)

# get the cached value
cached_value = client.get(key='my_key')
```

## Support

Please [open an issue](https://github.com/apinanyogaratnam/cachier-python/issues/new) for support.

## Contributing

Please contribute using [Github Flow](https://guides.github.com/introduction/flow/). Create a branch, add commits, and [open a pull request](https://github.com/apinanyogaratnam/cachier-python/compare/). -->


