Skip to main content

Mock a real IDUN Guardian device for testing purposes

Project description

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>]

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

idun_mock-0.1.5.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

idun_mock-0.1.5-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file idun_mock-0.1.5.tar.gz.

File metadata

  • Download URL: idun_mock-0.1.5.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure

File hashes

Hashes for idun_mock-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ed9bc0ba9cd7d18e05891030b744f9137d2bdaee6cb3bed41162b7419767fb53
MD5 e9261704b6c9b8ac2871b8fa735364ba
BLAKE2b-256 edf513dfe05a2f7fd417984eee625f5fde8c94146fb1e076737e64aa2b35e421

See more details on using hashes here.

File details

Details for the file idun_mock-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: idun_mock-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure

File hashes

Hashes for idun_mock-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7dc7a7f95165e8558bc151c28fc056178d6793fb7cf87da6538b9d7b5ce028de
MD5 f10e809413e09a81aaed76b0ea55ba9f
BLAKE2b-256 e66f928fef7abca7948ccb4ad65c88f3700881c83533a20cce98e79ec41c52b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page