Skip to main content

BotConduct SDK — Declare intent. Sign. Build reputation.

Project description

BotConduct SDK

Declare intent. Sign. Build reputation.

import botconduct as bcs

response = bcs.get("https://api.example.com/data", purpose="research")

One line changed in your code. The SDK reads the site's contract, builds a declaration, signs with Ed25519, and includes it in every request.

Install

pip install botconduct

Quick start

import botconduct as bcs

# Optional: set your operator name
bcs.configure(operator="MyCompany")

# Make requests — declaration is automatic
response = bcs.get("https://api.example.com/data", purpose="research")

First run generates an Ed25519 keypair at ~/.bcs/. The SDK auto-reads the site's contract, builds a scope declaration, signs it, and includes it as X-BCS-Declaration header.

License

Apache 2.0

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

botconduct-1.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

botconduct-1.0.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file botconduct-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for botconduct-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ef1597b343179e9ab86f8bce9e93342f4451f77fc6be45cb04a6569ee0ee3e56
MD5 9f4762ce0b601569fe48a20582f7f834
BLAKE2b-256 86e1e588734d5d8ba78ea1d96feabcf993c31611a7113a421b677842f9958c37

See more details on using hashes here.

File details

Details for the file botconduct-1.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for botconduct-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71bfc370ecb1a72ed463d2ec7fffa91b856c2049ac51e1ce4f6bb04b710cda70
MD5 3df862b2ef8e95d8770c5c3507f7ddf5
BLAKE2b-256 a4e0af9b49eef4fcfb1247287c5043eea888111452e86a4bac5c83e806f42824

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