semvec/pypi-packages huggingface dataset:
textoria 0.0.1
Textoria API Client for Python
License: MIT License
Requires Python: >=3.8

# Textoria API

Textoria API is a simple key-value store API that allows you to store, retrieve, update, and delete key-value pairs. It is built using aiohttp and provides an asynchronous interface for efficient and fast operations.

## Features

- Store key-value pairs
- Retrieve all key-value pairs
- Update the value of a specific key
- Delete a specific key-value pair

## Installation

To use the Textoria API, simply clone the repository and install the required dependencies:

```bash
git clone https://github.com/your_username/textoria-api.git
cd textoria-api
pip install -r requirements.txt
```

## Usage

First, you need to instantiate the `Textoria` class with the API URL:

```python
from textoria import Textoria

api_url = "https://example.com/api"
textoria = Textoria(api_url)
```

### Get all keys

To retrieve all the key-value pairs stored in the system, you can use the `get_all_keys` method:

```python
keys = await textoria.get_all_keys()
print(keys)
```

### Create a new key-value pair

To create a new key-value pair, use the `create_key` method with the key and value as arguments:

```python
new_key = "example_key"
new_value = "example_value"
response = await textoria.create_key(new_key, new_value)
print(response)
```

### Update an existing key-value pair

To update the value of an existing key, use the `update_key` method with the key and the new value as arguments:

```python
key = "example_key"
new_value = "updated_value"
response = await textoria.update_key(key, new_value)
print(response)
```

### Delete a key-value pair

To delete a specific key-value pair, use the `delete_key` method with the key as argument:

```python
key = "example_key"
response = await textoria.delete_key(key)
print(response)
```

## Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue to report bugs or suggest improvements.

## License

This project is released under the [MIT License](LICENSE).
flo-chart.py 1.0.0
Python API for downloading FLO charts
License: MIT License

# flo-chart.py
![flo](./image.png)

flo-chart.py is a Python API that retrieves the TOP 100 information from the [FLO](https://www.music-flo.com/).

## Installation
```commandline
pip install flo-chart.py
```

## Quickstart
The main usage of flo-chart.py is similar to [billboard.py](https://github.com/guoguo12/billboard-charts).
```commandline
>>> from flo import *
>>> chart = ChartData()
>>> print(chart[0].json())
{
    "artist": "IVE (아이브)",
    "image": "https://cdn.music-flo.com/image/v2/album/763/481/12/04/412481763_6420ff34_s.jpg?1679884086290/dims/resize/256x256/quality/90",
    "isNew": false,
    "lastPos": 1,
    "rank": 1,
    "title": "Kitsch"
}
>>> print(chart.name)
FLO 차트
>>> print(chart.date)
2023-04-09 22:00:00
```

### ChartData Arguments
- `name` – The chart name
- `date` – The chart date
- `imageSize` – The size of cover image for the track. (default: 256)
- `fetch` – A boolean value that indicates whether to retrieve the chart data immediately. If set to `False`, you can fetch the data later using the `fetchEntries()` method.

### Chart entry attributes
`ChartEntry` can be accessed using the `ChartData[index]` syntax. A `ChartEntry` instance has the following attributes:
- `title` – The title of the track
- `artist` – The name of the artist
- `image` – The URL of the cover image for the track
- `lastPos` - The track's last position on the previous period.
- `rank` – The track's current rank position on the chart.
- `isNew` – Whether the track is new to the chart.

## Dependencies
- [requests](https://requests.readthedocs.io/en/latest/)

## License
This project is licensed under the MIT License.