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.6.tar.gz (9.4 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.6-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloudhands-1.0.6.tar.gz
  • Upload date:
  • Size: 9.4 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.6.tar.gz
Algorithm Hash digest
SHA256 7a5f661e349e47b1f5edffdb7c296195aabfb96f5e18472756e4096209a2ce2b
MD5 d0d59ad465f378b7d036696cf7efcfd3
BLAKE2b-256 1f228c016451d2d63412b9ad0f9ae550a1b6b06565abd32fd3975d782b04253f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cloudhands-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a752d232811e27526a8d1ef9c30b20f07b435be98c202fc7f48fcc5675e08282
MD5 1144ebb4c6e535ac56dc4501ecce66bf
BLAKE2b-256 f41602bb7e0927ea00ce5308928489ecae93f894d8969f81548db4a176a2ae1f

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