A Sentinel SDK Written in Python
First install the required dependencies:
sudo apt update
sudo apt install build-essential autoconf automake libtool pkg-config python3-devThis is now a PyPi package and can be installed directly with pip:
pip install sentinel-sdk- https://packaging.python.org/en/latest/tutorials/packaging-projects/
- https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/
python -m venv venv
pip install --editable .Please install pre-commit plugin, in order to follow PEP8
pip install pre-commit
pre-commit installhttps://pre-commit.com/index.html
from sentinel_sdk.sdk import SDKInstance
from sentinel_sdk.types import Status, PageRequest
sdk = SDKInstance("grpc.sentinel.co", 9090)
nodes = sdk.nodes.QueryNodes(Status.ACTIVE)
subscriptions = sdk.subscriptions.QuerySubscriptions(pagination=PageRequest(limit=5000, offset=0, reverse=True))NAST0R · GitHub , Tkd-Alex (Alessandro Maggio) · GitHub, (freQniK · GitHub)
Commissioned by MathNodes MathNodes