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

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

  • conditionWave
  • spotWave

Documentation

Please visit http://pywaveline.rtfd.io for the documentation.

Check out the examples for implementation details.

Installation

Install the latest version from PyPI:

pip install waveline

Please note, that 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.

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 .
isort .

Run linter:

pylint src/

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 with sphinx:

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 conditionWave device (a specific IP can be provided with the --cwave-ip argument, otherwise the first discovered device will be used):

pytest tests/system/conditionwave --duration-acq 1 --cwave-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.3.0.tar.gz (16.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: waveline-0.3.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for waveline-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9a0355443d51f1011202fdab01c1c389c2fc768a734cb909fb7fa5364d37638f
MD5 cbbce7033a30cd478db290d3a8c92793
BLAKE2b-256 ac0f43e544d810f0e118473418dc5089cbbab2f10e9ae532318dd2b9d9eb127a

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