Metadata-Version: 2.1
Name: tonplay-sdk
Version: 0.0.5
Summary: This is a lightweight library that works as a connector to TON Play public API
Author: TON Play
License: MIT
Keywords: TON Play,Ton Play API,Tonplay API,ton sdk,ton
Requires-Python: >=3.11.1
Description-Content-Type: text/markdown
License-File: LICENSE.md

# TON Play Public API Connector Python

[![PyPI version](https://img.shields.io/pypi/v/tonplay-sdk)](https://pypi.python.org/pypi/tonplay-sdk)

This is a [lightweight library](https://github.com/90K2/tonplay-sdk) that works as a connector to [TON Play public API](https://docs.tonplay.io/)
## Installation

```bash
pip install tonplay-connector
```

## Get API Key

To get API Key [follow the link](https://docs.tonplay.io/digital-assets-api/api-key)

## RESTful APIs

Usage examples:
```python
from tonplay.methods import TonPlayApi

client = TonPlayApi(api_key='<YOUR API KEY>')

# Get assets on sale
print(client.get_assets_on_sale())
```

Please find `examples` folder to check for more endpoints.
- In order to set your API and Secret Key for use of the examples, create a file examples/config.ini with your keys.
- Eg:
```bash
# examples/config.ini
[keys]
api_key=abc123456
```
