Metadata-Version: 2.4
Name: qrispy
Version: 0.1.0
Summary: Simple QRIS Python SDK for Indonesia
Author-email: Ajang Rahmat <ajangrahmat@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/ajangrahmat/qrispy
Project-URL: Repository, https://github.com/ajangrahmat/qrispy
Project-URL: Documentation, https://github.com/ajangrahmat/qrispy#readme
Keywords: qris,indonesia,payment,sdk
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Dynamic: license-file

# Qrispy

Simple Python SDK for QRIS payments in Indonesia.

## Features

- Easy to use QRIS payment integration
- Support for creating QRIS codes
- Check account balance
- Handles both success and error responses gracefully

## Installation

```bash
pip install qrispy
```

## Quick Start

```python
from qrispy import Mayar

# Initialize the API client
api = Mayar("YOUR_API_KEY")

# Create a QRIS code
qris = api.create_qris(10000)  # amount in rupiah
if qris.status_code == 200:
    print(qris.url)  # QRIS image URL
else:
    print(f"Error: {qris.message}")

# Check balance
balance = api.balance()
if balance.status_code == 200:
    print(f"Balance: {balance.balance}")
else:
    print(f"Error: {balance.message}")
```

## Response Format

All API responses return an `APIResponse` object with the following attributes:

- `status_code`: HTTP status code from the API
- `message`: Response message from the API
- `data`: Dictionary containing the response data
- Dynamic attributes from the response (e.g., `url`, `amount`, `balance`, etc.)

## License

MIT License - see LICENSE file for details

## Author

Ajang Rahmat (ajangrahmat@gmail.com)
