Skip to main content

Wiresense.py

wiresense.py

made with love asyncio build status pypi version pypi downloads

Client libary for Wiresense

🛠️Features

  • Send data to the wiresense frontend
  • Works with almost every sensor
  • Automaticly saved data into csv files

📖Usage

Install the libary with pip:

pip install wiresense

Import the libary and configure it

from wiresense import Wiresense

await Wiresense.config({
    "port": 8080
})

Setup a new sensor (group)

def readSensorData():
    # Replace with you actual sensor reading logic
    return {
        "Pressure": random.randint(0, 10),
        "Humidity": random.randint(0, 10),
        "Temperature": random.randint(0, 10),
    }

sensor_1 = Wiresense('Fake-BME280', readSensorData, './data/sensor1_data.csv')

Execute a sensor (Send to frontend and save to file)

await sensor_1.execute()

Please note that Wiresense is an asynchronous library and requires execution within an asyncio event loop. Make sure to run the main function using asyncio.run() or within an existing asyncio application.

📜License

MIT

✍️Authors

Metadata

Release files for wiresense 1.0.2

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

Source distribution (sdist)

Source distribution for wiresense 1.0.2
File Size Uploaded
wiresense-1.0.2.tar.gz 7.9 kB Details

Built distribution (wheel)

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

Total release size: 13.6 kB

Release files / wiresense-1.0.2.tar.gz

Download URL wiresense-1.0.2.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0adc1cbf5e248bba91c6433ecb6eca2c12a944449ddcaa208cd858cec7a4d00d
BLAKE2b-256 checksum
How to use checksums
cadc0dd361755bb4c4f8846729347a37a440f0e275a0561b29de51547f0c2937
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Release files / wiresense-1.0.2-py3-none-any.whl

Download URL wiresense-1.0.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca2a799f6764c8c46d3bf613825c3857b971acdf2e845ec548e8eedcb843798e
BLAKE2b-256 checksum
How to use checksums
63ef004629f4a890fbdbe8d3f9b3934e4307061dec12be63baf30a40f1e479b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

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