Toolbit library
Project description
Toolbit library for Python
The target device of this library is Toolbit DMM, digital multimeter, that is used with PC to measure DC voltage or current.
The target version of this library is as follows:
- Python: 3.6 or later
Installation
The toolbit-lib package is published to the PyPI repository. It can be installed by the following steps:
Ubuntu linux / Raspberry Pi
sudo apt install libudev-dev
pip3 install toolbit-lib
macOS
pip3 install toolbit-lib
Windows
pip3 install toolbit-lib
Usage
Example
Connect your device to USB port and execute the following code:
from toolbit import Dmm
dmm = Dmm()
dmm.open()
print(str('%03.3f' % dmm.getVoltage()) + " [V]")
print(str('%03.3f' % (1000.0 * dmm.getCurrent())) + " [mA]")
Result will be shown as follows:
1.500 [V]
0.000 [mA]
Also, sample code is available here.
Build
Download the latest source from GitHub repository.
The following command/software is required to build toolbit-lib:
- make
- For Windows, MinGW is highly recommended
- swig: http://www.swig.org/
- Ubuntu linux / Raspberry Pi
- libudev-dev
Ubuntu linux / macOS / Rasberry Pi
cd bindings/python/toolbit-lib
make
sudo make install
Windows
cd bindings/python/toolbit-lib
build.bat
python setup.py install
License
[GPLv2] Please refer to the LICENSE file in this repository
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toolbit-lib-1.0.0.tar.gz.
File metadata
- Download URL: toolbit-lib-1.0.0.tar.gz
- Upload date:
- Size: 97.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0f1ebe299731217d9d6f1697ac0223c3528d5a12d9bb17eade121c145d94e1b
|
|
| MD5 |
e64b0399de1821abf44df0f1e35d4e47
|
|
| BLAKE2b-256 |
d363ec7e25e25d53c2c0919f516e2e448f60670632c24d642f2c7433f8974408
|
File details
Details for the file toolbit_lib-1.0.0-cp38-cp38-win32.whl.
File metadata
- Download URL: toolbit_lib-1.0.0-cp38-cp38-win32.whl
- Upload date:
- Size: 105.5 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee10b755b751e965cb74fecacf9ee31dc55080daf27762b28a84ef8bbbf33c08
|
|
| MD5 |
7ac37345709777c6426ee0234a181b70
|
|
| BLAKE2b-256 |
39fef536f47486fc9e5e119a330edc00b3b59e1a5f696328160fddf5acd81554
|
File details
Details for the file toolbit_lib-1.0.0-cp37-cp37m-macosx_10_14_x86_64.whl.
File metadata
- Download URL: toolbit_lib-1.0.0-cp37-cp37m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 141.4 kB
- Tags: CPython 3.7m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc508e4d864c0e293c79ba5bcdadca6e15fa0369c1b75a8cb5f94d80128bc107
|
|
| MD5 |
ad5f9e674620714cac44a80e4ff4db3c
|
|
| BLAKE2b-256 |
4f5481af75b909060b7324a8c69f1d357466cae59c406ef576472e09a682a9b4
|