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
- Add repository secret
PYPI_API_TOKEN(value: your PyPI API token). - Bump version in
python/pyproject.toml. - 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
Release history Release notifications | RSS feed
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.3.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file octoarms_sdk-0.1.3.tar.gz.
File metadata
- Download URL: octoarms_sdk-0.1.3.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42d5c4cccae42349d42971a7dbaa16ada725b7ee25947183541de9b292529ec2
|
|
| MD5 |
db42b08768d43142245dd4598634c0e3
|
|
| BLAKE2b-256 |
8d59e12ed9510ab3bc316243fb4974cc8ffd6dedb187fd5aa0ed3cb62a0e9961
|
File details
Details for the file octoarms_sdk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: octoarms_sdk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e83ac2d81e732fb7bf1dee25d22c5e6452df7fb6b4709b760ac9d71d756e26e7
|
|
| MD5 |
8f6610c358fc1b715092393f99f0fb81
|
|
| BLAKE2b-256 |
7bf6cfd5aa3ff431ff8c1e7595f4c98960ab58cf2cbe605915d9e735abcb9a8e
|