Ruuvi Gateway Client
Client for communicating with Ruuvi Gateway.
Install
Install latest released version
$ python -m pip install ruuvi-gateway-client
Install letest development version from local sources
python -m venv .venv
source .venv/bin/activate
python -m pip install -e .
Example
import asyncio
from ruuvi_gateway_client import gateway
from ruuvi_gateway_client.types import ParsedDatas
STATION_IP = "10.0.0.21"
USERNAME = "username"
PASSWORD = "password"
def print_data(data: ParsedDatas):
for mac, sensor_data in data.items():
print(f'{mac}: {sensor_data}')
async def main():
fetch_result = await gateway.fetch_data(STATION_IP, USERNAME, PASSWORD)
if fetch_result.is_ok():
print_data(fetch_result.value)
else:
print(f'Fetch failed: {fetch_result.value}')
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Changelog
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Licensed under the MIT License.
Metadata
Release files for ruuvi-gateway-client 0.1.0
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 |
|---|---|---|---|---|
| ruuvi-gateway-client-0.1.0.tar.gz | 4.5 kB | Without provenance | Details for ruuvi-gateway-client-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ruuvi_gateway_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ruuvi_gateway_client-0.1.0-py3-none-any.whl |
Total release size: 9.7 kB
Release files / ruuvi-gateway-client-0.1.0.tar.gz
| Download URL | ruuvi-gateway-client-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2bae0b4744f2b6b9aab7ab1786b0ad04eb36de5ae192aa02fca7cbd76bfa6f69
|
|
BLAKE2b-256 checksum How to use checksums |
e52c57008ad0f0ae749aa8e37535251d2c74c635fc89d60b92ca7881012549a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.1
|
Release files / ruuvi_gateway_client-0.1.0-py3-none-any.whl
| Download URL | ruuvi_gateway_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e834eaf5cf04baa1a2139f72fe9aa9a14d9a8a1ead527e614fa821820b57b6e
|
|
BLAKE2b-256 checksum How to use checksums |
19f26f122443ef1cda611d473c36e6bd54dfe5cd1dfbf16bf5672846a0ec0eb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.1
|
Security for ruuvi-gateway-client 0.1.0
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.