Skip to main content

A library for automating hardware development and testing

Project description

hardware-tools

Unit Test Pylint Coverage Latest Version

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


Download files

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

Source Distribution

hardware-tools-0.2.4.tar.gz (301.3 kB view details)

Uploaded Source

Built Distributions

hardware_tools-0.2.4-cp310-cp310-win_amd64.whl (471.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

hardware_tools-0.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (932.2 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

hardware_tools-0.2.4-cp39-cp39-win_amd64.whl (471.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

hardware_tools-0.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (931.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

hardware_tools-0.2.4-cp38-cp38-win_amd64.whl (471.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

hardware_tools-0.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (948.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

hardware_tools-0.2.4-cp37-cp37m-win_amd64.whl (470.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

hardware_tools-0.2.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (852.0 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

File details

Details for the file hardware-tools-0.2.4.tar.gz.

File metadata

  • Download URL: hardware-tools-0.2.4.tar.gz
  • Upload date:
  • Size: 301.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for hardware-tools-0.2.4.tar.gz
Algorithm Hash digest
SHA256 f6a22873d16875acdbe635f9cceeae341490fddda155b3797b3986cefbc760e6
MD5 2803b086db5f17822aee410f3735d3e4
BLAKE2b-256 7cb69b417e85f08f3a55c4b2ae69a2748b717ac523e66f77aca19a53df8729ab

See more details on using hashes here.

File details

Details for the file hardware_tools-0.2.4-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for hardware_tools-0.2.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a03fdb215cf566053044cfe9e0cd020f4f8de5dc97bd595ed8f5508dc3b70be1
MD5 3bd8d1a9fd5ddec61fb901e5a245d532
BLAKE2b-256 0b3735fc9fa0a791a283c9cada795db91e2cc842f86e09834266af5bfdaecd94

See more details on using hashes here.

File details

Details for the file hardware_tools-0.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hardware_tools-0.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4a418fec1723c8166c65b965551fc2adbcd9de3d7ca7291b9da055c68af01c24
MD5 9b8fc1d90140badeb053118bc48315e1
BLAKE2b-256 09e4383e51d4661460784a7b006780aa01d94cbeda0f7d082efb2cfaa86151a8

See more details on using hashes here.

File details

Details for the file hardware_tools-0.2.4-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for hardware_tools-0.2.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 23480b47029a348eaceed5be5c470898a26470ffae7303068fc8b2169f8dec94
MD5 b2bbfc8659dae71c13c9eb9490ac76d9
BLAKE2b-256 b12dbd10d4379a3d5267063505febd4ab8168cfa2b131a3e4f72cb03bb58ef17

See more details on using hashes here.

File details

Details for the file hardware_tools-0.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hardware_tools-0.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e1afd9df5f784c5ff38296c07d12fedaaefcca80bbf6ed8c20ce0073aa79ab5
MD5 2004ae08438e04fc9ee7c1b1221bdfda
BLAKE2b-256 a65d3b62d799de92086990e9da7b7645e165be656509498f6b0d3acf8b8e707b

See more details on using hashes here.

File details

Details for the file hardware_tools-0.2.4-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for hardware_tools-0.2.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6973a9070e4140841d35cd0a8c12fa09e86e98efec742bbdfab00ac67980c951
MD5 2b1ddbb539f014f6952c50e62fe3526b
BLAKE2b-256 79619edccee8deb20b09f562433a801fca24e5e5e34681f008ccb086225bc6c4

See more details on using hashes here.

File details

Details for the file hardware_tools-0.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hardware_tools-0.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 293d2e8f3641b0e91098f243f9a4a6a33e70a131ce5f092689cff1196425db02
MD5 84a5027c8e754e3142c99a57e0df737d
BLAKE2b-256 d18491eaf21f2c4e2bd2a1e36716c82d3cbd3d9822d2adfb5ad38c2857d7e4b5

See more details on using hashes here.

File details

Details for the file hardware_tools-0.2.4-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for hardware_tools-0.2.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a3b162608f6465dc2a35c65dab54623fa183cec12b833d217750d6e6d8d5b69f
MD5 c5466070fe7e78bfe0f7066909094c7f
BLAKE2b-256 05ee3bf10ac3687c19df9363c8a3fd22feb289089be052d2af8af5534a6e58b4

See more details on using hashes here.

File details

Details for the file hardware_tools-0.2.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hardware_tools-0.2.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19664bfa7dc7d56656ff108160b6897d73ef47f42650d7b2515e3e5cac4b4fea
MD5 96f3743839002ceb660291e41cfefedf
BLAKE2b-256 a5cf835054ceac18a6ebe51851e9f883f28870cc318d0e9dea81369fbc034957

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page