Metadata-Version: 2.4
Name: tgwallet
Version: 0.1.0
Summary: Python library for simplified access to Telegram Wallet P2P Market API
Author-email: Arkadii Halchenko <arkadiihalchenko@gmail.com>
License: MIT License
        
        Copyright (c) 2026 Arkadii Halchenko
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Keywords: telegram,wallet,p2p,api,crypto
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp>=3.9
Requires-Dist: pydantic>=2.5
Dynamic: license-file

# tgwallet

Async Python client for Telegram Wallet P2P Market API.

![Python](https://img.shields.io/badge/python-3.10%2B-blue)
![License](https://img.shields.io/badge/license-MIT-green)

## Table of Contents

- [Installation](#installation)
- [Quick Start](#quick-start)
- [Error Handling](#error-handling)
- [Official API Documentation](#official-api-documentation)
- [License](#license)


## Installation

```bash
pip install git+https://github.com/EntireMusic/tgwallet.git
```
---

## Quick Start

```python
import asyncio
from tgwallet import WalletP2PClient

async def main():
    async with WalletP2PClient(api_key="YOUR_API_KEY") as client:
        async for item in client.get_buy_items(limit=10):
            print(item)

asyncio.run(main())
```


## Error Handling

```python
from tgwallet import WalletP2PClient
from tgwallet.exceptions import APIError

try:
    ...
except APIError as e:
    print(e)
```

---

## Official API Documentation

This library is a wrapper around the official Telegram [Wallet P2P API](https://docs.wallet.tg/p2p)

---

## License

This project is licensed under the MIT License – see the [LICENSE](LICENSE) file for details.
