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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 280ff1c91ccdfffd969508a65fef5f6d1ea64dd7a9b304429a6f158b05466029 |
|
MD5 | 97e71b2f0d0c818102c10158a93b496d |
|
BLAKE2b-256 | 9023b9eada9c0af916b9f675762d666f373aa7c3d220efb8a983d68602d3f0fe |
Hashes for pyjoulescope_driver-1.2.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fac4df65e69564c606ebfb3c792c3dd83805ca740b6bee90b662a606126e05e |
|
MD5 | de97b245a4fa160d8ded7845eee8478a |
|
BLAKE2b-256 | fbe6734e3f36446f4089600ff915865625b9909003a3cb567d5d51ee0360fa27 |
Hashes for pyjoulescope_driver-1.2.2-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94651e5f199958b25c1f7fd17348a24e143abc184a0a0df4fee7c18ef19d5965 |
|
MD5 | 664e604106e0c2e7bd9450dcb655d885 |
|
BLAKE2b-256 | 60f45905b2a589e2a492958930c17b5790a7d0f56b8ab77a63f7ab27be08271b |
Hashes for pyjoulescope_driver-1.2.2-cp311-cp311-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fdc8b56b0a1744e44526918df0cdef8c05df3c3f69dcdb50927b1185da0c8e5 |
|
MD5 | d76804511d3e622cc662aa0ca3f8969a |
|
BLAKE2b-256 | a25c2462b810768624fc23ba280f85089ce6a3cee653b14d9f72ae8d7b1e06b0 |
Hashes for pyjoulescope_driver-1.2.2-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44c2a173406d689cc1513ac28a46dfec2c7a66b8567fa8070f7a3f4a457f33e7 |
|
MD5 | 66a925416a88a4769dbb1464a991e01f |
|
BLAKE2b-256 | d4929a3d809788bf450097d3b84740eba8dc835b60d4a387671c481722e527a6 |
Hashes for pyjoulescope_driver-1.2.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 468b7c40898f84776ae04339d0a989a1a5bf639dad9106232c84224142c6a00a |
|
MD5 | 63c036a5c3ab871cf90bafc3bc889b39 |
|
BLAKE2b-256 | 116e965a5c92435365783d77b6bd3dfced38dbdf378e04b7649c38c9cedeec58 |
Hashes for pyjoulescope_driver-1.2.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4c143ce043bb24d181ba65f0ec4f011e4dc7e9590ba52c8f692586b747551a1 |
|
MD5 | 708a6b333c59454f5e45bfdd00439baa |
|
BLAKE2b-256 | af8960ef8277dda4990ecfb7a758b2055282d0f3047d8e0120c52384576b157c |
Hashes for pyjoulescope_driver-1.2.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a36f21bcda5f75c88e6f6b93043494c5d979d32861d5a2e96a846c31663ac1db |
|
MD5 | 62a741dedb5d7057a276f123c10f1039 |
|
BLAKE2b-256 | ef46291a8ff3354425bf67296dfdaa735c1edc94ae7d084f0427436a7bc2b927 |