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.3.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qiwipy-2.0.3-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

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

Hashes for qiwipy-2.0.3.tar.gz
Algorithm Hash digest
SHA256 d3e991bddb9d6321d0157fab656f2e18df2209ca827cdcb6869860ca0802885d
MD5 ae2cee1d20635ec1b077516ac5ffd370
BLAKE2b-256 c915a5a6bb142354285f87c3141e6928a9316cce4b003219063d158a4b331aa1

See more details on using hashes here.

File details

Details for the file qiwipy-2.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for qiwipy-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ab6458a6c0f77deebf10625e7290e067768edfd79b5cf3a7098e97c38573e141
MD5 818d2dd5aa9a8ef11d6a1a87cfab4111
BLAKE2b-256 545f3e4f98302649e40894f810393f5d2aee4617f8af74c37ac18def6b83af13

See more details on using hashes here.

Supported by

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