Skip to main content

IDUN Guardian mock library / client

This is a client library for the IDUN Guardian which mocks out the physical device, intended for development and building tests for the IDUN Guardian. The data_generator generates random device packets. The client is a command-line utility that sends them to the Guardian API.

Features

  • Mock device data generator
  • Send mocked device data to a Cloud endpoint

Sending mock data to the cloud API (client)

You can start sending mock data to the cloud API by installing the poetry project and running the idun_mock.client module:

# at this directory
poetry install
poetry run python -m idun_mock.client -w <websocket_url>

The websocket URL is where the data should be sent. Change the generator parameters according to what scenario you want to simulate (look in idun_mock/client/__main__.py).

Troubleshooting: sending mock data to Kinesis, bypassing the API

If you have IDUN AWS credentials, you can also send mock data directly to Kinesis, bypassing the API:

# Set these environment variables:
#   AWS_ACCESS_KEY_ID
#   AWS_SECRET_ACCESS_KEY
#   AWS_DEFAULT_REGION

poetry run python -m idun_mock.client -k <kinesis_stream_name> [-e <aws_endpoint>]

Metadata

Release files for idun_mock 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for idun_mock 0.1.5
File Size Uploaded Provenance
idun_mock-0.1.5.tar.gz 21.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for idun_mock 0.1.5
File Interpreter ABI Platform
idun_mock-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 44.1 kB

Release files / idun_mock-0.1.5.tar.gz

Download URL idun_mock-0.1.5.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ed9bc0ba9cd7d18e05891030b744f9137d2bdaee6cb3bed41162b7419767fb53
BLAKE2b-256 checksum
How to use checksums
edf513dfe05a2f7fd417984eee625f5fde8c94146fb1e076737e64aa2b35e421
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure

Release files / idun_mock-0.1.5-py3-none-any.whl

Download URL idun_mock-0.1.5-py3-none-any.whl
Size 22.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7dc7a7f95165e8558bc151c28fc056178d6793fb7cf87da6538b9d7b5ce028de
BLAKE2b-256 checksum
How to use checksums
e66f928fef7abca7948ccb4ad65c88f3700881c83533a20cce98e79ec41c52b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure

Security for idun_mock 0.1.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page