pi_hcsr501
Library for playing around with hcsr501 PIR motion sensor with Raspberry Pi.
Usage
from pi_hcsr501 import HcSr501
HCSR501 = HcSr501()
while True:
print(str(HCSR501.active) + " ", end="\r")
sleep(0.5)
Testing
Run unit tests with command:
cd pi_hcsr501
python3 -m unittest discover -s tst/
Get test coverage with commands:
cd pi_hcsr501
coverage run -m unittest discover -s tst/
coverage report -m
Metadata
Release files for pi-hcsr501 0.5.1
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 | Actions |
|---|---|---|---|---|
| pi_hcsr501-0.5.1.tar.gz | 1.5 kB | Without provenance | Details for pi_hcsr501-0.5.1.tar.gz |
Release files / pi_hcsr501-0.5.1.tar.gz
| Download URL | pi_hcsr501-0.5.1.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2a06cb54b610de1529bbb8e33ad972da213fc0ea861ff85879e4c5c029b5dca
|
|
BLAKE2b-256 checksum How to use checksums |
ed97934114340f785c6af64cc63e2eafe6250683e7cfe9f821aebc16f88889d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pi-hcsr501 0.5.1
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.