Skip to main content

Python client for CryptoCloud API

Project description

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

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:

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

crypto-cloud-py-0.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

crypto_cloud_py-0.2-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file crypto-cloud-py-0.2.tar.gz.

File metadata

  • Download URL: crypto-cloud-py-0.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for crypto-cloud-py-0.2.tar.gz
Algorithm Hash digest
SHA256 1da9722d8d440fbd318ebe523afce02a2538ff7ab3b99c15aab1d781477a6a03
MD5 adb7bde38d14dbc43b7840ea9102cc6b
BLAKE2b-256 b71949c25c177e1bacec2be619e5650271e6cbaece52f0b787a9f1c8edeaf64f

See more details on using hashes here.

File details

Details for the file crypto_cloud_py-0.2-py3-none-any.whl.

File metadata

  • Download URL: crypto_cloud_py-0.2-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for crypto_cloud_py-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ced537161110684450a83a6d1b9c7160e51f8273b84477b7f82cb5f6da5be12c
MD5 09dc213357302ef1edddbeae9cd7900d
BLAKE2b-256 4c81c7cd7f2e3ff51eba50ae31dc206a70cdb83dd78afd7bc9332442836df8b7

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