A library for automating hardware development and testing
Project description
hardware-tools
A library for automating hardware development and testing
Environment
List of dependencies for package to run.
Required
- python modules, installed via
pip install hardware_tools
- numpy
- pyvisa
- cython
- colorama
- matplotlib
- scipy
- sklean
- Pillow
- scikit-image
Optional
- Test extensions, installed via
pip install hardware_tools[test]
- time-machine
- hardware-tools
Virtual Environment
If using hardware-tools in a virtual environment, do not place it within this repo directory. Set it outside due to an issue compiling the extensions with cython since it tries to compile the code inside the virtual environment as well.
mkdir workspace-hardware-tools
cd workspace-hardware-tools
python -m venv .
source ./Scripts/activate # or .\Scripts\activate.bat
git clone https://github.com/WattsUp/hardware-tools
cd hardware-tools
python -m pip install .
Installation / Build / Deployment
# To install latest stable version on PyPi, execute:
python -m pip install hardware_tools
# To install from source, execute:
git clone https://github.com/WattsUp/hardware-tools
cd hardware-tools
python -m pip install .
# For development, install as a link to repository such that code changes are used. And include testing packages
git clone https://github.com/WattsUp/hardware-tools
cd hardware-tools
python -m pip install -e .[test]
Usage
Explain how to use your project.
# TODO
Running Tests
Make sure to install package with testing extension
# To run the automated tests, execute:
python -m tests discover -s tests -t . --locals
# To save the results to file, execute:
python -m tests discover -s tests -t . --locals &> testing.log
## The following is a synopsis of unittest main arguments ##
# To run a singular test file, execute:
python -m tests $path_to_test_file
python -m tests tests.measurement.test_mask
# To run a singular test class, execute:
python -m tests $path_to_test_file.$class
python -m tests tests.measurement.test_mask.TestMaskDecagon
# To run a singular test method, execute:
python -m tests $path_to_test_file.$class.$method
python -m tests tests.measurement.test_mask.TestMaskDecagon.test_init
# Multiple can be strung together
python -m tests tests.measurement.test_mask tests.test_math
# To run coverage and print the report with missing lines, execute:
python -m coverage run && python -m coverage report -m
# To run profiler, execute:
python -m cProfile -s tottime -m tests discover -s tests -t . > profile.log
# To run linting, execute:
python -m pylint hardware_tools tests tools setup.py
Development
Code development of this project adheres to Google Python Guide
Styling
Use yapf
to format files, based on Google's guide with the exception of indents being 2 spaces.
# To format all files, execute:
yapf -ir .
Versioning
Versioning of this projects adheres to Semantic Versioning and is implemented using git tags.
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
File details
Details for the file hardware-tools-0.4.0.tar.gz
.
File metadata
- Download URL: hardware-tools-0.4.0.tar.gz
- Upload date:
- Size: 309.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d04772e7b89f11521911f53395c310846e5fb51d34c3e95196a38c45176ab3b9 |
|
MD5 | 49173ad10adc1427f045d7bcf1887f87 |
|
BLAKE2b-256 | 723eb9cc9c3384e4ccc5bdc889620ce89325319733a165421b40038496f65309 |
File details
Details for the file hardware_tools-0.4.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: hardware_tools-0.4.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 476.9 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98490767bd3c8461ec8a3c7cc521d85c03883f3ba130e33914e3830e64bccbd5 |
|
MD5 | 285240ce218df8897f7fe1bd1124639f |
|
BLAKE2b-256 | 2a21145d8c6fe18e7dbda2412ef1d5047928a5ce8322e15e3fc51a28a099d57f |
File details
Details for the file hardware_tools-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: hardware_tools-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 922.3 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 879031521a473e10e2fe72f63b83ad494aed5b1e701847f232fdc258350ea84b |
|
MD5 | b88c92db6ffd503b524e9ad31b4bb1c5 |
|
BLAKE2b-256 | 871c45c6aed6482c3d15472202be4b5938eed27e63e2beb56be06dee426f5c22 |
File details
Details for the file hardware_tools-0.4.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: hardware_tools-0.4.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 481.1 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 104e8e7025947725c8f6d1613e3b7f92863db9970677306258453d0d2446bdbe |
|
MD5 | 79b0c83f978f4034f7e9e9647de6f8be |
|
BLAKE2b-256 | 7f9151dbf9457aa3569d761b56c21af6d633c2d8d913c138f953e875903300dd |
File details
Details for the file hardware_tools-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: hardware_tools-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 944.6 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4313c752e6052b414c8afe34f6487130b372853ba8d4c25bea8f54a399ca265 |
|
MD5 | c6b87ba2b500d51ec35b85410d38588a |
|
BLAKE2b-256 | c66611529654697cffc32007e292f20e08c15177d6f8840e9a2ce85f70ae9187 |
File details
Details for the file hardware_tools-0.4.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: hardware_tools-0.4.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 481.0 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fc2748ae4f083707c1f922ff527ccd54d6d1bf7e7054acf8b64d747943a8eda |
|
MD5 | 5fe5bac80860fc7ed7648fc0cb49f9a8 |
|
BLAKE2b-256 | c856f202d75e2a5826b73ee1fae5bb8dee6233794629dbafa3212ad4f7e38aaa |
File details
Details for the file hardware_tools-0.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: hardware_tools-0.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 961.6 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 969bb9788520373efaa8e3878b4c849ef7ff3e934586a9b7a61b0e265fc35072 |
|
MD5 | a7f25c87b120021723fd1588bd9b1648 |
|
BLAKE2b-256 | 963688ff5ea1f3a0756f7006116091474e9100a4e3affe00eb0f2cda6a509bf0 |
File details
Details for the file hardware_tools-0.4.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: hardware_tools-0.4.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 480.7 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c1127b3c8c5283ba99cba1463c315c9087c500e2b0c180740e5dc652f9f7460 |
|
MD5 | dcd1881edc4b910029cb94d99fb68b2a |
|
BLAKE2b-256 | 8f7751e4387313a7c7e3e4be335daf23c1a84e959a97b1d35f8271b11317ae6c |
File details
Details for the file hardware_tools-0.4.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: hardware_tools-0.4.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 865.7 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf006e48ac78e62ae2a030eee18a60724dec68455d075228e54ef820f2429dec |
|
MD5 | 66a17a613b20cd24a10063c74d21fe15 |
|
BLAKE2b-256 | d607d5358f1d8350b195b715836769f3088e3d5a27b0c836df5d060314212828 |