Skip to main content

Python collector SDK for Chainbase task runtime

Project description

octoarms-sdk

Python SDK for task collectors running on the Chainbase task platform.

Install

pip install octoarms-sdk

Publish to PyPI

Local build and check

python -m pip install --upgrade build twine
python -m build
twine check dist/*

Manual upload

twine upload dist/*

GitHub Actions auto publish

  1. Add repository secret PYPI_API_TOKEN (value: your PyPI API token).
  2. Bump version in python/pyproject.toml.
  3. Create and push tag with py-v* format, for example:
git tag py-v0.1.1
git push origin py-v0.1.1

Usage

from octoarms_sdk import TaskContext, build_data_api_upsert_fn

upsert_fn = build_data_api_upsert_fn(
    capability_endpoint="http://chainbase-block-scanner-fetcher-test-svc",
    ephemeral_token="token-abc",
)

ctx = TaskContext(
    run_id="123",
    task_name="demo_task",
    task_version="v0.1.0",
    upsert=upsert_fn,
)

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

octoarms_sdk-0.1.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

octoarms_sdk-0.1.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file octoarms_sdk-0.1.2.tar.gz.

File metadata

  • Download URL: octoarms_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for octoarms_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4ff8732c983d85ecaf519f0b539b085840ec94e33df36aeab1ae877a3fd92b71
MD5 8ab974de576d905ed00c9ef5f7d074f4
BLAKE2b-256 7060f849edad6e6139d593e04522020709e4a72803828a4467a2bd69e71e9544

See more details on using hashes here.

File details

Details for the file octoarms_sdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: octoarms_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for octoarms_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d57a05a73dc33ad07133c39b3801cccd9ac8733d8d050c8a7740e54d5fad99a9
MD5 1048a7161c5f565a707ec3a346fbea3a
BLAKE2b-256 37da409e672441db4cdbb511ebb79385f06477df873d5caa6f6930d29bc92607

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