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_TSL2561.py Library for Raspberry pi


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

Table of Contents

Installation

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

or 

> pip3 install greenponik-tsl2561
from GreenPonik_TSL2561 import GreenPonik_TSL2561

Methods

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

Example

import time
from GreenPonik_TSL2561 import GreenPonik_TSL2561

if __name__ == "__main__":
    tsl = GreenPonik_TSL2561()
    while True:
        data = tsl.read_tsl2561()
        print(data)
        time.sleep(1)

Credits

Write by Mickael Lehoux, from GreenPonik, 2019

Metadata

Release files for greenponik-tsl2561 0.0.3

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-tsl2561 0.0.3
File Size Uploaded Provenance Actions
greenponik-tsl2561-0.0.3.tar.gz 162.5 kB Without provenance Details for greenponik-tsl2561-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for greenponik-tsl2561 0.0.3
File Interpreter ABI Platform Actions
greenponik_tsl2561-0.0.3-py3-none-any.whl Python 3 none any Details for greenponik_tsl2561-0.0.3-py3-none-any.whl

Total release size: 164.6 kB

Release files / greenponik-tsl2561-0.0.3.tar.gz

Download URL greenponik-tsl2561-0.0.3.tar.gz
Size 162.5 kB
Tags Source
SHA-256 checksum
How to use checksums
69f0d59c54a4c7396dc18901752027dbcd27ef44fc202ca53296ad5732170911
BLAKE2b-256 checksum
How to use checksums
a34c6f52367382d79c85211013237d663275228a77b6b59cb5ccabf2dd7cff7d
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.48.2 CPython/3.8.5

Release files / greenponik_tsl2561-0.0.3-py3-none-any.whl

Download URL greenponik_tsl2561-0.0.3-py3-none-any.whl
Size 2.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8edd27e9713f207db2a16e6b333bee9b382aa4394250f331b7682c1a83af213
BLAKE2b-256 checksum
How to use checksums
c8a6e4dab2657b9faa20e45f792c29200a713fd28f76c8d876d1ea5a8a96a9cd
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.48.2 CPython/3.8.5

Security for greenponik-tsl2561 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.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

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