Skip to main content

Quality Gate Status Maintainability Rating

Lines of Code Duplicated Lines (%)

Reliability Rating Security Rating Vulnerabilities

Upload Python Package

GreenPonik_Atlas_Scientific_OEM_i2c.py Library for Raspberry pi

A python3 class to use Atlas Scientific OEM circuits on i2c bus.

! Only tested on Raspberry Pi 3 A+ !

Table of Contents

Installation

> git clone https://github.com/GreenPonik/GreenPonik_Atlas_Scientific_OEM_i2c.git
cd GreenPonik_Atlas_Scientific_OEM_i2c
pip3 install -r requirements.txt

or

> pip3 install greenponik-atlas-scientific-oem-i2c
from GreenPonik_Altas_Scientific_i2c.ECI2c import ECI2c
from GreenPonik_Altas_Scientific_i2c.PHI2c import PHI2c

Examples

Read EC

works with EC circuit https://www.atlas-scientific.com/circuits/conductivity-oem-circuit/

from GreenPonik_Altas_Scientific_OEM_i2c.ECI2c import ECI2c

if __name__ == "__main__":
    try:
        print("get device infos")
        ec_i2c = ECI2c(
            bus=1,
            addr=ECI2c.ADDR_OEM_TXT_TO_HEXA['EC'],
            moduletype="EC",
        )
        print(ec_i2c.get_device_info())
        # put here the current temperature
        print(ec_i2c.set_temperature(25.00))
        ec = ec_i2c.get_read()
        print("current ec is %.2f" % ec)
    except Exception as e:
        print("Exception occured", e)

go to ec example

Read pH

works with pH circuit https://www.atlas-scientific.com/circuits/ph-oem-circuit/

from GreenPonik_Altas_Scientific_OEM_i2c.PHI2c import PHI2c

if __name__ == "__main__":
    try:
        print("get device infos")
        ph_i2c = PHI2c(
            bus=1,
            address=PHI2c.ADDR_OEM_TXT_TO_HEXA['PH'],
            moduletype="PH",
        )
        print(ph_i2c.get_device_info())
        print(ph_i2c.get_read())
    except Exception as e:
        print("Exception occured", e)

go to ph example

todo list

  • add calibration workflow in examples
  • add compatibility with all circuits (OD / ORP / CO2 / PRESSURE / FLOW)

Credits

Write by Mickael Lehoux, from GreenPonik, 2020

Metadata

Release files for greenponik-atlas-scientific-oem-i2c 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for greenponik-atlas-scientific-oem-i2c 0.0.8
File Size Uploaded Provenance Actions
greenponik-atlas-scientific-oem-i2c-0.0.8.tar.gz 40.0 kB Without provenance Details for greenponik-atlas-scientific-oem-i2c-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for greenponik-atlas-scientific-oem-i2c 0.0.8
File Interpreter ABI Platform Actions
greenponik_atlas_scientific_oem_i2c-0.0.8-py3-none-any.whl Python 3 none any Details for greenponik_atlas_scientific_oem_i2c-0.0.8-py3-none-any.whl

Total release size: 51.6 kB

Release files / greenponik-atlas-scientific-oem-i2c-0.0.8.tar.gz

Download URL greenponik-atlas-scientific-oem-i2c-0.0.8.tar.gz
Size 40.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0f8cfaa69d3d1580703917eb32e41efd5ab263b34c111491c49b59c6ba9199eb
BLAKE2b-256 checksum
How to use checksums
a7ca8c47be8298f964c978221a782a72744f563bb33585a1c1c1a2a270f53190
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / greenponik_atlas_scientific_oem_i2c-0.0.8-py3-none-any.whl

Download URL greenponik_atlas_scientific_oem_i2c-0.0.8-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed91c78b2383856e5ba9e0ae00af57b8bbf8384e14d84a36515917a2f94b904d
BLAKE2b-256 checksum
How to use checksums
5a2e8529a6dec0d9094d13f0a010fce804752a9d2ba1cd51f3ab187d145289c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Security for greenponik-atlas-scientific-oem-i2c 0.0.8

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page