INA228
Driver for TI INA228 with SMBUS
Building
Just run:
python3 -m build
Requirements
For now, it relies on smbus2 module.
Testing
After building the package, create venv:
python3 -m venv .venv
Install the module:
.venv/bin/pip install dist/ina228-*.whl --force-reinstall
Run the test:
.venv/bin/python tests/test.py
Test will use supplied stub_regmap.py, not the real INA228.
If you want your own one, generate it by running ./map.sh > stub_regmap.py on the system with live INA228.
You may need to edit bus number and slave address in map.sh though.
And remember to install i2cget with something like apt install i2c-tools prior to running this.
If you want to use pytest, install it into venv:
.venv/bin/pip install pytest
And then run:
.venv/bin/python -m pytest
Metadata
Release files for ina228 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ina228-0.0.3.tar.gz | 8.5 kB | Without provenance | Details for ina228-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ina228-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for ina228-0.0.3-py3-none-any.whl |
Total release size: 16.1 kB
Release files / ina228-0.0.3.tar.gz
| Download URL | ina228-0.0.3.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e335870d1d92f112e33e8c4a4ee18fbd8fef44e3958f7f250f1b7cb820852e6
|
|
BLAKE2b-256 checksum How to use checksums |
f492d5e5e340c08aabd283856c17bf3785a2ec4869ca720ff11baa7ae4b3743f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / ina228-0.0.3-py3-none-any.whl
| Download URL | ina228-0.0.3-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3260a42855d94280819efb31d7c74b3e68eca4b9259ddd4ab0058c1455a2f1c
|
|
BLAKE2b-256 checksum How to use checksums |
7772da79632595b3f6a3d350256f120f6cf71102b32aec42f25a01a5aba80c1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for ina228 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.