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 .
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.1.tar.gz
(4.0 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.1.tar.gz.
File metadata
- Download URL: octoarms_sdk-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a3f055e28c7c2bf21794833f0e6ec1bcecf894f4f2264e80a65ecf7825bce7d
|
|
| MD5 |
f27d4f867bff0d617cf103685da63477
|
|
| BLAKE2b-256 |
d721752d3186b04ffb624963042802724aeeb91c7a45be1c66b0490d1b61c806
|
File details
Details for the file octoarms_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: octoarms_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dff13dca9c450e9541fbc2631e866de961d04fdcc8d1593abf0e8b9285b39031
|
|
| MD5 |
7f577e4d7727de7a0433e8df487631f8
|
|
| BLAKE2b-256 |
8b972847263b5d8d53f1c233c8c4f3067b0c38db08d61f8d29ab5d9ca3cb47b9
|