Skip to main content

Python Qiwi API Wrapper

Project description

# pyQiwi
Python QIWI API Wrapper

## Установка
`pip install -U qiwipy`
или
`pip install git+https://github.com/mostm/pyqiwi.git`

## Использование
```python
import pyqiwi
wallet = pyqiwi.Wallet(token='', number='79001234567')
```

## Быстрый туториал

#### Получить текущий баланс
```python
print(wallet.balance(643))
```

#### Отправка платежа
```python
payment = wallet.send(id=99, recipient='79001234567', amount=1.11, comment='Привет!')
example = 'Payment is {0}\nRecipient: {1}\nPayment Sum: {2}'.format(
payment.transaction['state']['code'], payment.fields['account'], payment.sum)
print(example)
```

#### Получить комиссию для платежа
```python
commission = wallet.commission(pid=99, recipient='79001234567', amount=1.11)
print(commission.qw_commission.amount)
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qiwipy-2.0.1.tar.gz (13.2 kB view hashes)

Uploaded Source

Built Distribution

qiwipy-2.0.1-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page