Joulescope™ driver
Project description
Joulescope Driver
Welcome to the Joulescope™ Driver project. Joulescope is an affordable, precision DC energy analyzer that enables you to build better products.
This user-space C library communicates with Joulescope products to configure
operation and receive data. The first-generation driver introduced in 2019 was
written in Python. While Python proved to be a very flexible language enabling
many user scripts, it was difficult to support other languages.
This second-generation driver launched in 2022 addresses several issues
with the first-generation python driver including:
- Improved event-driven API based upon PubSub for easier integration with user interfaces and other complicated software packages.
- Improved portability for easier language bindings.
- Improved performance.
Building
Ensure that your computer has a development environment including CMake.
Windows
Install cmake and your favorite build toolchain such as Visual Studio, mingw64, wsl, ninja.
macOS
For macOS, install homebrew, then:
brew install pkgconfig python3
Ubuntu 22.04 LTS
For Ubuntu:
sudo apt install cmake build-essential ninja-build
Common
cd {your/repos/joulescope_driver}
mkdir build && cd build
cmake ..
cmake --build . && ctest .
This package includes a command-line tool, jsdrv_util:
jsdrv_util --help
jsdrv_util scan
Python bindings
The python bindings are made to work with Python 3.9 and later. To install the dependencies:
cd {your/repos/joulescope_driver}
pip3 install -U requirements.txt
You should then be able to build the native bindings:
python3 setup.py build_ext --inplace
On Windows, you may be prompted to install the Microsoft C++ Build Tools.
And run the Python development tools:
python3 -m pyjoulescope_driver --help
python3 -m pyjoulescope_driver scan
python3 -m pyjoulescope_driver ui
You may optionally choose to use a Python virtual environment.
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 Distributions
Hashes for pyjoulescope_driver-1.3.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a4476ad2946dfa8adff28ff7dc8ada6f4ac6e97e5c46ea3e5145146bf072a29 |
|
MD5 | 0e022988e3a083f1798d84e7ba6d5f26 |
|
BLAKE2b-256 | 6cc7963f04a979b772e1b03020c60d8946dc50cacfcde6f220b55e64bac1538e |
Hashes for pyjoulescope_driver-1.3.11-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc2010b8007acc2debac5054e52aca512b6d338fc1e5ee49a1b27f4f0fdc82d3 |
|
MD5 | 1d26e670912f55f92aa8b1ecfa73e7de |
|
BLAKE2b-256 | 88e9c2c388d53e1484825adbc13467770a8a634b9ce4ef1e7210d9f5ae17a6ed |
Hashes for pyjoulescope_driver-1.3.11-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b531d5a1872ea5a949ad7ce319f44fea9979991bb6b3a2cf31dd3ce081ea79b |
|
MD5 | cbaa495291622b87e1b2bd3935b877df |
|
BLAKE2b-256 | b1bd82d72a71d770289124d83eebcc3c274bb9911a7af9c407639be2587ad7ff |
Hashes for pyjoulescope_driver-1.3.11-cp311-cp311-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c32e8abdb6da17357f378cf21a390ef2b42d059aa542c214f419da0ca3f0d273 |
|
MD5 | b59c1cdcbe6e42e2153bcc2b95b72457 |
|
BLAKE2b-256 | 62ddc3d2e6da2171c83690d12c1a68a678615446ddc668f75e93281d591ea2aa |
Hashes for pyjoulescope_driver-1.3.11-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea99c6789ec5788594ffddf50d8cc53cbe55a4aaa458bf432f0137183ba4af46 |
|
MD5 | f28978c6f0009038acbdb37b45cb1060 |
|
BLAKE2b-256 | 30faf0ae7c4b65cad7b288218d38476a56e4bba42b662fed0cf7cdc3f0c474af |
Hashes for pyjoulescope_driver-1.3.11-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30188baa4ae8e278f253d88c6d897db58ab5d8ee11ca10d5597746005d24fceb |
|
MD5 | 827ded93d015b7bbbab132650bd5cd03 |
|
BLAKE2b-256 | 44f2540a2033757c65e100692b2886aeacaa32e2bb5b3ca330b26482dea174d4 |
Hashes for pyjoulescope_driver-1.3.11-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9333b6f82cb27c71e3accf2876c39e524bc9e5be8bb1f24d2c14dfdfe11dd452 |
|
MD5 | 9afeaef68146ee971d484ee15b254843 |
|
BLAKE2b-256 | b750808452abac6b0f9e1bb7f750192af9730063765eb93e015154f53c20d928 |