pyCryptomusAPI 0.1.0__tar.gz → 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pycryptomusapi-1.0.0/PKG-INFO +68 -0
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/README.md +44 -34
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/pyCryptomusAPI/api.py +795 -624
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/pyCryptomusAPI/cryto_types.py +398 -348
- pycryptomusapi-1.0.0/pyCryptomusAPI/tests.py +241 -0
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/pyCryptomusAPI/version.py +1 -1
- pycryptomusapi-1.0.0/pyCryptomusAPI.egg-info/PKG-INFO +68 -0
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/pyCryptomusAPI.egg-info/SOURCES.txt +1 -0
- pycryptomusapi-1.0.0/pyCryptomusAPI.egg-info/requires.txt +1 -0
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/setup.py +30 -30
- pyCryptomusAPI-0.1.0/PKG-INFO +0 -49
- pyCryptomusAPI-0.1.0/pyCryptomusAPI/tests.py +0 -56
- pyCryptomusAPI-0.1.0/pyCryptomusAPI.egg-info/PKG-INFO +0 -49
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/LICENSE +0 -0
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/MANIFEST.in +0 -0
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/pyCryptomusAPI/__init__.py +0 -0
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/pyCryptomusAPI.egg-info/dependency_links.txt +0 -0
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/pyCryptomusAPI.egg-info/top_level.txt +0 -0
- {pyCryptomusAPI-0.1.0 → pycryptomusapi-1.0.0}/setup.cfg +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyCryptomusAPI
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Python implementation of Cryptomus (https://cryptomus.com) and Heleket (https://heleket.com) pubilc API
|
|
5
|
+
Home-page: https://github.com/Badiboy/pyCryptomusAPI
|
|
6
|
+
Author: Badiboy
|
|
7
|
+
License: MIT license
|
|
8
|
+
Keywords: Crypto Pay API Cryptomus Heleket
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: requests
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: classifier
|
|
16
|
+
Dynamic: description
|
|
17
|
+
Dynamic: description-content-type
|
|
18
|
+
Dynamic: home-page
|
|
19
|
+
Dynamic: keywords
|
|
20
|
+
Dynamic: license
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
Dynamic: requires-dist
|
|
23
|
+
Dynamic: summary
|
|
24
|
+
|
|
25
|
+
[](https://pypi.python.org/pypi/pyCryptomusAPI)
|
|
26
|
+
[](https://pypi.python.org/pypi/pyCryptomusAPI)
|
|
27
|
+
[](https://pypi.org/project/pyCryptomusAPI/)
|
|
28
|
+
|
|
29
|
+
# <p align="center">pyCryptomusAPI</p>
|
|
30
|
+
Python implementation of [Cryptomus](https://cryptomus.com) and [Heleket](https://heleket.com) public [API](https://doc.cryptomus.com)
|
|
31
|
+
|
|
32
|
+
If you found a bug or have a feature request, just create an issue!
|
|
33
|
+
|
|
34
|
+
# Installation
|
|
35
|
+
Installation using pip (a Python package manager):
|
|
36
|
+
```
|
|
37
|
+
$ pip install pyCryptomusAPI
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
# Usage
|
|
41
|
+
Everything is as simple as the [API](https://doc.cryptomus.com/) itself.
|
|
42
|
+
1. Create **pyCryptomusAPI** or **pyHeleketAPI** instance
|
|
43
|
+
2. Access API methods in pythonic notation (e.g. "Creating an invoice" -> create_invoice())
|
|
44
|
+
3. Most methods return result as correspondent class, so you can access data as fields
|
|
45
|
+
```
|
|
46
|
+
from pyCryptomusAPI import pyCryptomusAPI
|
|
47
|
+
client = pyCryptomusAPI(
|
|
48
|
+
"xxxx-xxxx-xxxx-xxxx-xxxx", # Merchand UUID
|
|
49
|
+
payment_api_key="xxxxxxx", # Payment API key (for payment methods)
|
|
50
|
+
payout_api_key="xxxxxxx") # Payout API key (for payout methods)
|
|
51
|
+
balance = client.balance()
|
|
52
|
+
for item in balance.merchant:
|
|
53
|
+
print("Merchant balance: {} {}".format(item.balance, item.currency_code))
|
|
54
|
+
```
|
|
55
|
+
Available methods include:
|
|
56
|
+
|
|
57
|
+
* Payments: create_invoice(), create_wallet(), payment_qr_code(), wallet_qr_code(),
|
|
58
|
+
block_wallet(), block_wallet_refund(), payment_information(), refund(),
|
|
59
|
+
resend_payment_webhook(), test_payment_webhook(), payment_history(),
|
|
60
|
+
payment_services(), mark_payment_as_paid()
|
|
61
|
+
* Payouts: create_payout(), payout_information(), payout_history(), payout_services(),
|
|
62
|
+
transfer_to_personal(), transfer_to_business(), test_payout_webhook()
|
|
63
|
+
* Recurring payments: create_recurrence(), recurrence_information(),
|
|
64
|
+
recurrence_history(), cancel_recurrence()
|
|
65
|
+
* Other: balance()
|
|
66
|
+
|
|
67
|
+
# Exceptions
|
|
68
|
+
Exceptions are raised using pyCryptomusAPIException class.
|
|
@@ -1,34 +1,44 @@
|
|
|
1
|
-
[](https://pypi.python.org/pypi/pyCryptomusAPI)
|
|
2
|
-
[](https://pypi.python.org/pypi/pyCryptomusAPI)
|
|
3
|
-
[](https://pypi.org/project/pyCryptomusAPI/)
|
|
4
|
-
|
|
5
|
-
# <p align="center">pyCryptomusAPI</p>
|
|
6
|
-
Python implementation of [Cryptomus](https://cryptomus.com) public [API](https://doc.cryptomus.com)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# Installation
|
|
11
|
-
Installation using pip (a Python package manager):
|
|
12
|
-
```
|
|
13
|
-
$ pip install pyCryptomusAPI
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
# Usage
|
|
17
|
-
Everything is as simple as the [API](https://
|
|
18
|
-
1. Create pyCryptomusAPI instance
|
|
19
|
-
2. Access API methods in pythonic notation (e.g. "Creating an invoice" -> create_invoice())
|
|
20
|
-
3. Most methods return result as correspondent class, so you can access data as fields
|
|
21
|
-
```
|
|
22
|
-
from pyCryptomusAPI import pyCryptomusAPI
|
|
23
|
-
client = pyCryptomusAPI(
|
|
24
|
-
"xxxx-xxxx-xxxx-xxxx-xxxx", # Merchand UUID
|
|
25
|
-
payment_api_key="xxxxxxx", # Payment API key (for payment methods)
|
|
26
|
-
payout_api_key="xxxxxxx") # Payout API key (for payout methods)
|
|
27
|
-
balance = client.balance()
|
|
28
|
-
for item in balance.merchant:
|
|
29
|
-
print("Merchant balance: {} {}".format(item.balance, item.currency_code))
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
[](https://pypi.python.org/pypi/pyCryptomusAPI)
|
|
2
|
+
[](https://pypi.python.org/pypi/pyCryptomusAPI)
|
|
3
|
+
[](https://pypi.org/project/pyCryptomusAPI/)
|
|
4
|
+
|
|
5
|
+
# <p align="center">pyCryptomusAPI</p>
|
|
6
|
+
Python implementation of [Cryptomus](https://cryptomus.com) and [Heleket](https://heleket.com) public [API](https://doc.cryptomus.com)
|
|
7
|
+
|
|
8
|
+
If you found a bug or have a feature request, just create an issue!
|
|
9
|
+
|
|
10
|
+
# Installation
|
|
11
|
+
Installation using pip (a Python package manager):
|
|
12
|
+
```
|
|
13
|
+
$ pip install pyCryptomusAPI
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
# Usage
|
|
17
|
+
Everything is as simple as the [API](https://doc.cryptomus.com/) itself.
|
|
18
|
+
1. Create **pyCryptomusAPI** or **pyHeleketAPI** instance
|
|
19
|
+
2. Access API methods in pythonic notation (e.g. "Creating an invoice" -> create_invoice())
|
|
20
|
+
3. Most methods return result as correspondent class, so you can access data as fields
|
|
21
|
+
```
|
|
22
|
+
from pyCryptomusAPI import pyCryptomusAPI
|
|
23
|
+
client = pyCryptomusAPI(
|
|
24
|
+
"xxxx-xxxx-xxxx-xxxx-xxxx", # Merchand UUID
|
|
25
|
+
payment_api_key="xxxxxxx", # Payment API key (for payment methods)
|
|
26
|
+
payout_api_key="xxxxxxx") # Payout API key (for payout methods)
|
|
27
|
+
balance = client.balance()
|
|
28
|
+
for item in balance.merchant:
|
|
29
|
+
print("Merchant balance: {} {}".format(item.balance, item.currency_code))
|
|
30
|
+
```
|
|
31
|
+
Available methods include:
|
|
32
|
+
|
|
33
|
+
* Payments: create_invoice(), create_wallet(), payment_qr_code(), wallet_qr_code(),
|
|
34
|
+
block_wallet(), block_wallet_refund(), payment_information(), refund(),
|
|
35
|
+
resend_payment_webhook(), test_payment_webhook(), payment_history(),
|
|
36
|
+
payment_services(), mark_payment_as_paid()
|
|
37
|
+
* Payouts: create_payout(), payout_information(), payout_history(), payout_services(),
|
|
38
|
+
transfer_to_personal(), transfer_to_business(), test_payout_webhook()
|
|
39
|
+
* Recurring payments: create_recurrence(), recurrence_information(),
|
|
40
|
+
recurrence_history(), cancel_recurrence()
|
|
41
|
+
* Other: balance()
|
|
42
|
+
|
|
43
|
+
# Exceptions
|
|
44
|
+
Exceptions are raised using pyCryptomusAPIException class.
|