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

Uploaded Python 3

File details

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

File metadata

  • Download URL: poh_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 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.1.0.tar.gz
Algorithm Hash digest
SHA256 4f400ba7e7c9a5e5bbfd432923519971e5d058992e2216b72c72989c9ba54861
MD5 4a4ace83bcfc452b79f931f5540a0597
BLAKE2b-256 763d3dc5c0bb6487f46c5f7df105df2c3a7a880e42738d031ac2d0c9c7996d6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: poh_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7db039f09fff6f014593951fe683b4e17ccd29110e807a94757109bbcedebb02
MD5 3a27b329e2aed261b9958d9d86990fa8
BLAKE2b-256 907fcf405601651d85ddb3906ebd484c7f4b987e67b8f013bc7c89fbf11572ae

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