CryptoCloud Python Client
This is a Python client for CryptoCloud API, this package is a work-in-progress client, not covering all the endpoints of the official API, but providing the basics to get started with CryptoCloud invoices. The official documentation for all API endpoints is available here.
Feel free to drop your suggestions, comments and report bugs/issues you had using this package.
Supported endpoints
- Invoice Creation,
POST https://api.cryptocloud.plus/v2/invoice/create - Invoice Cancellation,
POST https://api.cryptocloud.plus/v2/invoice/merchant/canceled - Invoice information,
POST https://api.cryptocloud.plus/v2/invoice/merchant/info - Statistics,
POST https://api.cryptocloud.plus/v2/invoice/merchant/statistics
Installation
Normal installation
pip install crypto-cloud-py
Development installation
git clone https://github.com/jpleorx/crypto-cloud-py.git
cd crypto-cloud-py
pip install --editable .
How to use
First of all make sure you got your API key from CryptoCloud
After you got your API key follow this basic example
from crypto_cloud_py import CryptoCloudApi
# Initialize API
API_KEY = 'XXX'
SHOP_ID = 'YYY'
api = CryptoCloudApi(api_key=API_KEY)
# Create new invoice
new_invoice = api.invoice_create(shop_id=SHOP_ID, amount=100, currency='EUR', order_id='12345678', email='mail@example.com', locale='de')
# Check invoice status
invoice_statuses = api.invoices_info([new_invoice.uuid])
# Cancel invoice
api.invoice_cancel(new_invoice.uuid)
# Check statistics
stats = api.invoice_statistics(start='01.12.2024', end='20.01.2025')
Links
In case you’d like to check my other work or contact me:
Metadata
Release files for crypto-cloud-py 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crypto-cloud-py-0.2.tar.gz | 11.8 kB | Without provenance | Details for crypto-cloud-py-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crypto_cloud_py-0.2-py3-none-any.whl | Python 3 | none | any | Details for crypto_cloud_py-0.2-py3-none-any.whl |
Total release size: 25.6 kB
Release files / crypto-cloud-py-0.2.tar.gz
| Download URL | crypto-cloud-py-0.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1da9722d8d440fbd318ebe523afce02a2538ff7ab3b99c15aab1d781477a6a03
|
|
BLAKE2b-256 checksum How to use checksums |
b71949c25c177e1bacec2be619e5650271e6cbaece52f0b787a9f1c8edeaf64f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.6
|
Release files / crypto_cloud_py-0.2-py3-none-any.whl
| Download URL | crypto_cloud_py-0.2-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ced537161110684450a83a6d1b9c7160e51f8273b84477b7f82cb5f6da5be12c
|
|
BLAKE2b-256 checksum How to use checksums |
4c81c7cd7f2e3ff51eba50ae31dc206a70cdb83dd78afd7bc9332442836df8b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.6
|
Security for crypto-cloud-py 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.