SAURES API Client
SAURES API client
Stage: Alpha
Installation
- From this repository (
poetryrequired)
git clone https://github.com/Yurzs/saures_api_client.gitcd saures_api_clientpoetry install --no-dev
- From PyPi
pip install saures_api_client
Usage
- You can use all the api methods like they are named in SAURES API docs:
from saures_api_client import SauresAPIClient
async def main():
client = SauresAPIClient("your email", "your password")
objects = await client.user_objects()
...
- Or you can use more user-friendly wrapper around the client:
from saures_api_client import SauresAPIClient
from saures_api_client import types
async def main():
user = SauresAPIClient.get_user("your email", "your password")
locations = await user.get_locations()
# returns typing.List[types.Location]
location = locations[0]
location_controllers = await location.get_controllers()
# returns typing.List[types.Controller]
# so you can easily propagate deeper in entities without
# specifically providing their IDs to the client.
Metadata
Release files for saures-api-client 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| saures_api_client-0.1.2.tar.gz | 6.6 kB | Without provenance | Details for saures_api_client-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| saures_api_client-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for saures_api_client-0.1.2-py3-none-any.whl |
Total release size: 13.9 kB
Release files / saures_api_client-0.1.2.tar.gz
| Download URL | saures_api_client-0.1.2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26028710a50997bcfb4a451ec9c932b7625be7b4654e8ed95f6a846d8709d40f
|
|
BLAKE2b-256 checksum How to use checksums |
68d6e92e0daa58d99258241a070a19d09dff096cd9320273c6d72286cf3df990
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.0 Darwin/21.2.0
|
Release files / saures_api_client-0.1.2-py3-none-any.whl
| Download URL | saures_api_client-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7619ba7b280f716d20946b8e78c9db747028bf82e87af1fc91389d2c692e6ff1
|
|
BLAKE2b-256 checksum How to use checksums |
a5a7c5c55dd8c77478169c512056abfc12d41184d745087992075b51a4d23e90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.0 Darwin/21.2.0
|
Security for saures-api-client 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.