Skip to content

sentinel-official/sentinel-python-sdk

Repository files navigation

sentinel-python-sdk

A Sentinel SDK Written in Python

Install

This is now a PyPi package and can be installed directly with pip:

pip install sentinel-sdk

Packaging Python Projects references:

Development environment:

https://setuptools.pypa.io/en/latest/userguide/development_mode.html

python -m venv venv
pip install --editable .

Please install pre-commit plugin, in order to follow PEP8

pip install pre-commit
pre-commit install

https://pre-commit.com/index.html

Usage example:

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))

Coded with Love by:

NAST0R · GitHub , Tkd-Alex (Alessandro Maggio) · GitHub, (freQniK · GitHub)

Commissioned by MathNodes MathNodes

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages