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.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c258d6053b7a15c80c50f5ac2539446ba697700d044555105b2a51bd19c68606 |
|
MD5 | 836c52efd8a39a21e4c57ed1a57fbd99 |
|
BLAKE2b-256 | ae42fa5e1ee4a01b1711ce89703f06c44fad110a1674723be46bb537a76d836c |
Hashes for pyjoulescope_driver-1.2.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b6851326326591402af99c774c1741aa1bc3ece4ab4f89e36bc49d62ace2177 |
|
MD5 | e002ca0111d8279163bde06123517ce5 |
|
BLAKE2b-256 | 1cc93d534408ad857843cfd41c6a46d2668576b9414cc5713396629ec652bf89 |
Hashes for pyjoulescope_driver-1.2.1-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ca924fa65290b999dfcc2d7f909a2b41c822228892bab774d6632bbd6a0ea5a |
|
MD5 | 60471872fc209ead6460b9467a1ee418 |
|
BLAKE2b-256 | 8415e9313badbf9b9d989b4347571efb28b3eaf23fe5158ea6768bcba8861276 |
Hashes for pyjoulescope_driver-1.2.1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c82e3e00c39d3198edc17d672cc8d6c1af745e5b73e25ca56b43d1173be0ee44 |
|
MD5 | 7fcf02722678da149db286ced1d09edf |
|
BLAKE2b-256 | 18cde476157a9039859c615d2531c11683ca63a27ddd7d3e0b35cefbd84ab329 |
Hashes for pyjoulescope_driver-1.2.1-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c86209e8652d9d9ba40509bb4fa37c2c3055791ed6ccf2bc38df0ec6d000e63c |
|
MD5 | 12a6062e615ebc85fd135dd95f9502fa |
|
BLAKE2b-256 | a9540190c2fe8c0c96dff29ae32696e8c6921db84f8596ae7ff864301c1f6312 |
Hashes for pyjoulescope_driver-1.2.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e69c328784379d2662f87442f1328289181c6402a086d44fe67076b99b99c987 |
|
MD5 | d0fbc5b9c31a49fda990b4b37c2e7a29 |
|
BLAKE2b-256 | ec132e86d0146b08cf03792c663c681257cc7c0e29ae4eaf46f6ff1be10addd8 |
Hashes for pyjoulescope_driver-1.2.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1ce5a0bf6c5926b02dd2884a7b0e9f59eb9813e655de717e2be17da1c485357 |
|
MD5 | 5fea134c0bd006109d68c84cca141ced |
|
BLAKE2b-256 | ac11bc297b2959beac82fb55ed41af116ae2736241f0e808019612960016d918 |
Hashes for pyjoulescope_driver-1.2.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a633f76d1a1752e591e2788ef2a21d4fe8edacdc82f02edd2753a0b484db19a7 |
|
MD5 | 5e48f7abb29b5d7ecd8c1205121e3ecb |
|
BLAKE2b-256 | 10cd240ecd736366ffaf03fcd9d306aeb36467727b0ee061c964154698a1968b |