Skip to main content

Library to easily interface with Vallen Systeme WaveLine™ devices

Project description

WaveLine

CI Documentation Status Coverage Status License: MIT PyPI PyPI - Python Version Code style: black Ruff

Documentation · Examples

Python library to easily interface with Vallen Systeme WaveLine™ devices using the public APIs:

  • linWave (prior names: conditionWave, FyrSonic)
  • spotWave

Getting started

Install the latest version from PyPI:

$ pip install waveline

Note: waveline requires Python 3.6 or newer. On Linux systems, pip is usually mapped to Python 2, so use pip<version> (e.g. pip3 or pip3.7) instead. Alternatively, you can run pip from your specific Python version with python<version> -m pip.

Run examples:

$ python examples/linwave_ae.py  # if you have a linWave device
$ python examples/spotwave_ae.py  # if you have a spotWave device

Explore further examples and have a look at the documentation.

Contributing

Feature requests, bug reports and fixes are always welcome!

Development setup

After cloning the repository, you can easily install the development environment and tools (pylint, mypy, pytest, tox) with. Using a virtual environment is strongly recommended.

$ git clone https://github.com/vallen-systems/pyWaveLine.git
$ cd pyWaveLine

# Create virtual environment in directory .venv
$ python -m venv .venv
# Activate virtual environment
$ source .venv/bin/activate  # Linux
$ .venv\Scripts\activate  # Windows

# Install package (editable) and all development tools
$ pip install -e .[dev]

# Run auto-formatter
$ black .

# Run linter
$ ruff check .

# Run the test suite in the current environment
$ pytest

# Run the CI pipeline (checks and tests) for all targeted (and installed) Python versions with tox
$ tox

# Build the documentation
$ cd docs
$ sphinx-build . _build

Run system tests

System level tests are only available, if the targeted device can be discovered.

Run system tests with a spotWave device:

$ pytest tests/system/spotwave --duration-acq 1

Measurement durations for long-term acquisition tests can be specified with the --duration-acq parameter (default: 1 second).

Run system tests with a linWave device (a specific IP can be provided with the --linwave-ip argument, otherwise the first discovered device will be used):

$ pytest tests/system/linwave --duration-acq 1 --linwave-ip 192.168.0.100

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

waveline-0.7.0.tar.gz (36.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

waveline-0.7.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file waveline-0.7.0.tar.gz.

File metadata

  • Download URL: waveline-0.7.0.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for waveline-0.7.0.tar.gz
Algorithm Hash digest
SHA256 ee29e580bfdfbae1a78d0924d4b5f885cecd6201aaef56313628614d46f05384
MD5 2f854804b25711a917cb0ff0612de7b8
BLAKE2b-256 c162a3eac7c81a3772bfb27a66a389b48dabce728f510f0c7200d9717f4c72a5

See more details on using hashes here.

File details

Details for the file waveline-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: waveline-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for waveline-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7453da47ae20f299089f04cddd6806544dcd62a0ef37c26077c4c98e3cbba464
MD5 efa10928a59903ff8b5866347cb1920d
BLAKE2b-256 bb13e440e749eeeaf9a8eee833f36aec2e0e6db1dd4777cf0d6c1ead344e7c7c

See more details on using hashes here.

Supported by

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