Skip to main content

Joulescope™ driver

Project description

Windows amd64 macOS amd64 Ubuntu Linux amd64

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:

  1. Improved event-driven API based upon PubSub for easier integration with user interfaces and other complicated software packages.
  2. Improved portability for easier language bindings.
  3. 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyjoulescope_driver-1.3.8.tar.gz (2.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyjoulescope_driver-1.3.8-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

pyjoulescope_driver-1.3.8-cp311-cp311-macosx_13_0_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

pyjoulescope_driver-1.3.8-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

pyjoulescope_driver-1.3.8-cp310-cp310-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.10Windows x86-64

pyjoulescope_driver-1.3.8-cp39-cp39-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.9Windows x86-64

pyjoulescope_driver-1.3.8-cp38-cp38-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.8Windows x86-64

File details

Details for the file pyjoulescope_driver-1.3.8.tar.gz.

File metadata

  • Download URL: pyjoulescope_driver-1.3.8.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pyjoulescope_driver-1.3.8.tar.gz
Algorithm Hash digest
SHA256 9d471c0c6263027d9c3043d6a1e0430ac04f83c373f6f031f027c984613b3edf
MD5 b777a4726dfb7b6b7e974a651f0b6256
BLAKE2b-256 2d8d66a4a08bd3fef4b49a01c1c482cd42775b8f167f96fe675a19f1cbeb2208

See more details on using hashes here.

File details

Details for the file pyjoulescope_driver-1.3.8-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pyjoulescope_driver-1.3.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 df0899c6c7caeeeb407f04860a30091630e9eac3d16bc6c4e6c8e4c4048f9980
MD5 91b79985339d2dd5268301f62cc68949
BLAKE2b-256 6520db41c6d1d2255b92ba46153eaae04d83450cd89493b476af2b221046f300

See more details on using hashes here.

File details

Details for the file pyjoulescope_driver-1.3.8-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pyjoulescope_driver-1.3.8-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a27cc82357db35baaa005f40a39de1b91abda1e753896f51ca4c93c3f21cb067
MD5 20147aa2a69904aa6beb097525de6229
BLAKE2b-256 78c0daf9b2a754b30406bf0b5b7d4e0faed8adbf272ded299002fd47e5712b02

See more details on using hashes here.

File details

Details for the file pyjoulescope_driver-1.3.8-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pyjoulescope_driver-1.3.8-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f4120097a077852898fc28fbf262a23a68c1a278076746bf47fd45a8c4d24450
MD5 7109b0a2d725412cdbe6233e850ffe34
BLAKE2b-256 160e755dc6e104ae974d04711552e333dcf155e4495ca5256d819d49edd6fabf

See more details on using hashes here.

File details

Details for the file pyjoulescope_driver-1.3.8-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pyjoulescope_driver-1.3.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 df5b00155303de62839b7b09b3f1b99abc237e5ce4cc07f1cbbe94282f1e37ad
MD5 c80882e4824f7b13cf2a8ced57b53181
BLAKE2b-256 1bd23c6536bc13d85670e0eadf8517728f83c310536281f3caeaa5605bdbe8e3

See more details on using hashes here.

File details

Details for the file pyjoulescope_driver-1.3.8-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for pyjoulescope_driver-1.3.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a7d5cb2bb931a161e0ec262385e8f647f9741111b46d8b8621c5b397f4fc42a1
MD5 d2c2a8834dcaaa1a6ee094e7159afeff
BLAKE2b-256 a932824f0980b7f3a099dc2361a3297572f0c1f4c3ffa57711079fd5e0bfaaec

See more details on using hashes here.

File details

Details for the file pyjoulescope_driver-1.3.8-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for pyjoulescope_driver-1.3.8-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e3b897d838095b620306082aaf1ee1220ecc4b15f1d1e7a803c86f33c06fe0ff
MD5 3b9e34df16c29bf986a63c353c62ddb3
BLAKE2b-256 ac9b05f600950083dd36772d1b0c0476ce88f74166e62331e5c2446e4373b991

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