Skip to main content

Quality Gate Status Maintainability Rating

Lines of Code Duplicated Lines (%)

Reliability Rating Security Rating Vulnerabilities

Upload Python Package Python package

GreenPonik_BH1750.py Library for Raspberry pi


This is the sample code for read light with BH1750 sensor.

Table of Contents

Installation

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

or 

> pip3 install greenponik-bh1750
from GreenPonik_BH1750.BH1750 import BH1750

Methods

"""
Get light data
"""
def read_bh1750():

Example

import time
from GreenPonik_BH1750.BH1750 import BH1750

if __name__ == "__main__":
    try:
        bh = BH1750()
        while True:
            lux = bh.read_bh1750()
            print(lux)
            time.sleep(1)
    except Exception as e:
        print('An exception occurred: {}'.format(e))

Credits

Write by Mickael Lehoux, from GreenPonik, 2019

Metadata

Release files for greenponik-bh1750 0.0.7

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-bh1750 0.0.7
File Size Uploaded Provenance Actions
greenponik-bh1750-0.0.7.tar.gz 162.6 kB Without provenance Details for greenponik-bh1750-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for greenponik-bh1750 0.0.7
File Interpreter ABI Platform Actions
greenponik_bh1750-0.0.7-py3-none-any.whl Python 3 none any Details for greenponik_bh1750-0.0.7-py3-none-any.whl

Total release size: 166.5 kB

Release files / greenponik-bh1750-0.0.7.tar.gz

Download URL greenponik-bh1750-0.0.7.tar.gz
Size 162.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c03556aec6035b8b5e83e18e3cbb3cc31f7c5882d5e9f2af99f8a48ab4df1ebf
BLAKE2b-256 checksum
How to use checksums
7fb87e0a9c36f57da4a4dfe56b81b28eca52a3772fc80504c121800889370de2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Release files / greenponik_bh1750-0.0.7-py3-none-any.whl

Download URL greenponik_bh1750-0.0.7-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d7decce3b20e85b8ef89c191f784dab870785161808f809272fa0ca88206ccc
BLAKE2b-256 checksum
How to use checksums
c8373ca8a6cf94aeeffb26107255827f67dac653da450925009d6472d5b7f1a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Security for greenponik-bh1750 0.0.7

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