Python: Moving Intelligence
Home Assistant Python 3 API wrapper for Moving Intelligence asset and fleet management
About
This package allows the Home Assistant integration 'moving_intelligence' to get get data from https://movingintelligence.com/en/.
NOTE: You need a login account together with an apikey to be able to use it.
Installation
pip3 install pymovingintelligence_ha
Example code
#!/usr/bin/env python3
from pymovingintelligence_ha import MovingIntelligence
from pymovingintelligence_ha.utils import InvalidAuthError, InvalidPermissionsError
import asyncio
import logging
from aiohttp import ClientSession
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
async def async_main():
api = MovingIntelligence(
username="YOUR USERNAME",
apikey="YOUR API-KEY"
)
try:
devices = await api.get_devices()
for device in devices:
print(device.data)
except InvalidPermissionsError:
logger.error("No permission")
except:
logger.error("ConnectionError: Could not connect to MovingIntelligence")
asyncio.run(async_main())
Metadata
Release files for pymovingintelligence-ha 0.0.11
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 |
|---|---|---|---|---|
| pymovingintelligence_ha-0.0.11.tar.gz | 6.3 kB | Without provenance | Details for pymovingintelligence_ha-0.0.11.tar.gz |
Release files / pymovingintelligence_ha-0.0.11.tar.gz
| Download URL | pymovingintelligence_ha-0.0.11.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1e586aea57403a0885a71433e9d671634ffbc92b81407a6533eb811123a18cb
|
|
BLAKE2b-256 checksum How to use checksums |
ed72bdada5ee8a272e96fd3197e807b2835bd24d2dda9fde909763ccfd17062c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
|
Security for pymovingintelligence-ha 0.0.11
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.