semvec/pypi-packages huggingface dataset:
jishoapy 0.1.0
Jisho Python API Wrapper
License: MIT
Requires Python: >=3.7

# jishoapy

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/jishoapy?label=Python)
![PyPI](https://img.shields.io/pypi/v/jishoapy?label=PyPI)

Jisho Python API Wrapper

## Features

- Supports both Synchronous and Asynchronous HTTP operations
- Provides Cacheable search result operations

## Installation

The installation includes both Synchronous and Asynchronous support.

```sh
pip install -U jishoapy
```

## Examples

The following examples demonstrates operations that are available to use.

### Fetching

```py
import jishoapy

client = jishoapy.Client()
results = client.fetch("...")
client.close()
```

### Caching

```py
import jishoapy

client = jishoapy.Client(preserve=True)
client.fetch("...")
results = client.get("...")
client.close()
```

### Context Manager

```py
import jishoapy

with jishoapy.Client() as client:
    results = client.fetch("...")
```

### Asynchronous

```py
import asyncio
import jishoapy

async def main():
    client = jishoapy.Client(asynchronous=True)
    results = await client.fetch("...")
    await client.close()

asyncio.run(main())
```

## Links

- [GitHub](https://github.com/CyCanWork/jishoapy)
- [ReadtheDocs](https://jishoapy.readthedocs.io/en/latest/)
- [PyPI](https://pypi.org/project/jishoapy/)