AtlasI2C: A Python module to communicate with Atlas Scientific devices in I2C mode.
This module is based on the example code from Atlas Scientific. It has the following goals:
- Provide a simple and clean codebase with test coverage
- Reduce code duplication by making the codebase available from PyPi
- Provide comprehensive support for Atlas Scientific EZO sensors
Supported Python Versions
This module requires Python >= 3.6.
Tests
atlas_i2c uses Tox for test automation, which includes linting, formatting and static type checking. To run Tox:
> tox
[output truncated]
py38: commands succeeded
py37: commands succeeded
py36: commands succeeded
mypy: commands succeeded
lint: commands succeeded
format: commands succeeded
congratulations :)
Installation
From PyPi
Installation can be done using Pip:
> pip install atlas_i2c
From source
> python setup.py bdist_wheel
> pip install dist/atlas_i2c-$version-py3-none-any.whl
Usage
from atlas_i2c import AtlasI2C
dev = AtlasI2C()
dev.set_i2c_address(102)
print(dev.query("R")) # returns a reading from the I2C sensor as a float
Metadata
Release files for atlas-i2c 0.1.0
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 | |
|---|---|---|---|---|
| atlas-i2c-0.1.0.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atlas_i2c-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / atlas-i2c-0.1.0.tar.gz
| Download URL | atlas-i2c-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16de2cdfeaa142edd9718c9bf9ba731a744bb0294d17fa92d0b52f503067f305
|
|
BLAKE2b-256 checksum How to use checksums |
1ca5e6a9627974b22a6c6acb51528d774320985eb7ee65b31df4ac8d9565d537
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.41.1 CPython/3.8.0
|
Release files / atlas_i2c-0.1.0-py3-none-any.whl
| Download URL | atlas_i2c-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7740d65bb57758f00783cdbd3bc8291ca06106c2bd489df115c2faeaede563c
|
|
BLAKE2b-256 checksum How to use checksums |
2f9f5ac601e76bfa7da9875a97ba605b8742f561b27c01e7886a88cb171c2b8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.41.1 CPython/3.8.0
|
Security for atlas-i2c 0.1.0
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.