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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 963cfd2add7b90a62f9e6b7ba4a092a37d72ce7c42c471aaaa85067ec26361a0 |
|
MD5 | d0ca3e8819f8904cd95c50c6dc69ff5f |
|
BLAKE2b-256 | 9b1f2ad7b496cacaa3dbcd8907e2fcb372faefc3642017718f5ebcd2d63affd2 |
Hashes for pyjoulescope_driver-1.3.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 768a27f462475d6b57012f22199821aeb7c3ed0fd6744fcb4370ced6eaff69eb |
|
MD5 | 6ad2f77e8eef3eab78b90ab0cca1432b |
|
BLAKE2b-256 | 172f7181999c6ca401b63ea401754043ab13439ac8fe0e6a3dd35d7b8ff356f6 |
Hashes for pyjoulescope_driver-1.3.4-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02d7664884712abee1fa6a263e0d7739f0436a1515186b7d3a4b01e4cd06cc99 |
|
MD5 | 455cec4f40b0da30c53cb2549be19575 |
|
BLAKE2b-256 | 60667d24994935ddff98970d440fb16916b7fa9c50565b244e3f69559d2d9caa |
Hashes for pyjoulescope_driver-1.3.4-cp311-cp311-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ff9eb6a9d2d29b0441e09878260cbbd5d887cff6084265dde417d7927f70b2 |
|
MD5 | 1286c3c182a9702b95340d0015284c95 |
|
BLAKE2b-256 | 66e7d48cdb72360c827a3554af61bf188c239ccfa28878274c354a035038bb21 |
Hashes for pyjoulescope_driver-1.3.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1caa6a71e4821132cda09c95e54cda18420b59cca7c54a5b46ea67bc40af6e2b |
|
MD5 | df3944d9fccc508d5b59d2def796b504 |
|
BLAKE2b-256 | ed278bb3346ef665ab1af02e0dfeccb1b9f78e39564149adeabff9a15f8750fd |
Hashes for pyjoulescope_driver-1.3.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ab471b0c0b7e906101853bbf4d51ba00baff7e6bf1375692a7bb5236b799e92 |
|
MD5 | 51c52f64e23943be89115db70da53dc0 |
|
BLAKE2b-256 | bac3de0320655ccf9e56dad2d01e079adcb92935b6197adb6bab01d8a41a7231 |
Hashes for pyjoulescope_driver-1.3.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6864c31be9a4ec038958234f756cb8f901b004b3ad985ea0361b303d00ab2826 |
|
MD5 | dd1d1692f14e21e6b40b0022c7c4912e |
|
BLAKE2b-256 | c66da915c4a8c18fe9d1390cb55bd0d33646849485a627bb3cf152c7de10825d |