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)
```
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
Release history Release notifications | RSS feed
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.3.tar.gz
(13.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
qiwipy-2.0.3-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file qiwipy-2.0.3.tar.gz.
File metadata
- Download URL: qiwipy-2.0.3.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3e991bddb9d6321d0157fab656f2e18df2209ca827cdcb6869860ca0802885d
|
|
| MD5 |
ae2cee1d20635ec1b077516ac5ffd370
|
|
| BLAKE2b-256 |
c915a5a6bb142354285f87c3141e6928a9316cce4b003219063d158a4b331aa1
|
File details
Details for the file qiwipy-2.0.3-py3-none-any.whl.
File metadata
- Download URL: qiwipy-2.0.3-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab6458a6c0f77deebf10625e7290e067768edfd79b5cf3a7098e97c38573e141
|
|
| MD5 |
818d2dd5aa9a8ef11d6a1a87cfab4111
|
|
| BLAKE2b-256 |
545f3e4f98302649e40894f810393f5d2aee4617f8af74c37ac18def6b83af13
|