Skip to main content

Proof of Human SDK — scan wallets, poll async jobs, access signal methods

Project description

poh-sdk

Python SDK for the Proof of Human API.

Install

pip install poh-sdk

Quick start

import asyncio
from poh_sdk import PohClient

async def main():
    async with PohClient("https://proofofhuman.ge") as poh:
        result = await poh.scan("0xabc...")
        print(result.result)   # True = human, False = bot, None = inconclusive

asyncio.run(main())

Sync usage

from poh_sdk import PohClient

poh = PohClient.sync("https://proofofhuman.ge")
result = poh.scan("0xabc...")

Bulk scanning

async with PohClient("https://proofofhuman.ge") as poh:
    job = await poh.scan_bulk(["0xaaa", "0xbbb", "0xccc"])

    async for snap in poh.watch_job(job.job_id):
        print(f"{snap.percent:.0f}% done")

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

poh_sdk-0.2.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

poh_sdk-0.2.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file poh_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: poh_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for poh_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 52117ab97ac2254f40f1808ba20eb7f3a2fd5138287b29a7f00895929247a1ee
MD5 394713082927c0d724e7e643f29c94b1
BLAKE2b-256 7b69a799954e61e80aba8c7848e824a89b3aa8b5d588296e72827ae906dd2a07

See more details on using hashes here.

File details

Details for the file poh_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: poh_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for poh_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66492ab5be65f2b5e073d964a723c1e92c574750b1ba4a6c0307e8de0aa6d8cc
MD5 73a458d98188e6eee0d5e849aeaf7ba5
BLAKE2b-256 d707667477d7acdb78808632775d79103b5bfa45bed86344c8aab5092a281fc6

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