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.
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 can be done using Pip:
> pip install atlas_i2c
> python setup.py bdist_wheel > pip install dist/atlas_i2c-$version-py3-none-any.whl
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
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size atlas_i2c-0.1.0-py3-none-any.whl (4.1 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size atlas-i2c-0.1.0.tar.gz (4.1 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for atlas_i2c-0.1.0-py3-none-any.whl