Add your description here
Project description
Mooring Data Generator
A simple script to generate fake mooring data for use in a hackathon. This script will send data payloads to and endpoint to simulate the data which might exist.
These will be http POST queries to the url provided as an argument at run time.
The script will run forever until the user sends a Ctrl+C command to end the script.
Usage
With UV (recommended)
If you don't have UV on your system, read the install instructions for UV
uvx mooring-data-generator http://127.0.0.1:8000/my/endpoint/
[!IMPORTANT] replace
http://127.0.0.1:8000/my/endpoint/with the appropriate url for your system
Vanilla python (If you don't want UV)
Install the package
pip install -U mooring-data-generator
Running the package
mooring-data-generator http://127.0.0.1:8000/my/endpoint/
[!IMPORTANT] replace
http://127.0.0.1:8000/my/endpoint/with the appropriate url for your system
Testing data is being sent
There's a helper application included in this package to allow you to check that the data is being sent.
mooring-data-receiver will display to the console all http traffic it receives.
mooring-data-receiver
By default it will run listening to any traffic 0.0.0.0 on port 8000
You can adjust this if needed by using a commend like
mooring-data-receiver --host 127.0.0.1 --port 5000
Troubleshooting
Command not found
If you are having trouble with the command not being found, you can attempt to run it as a module calling python
python -m mooring-data-generator http://127.0.0.1:8000/my/endpoint/
Pip not found
If pip can't be found on your system.
First, make sure you have Python installed.
python --version
you can call pip from python directly as a module.
python -m pip install -U mooring-data-generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mooring_data_generator-0.1.0a5.tar.gz.
File metadata
- Download URL: mooring_data_generator-0.1.0a5.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b1af29e1a16d74e2a5fe04cce3b26d1d8e62ed58c521d0328565c8c9a13256f
|
|
| MD5 |
73667868b0ce711ddf6aca13e3aea784
|
|
| BLAKE2b-256 |
dee0c0562b7b1f5708e1e73b35dd09b1c5fa2f1d32645cb3f1d4f216d23c9d33
|
File details
Details for the file mooring_data_generator-0.1.0a5-py3-none-any.whl.
File metadata
- Download URL: mooring_data_generator-0.1.0a5-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6ff941eeeb7a85848ca30ffbf519a0a52ed634b1b5db39922733e1eaf1ad4be
|
|
| MD5 |
89082ba30e1f67970821f3c15ba34ec7
|
|
| BLAKE2b-256 |
72151d37062e5d9351cc3d71bce66c3565e4ccab2c57dac3f858464d7db95c48
|