Skip to main content

Python SDK for CloudHands API

Project description

CloudHands SDK

CloudHands SDK is a Python library for interacting with the CloudHands API. It provides tools for authentication, charging events, and retrieving transaction details.

Installation

pip install cloudhands

Usage

# CloudHands is your more general interface with cloudhands.ai and its apis
ch = CloudHands(api_key=YOUR_API_KEY)
ch.text_post(title="Posting Sample Usage", content="This shows how you can use the SDK to make a post on cloudhands.ai")

# CloudHandsPayment is used for dealing with a particular transaction/auth flow for a user to pay you
chPay = CloudHandsPayment(author_key=YOUR_AUTHOR_KEY)
auth_url = chPay.get_authorization_url()
# you must give this auth url to the user you want to pay you
# they will visit and be prompted to confirm the auth, then will be given a code to return to you with
chPay.exchange_code_for_token(code)
# Now authenticated, can charge cloudhands credits for the user
result = chPay.charge(charge=1.0, event_name="Sample cloudhands charge")

Publish on pypi

pip install setuptools wheel twine rm -rf src/cloudhands.egg-info/ dist python -m build twine upload dist/*

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

cloudhands-1.0.5.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

cloudhands-1.0.5-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file cloudhands-1.0.5.tar.gz.

File metadata

  • Download URL: cloudhands-1.0.5.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for cloudhands-1.0.5.tar.gz
Algorithm Hash digest
SHA256 a09933efffefc4f9369c6277d0dd6698cfc48cbbb0c164c75eb66151aa090ed2
MD5 2b4ee7587ea8bba9a535af435a4a7d2f
BLAKE2b-256 ae4721837dae83399f7ffe8011eab30f9a2ad0d3a3346121d3e74265d4b503bf

See more details on using hashes here.

File details

Details for the file cloudhands-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: cloudhands-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for cloudhands-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6915c3d1adef429ccb7809f16519c05de1b58a81b281f452d6e11631588e985b
MD5 5390c4b3b1cb2ae5506b90e7c93c0ea0
BLAKE2b-256 92bf0e0055298b439a7b1c0902909665c5d64e93dbaa150b48b6ed30b9291084

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