A Sentinel SDK Written in Python
Project description
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:
- https://packaging.python.org/en/latest/tutorials/packaging-projects/
- https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/
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](freQniK · GitHub)
Commissioned by MathNodes MathNodes
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sentinel_sdk-0.0.2.tar.gz
(29.7 kB
view hashes)
Built Distribution
Close
Hashes for sentinel_sdk-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c0c7978b046e5560a9ae98feb13076ca1d68a20262ba4f5812ef97da55cf58d |
|
MD5 | e78918e218e27d397e8b13a501c651d7 |
|
BLAKE2b-256 | badb6c14afa12f1939bf6f36e0e3edd1f8453035224a64d57bbcd7746f587aab |