pycoinpayments
================================
Overview
Python API client for the CoinPayments <https://www.coinpayments.net>
Note: This is not the official python client for the Coinpayments API
Documentation
Please see https://www.coinpayments.net/api.php for the most up-to-date documentation for the Paystack API.
Installation
pip install pycoinpayments
Example
You can take a look at the sample.py file provided in the repo.
A basic usage would be:
from pycoinpayments import CoinPayments
create_transaction_params = {
'amount': 10,
'currency1': 'USDT.BEP20',
'currency2': 'USDT.BEP20',
'buyer_email': 'confiyobo@gmail.com'
}
cp = CoinPayments(
'PrivateKey',
'PublicKey')
transaction = cp.create_transaction(create_transaction_params)
if transaction['error'] == 'ok':
print(transaction['amount'])
print(transaction['address'])
else:
print(transaction['error'])
Metadata
Release files for pycoinpayments 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycoinpayments-1.0.0.tar.gz | 5.3 kB | Details |
Release files / pycoinpayments-1.0.0.tar.gz
| Download URL | pycoinpayments-1.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c341b4b49ccc80709d9367536c885d772b9b22ed4a0ca23141fd2c361462dfa3
|
|
BLAKE2b-256 checksum How to use checksums |
6df245e08ad8c4f435a4654face315ff53c1277a6c546ec0ed9b918ccc105a8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2
|