No project description provided
Project description
sentinel
Sentinel is a blockchain data extraction and monitoring tool designed to work with the Bittensor network.
Features:
- Extract extrinsics, events, and hyperparameters from Bittensor blockchain.
- Provides both a Python library and a command-line interface (CLI) for ease of use.
Installation
pip install bittensor-sentinel
Usage
[!IMPORTANT] This package uses ApiVer, make sure to import
sentinel.v1.
As a library
from sentinel.v1.providers.bittensor import bittensor_provider
from sentinel.v1.services.extractors.extrinsics import get_hyperparam_extrinsics
from sentinel.v1.services.sentinel import sentinel_service
provider = bittensor_provider()
service = sentinel_service(provider)
block = service.ingest_block(resolved_block)
for extrinsic in block.extrinsics:
print(extrinsic)
CLI
$ sentinel --help
Usage: sentinel [OPTIONS] COMMAND [ARGS]...
Sentinel CLI - Blockchain data extraction and monitoring tool.
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --format -f [table|json] Output format. [default: table] │
│ --install-completion Install completion for the │
│ current shell. │
│ --show-completion Show completion for the current │
│ shell, to copy it or customize │
│ the installation. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ extrinsics Read extrinsics from a blockchain block. │
│ events Read events from a blockchain block. │
│ hyperparams Read hyperparameters for a subnet at a specific block. │
│ block Block-related commands. │
╰──────────────────────────────────────────────────────────────────────────────╯
Versioning
This package uses Semantic Versioning.
TL;DR you are safe to use compatible release version specifier ~=MAJOR.MINOR in your pyproject.toml or requirements.txt.
Additionally, this package uses ApiVer to further reduce the risk of breaking changes.
This means, the public API of this package is explicitly versioned, e.g. sentinel.v1, and will not change in a backwards-incompatible way even when sentinel.v2 is released.
Internal packages, i.e. prefixed by sentinel._ do not share these guarantees and may change in a backwards-incompatible way at any time even in patch releases.
Development
Pre-requisites:
Ideally, you should run nox -t format lint before every commit to ensure that the code is properly formatted and linted.
Before submitting a PR, make sure that tests pass as well, you can do so using:
nox -t check # equivalent to `nox -t format lint test`
If you wish to install dependencies into .venv so your IDE can pick them up, you can do so using:
uv sync --all-extras --dev
Release process
Run nox -s make_release -- X.Y.Z where X.Y.Z is the version you're releasing and follow the printed instructions.
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
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 bittensor_sentinel-0.1.8.tar.gz.
File metadata
- Download URL: bittensor_sentinel-0.1.8.tar.gz
- Upload date:
- Size: 177.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe5841e407b023b8c3c8e45247ed614f665bd8584b5479c7fed7e35bdee2059b
|
|
| MD5 |
bba37388a12401e55ce39cbf782cc6e8
|
|
| BLAKE2b-256 |
936192b673dcab82923779e886258cba1dad162b20e0d68112844d71aa79fe4a
|
Provenance
The following attestation bundles were made for bittensor_sentinel-0.1.8.tar.gz:
Publisher:
publish.yml on bittensor-church/sentinel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bittensor_sentinel-0.1.8.tar.gz -
Subject digest:
fe5841e407b023b8c3c8e45247ed614f665bd8584b5479c7fed7e35bdee2059b - Sigstore transparency entry: 868380407
- Sigstore integration time:
-
Permalink:
bittensor-church/sentinel@455489fbc2c8882eecc5dca74fc959ba57bf5df0 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/bittensor-church
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@455489fbc2c8882eecc5dca74fc959ba57bf5df0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bittensor_sentinel-0.1.8-py3-none-any.whl.
File metadata
- Download URL: bittensor_sentinel-0.1.8-py3-none-any.whl
- Upload date:
- Size: 41.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc7956d861c74952032a4c2a46e137fed9a42c825606052b22448c0ea3c2cf12
|
|
| MD5 |
c9d4534d5c9e6ed532cf203d48cbbd42
|
|
| BLAKE2b-256 |
9c8f18296bff0192875bf3460881c7ef704b4de64ee5169330d0afa1099bdd86
|
Provenance
The following attestation bundles were made for bittensor_sentinel-0.1.8-py3-none-any.whl:
Publisher:
publish.yml on bittensor-church/sentinel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bittensor_sentinel-0.1.8-py3-none-any.whl -
Subject digest:
bc7956d861c74952032a4c2a46e137fed9a42c825606052b22448c0ea3c2cf12 - Sigstore transparency entry: 868380414
- Sigstore integration time:
-
Permalink:
bittensor-church/sentinel@455489fbc2c8882eecc5dca74fc959ba57bf5df0 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/bittensor-church
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@455489fbc2c8882eecc5dca74fc959ba57bf5df0 -
Trigger Event:
push
-
Statement type: