Skip to main content

pirev

pypi version license

A tiny, zero-dependency utility providing hardware revision information for Raspberry Pi devices. All information is parsed from the device's revision code located in /proc/cpuinfo.

Installation

pip install pirev

Usage

from pirev import getInfo

info = getInfo()

print('Raspberry Pi {type}'.format(type=info['revision']['type']))

Error handling

Running the utility on a device which is not a Raspberry Pi will result in an error being raised.

try:
  info = getInfo()
  print('Raspberry Pi {type}'.format(type=info['revision']['type']))
except ReferenceError:
  print('Not a Raspberry Pi device!')

Metadata

Release files for pirev 1.2.1

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

Source distribution (sdist)

Source distribution for pirev 1.2.1
File Size Uploaded Provenance Actions
pirev-1.2.1.tar.gz 4.2 kB Without provenance Details for pirev-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pirev 1.2.1
File Interpreter ABI Platform Actions
pirev-1.2.1-py3-none-any.whl Python 3 none any Details for pirev-1.2.1-py3-none-any.whl

Total release size: 10.5 kB

Release files / pirev-1.2.1.tar.gz

Download URL pirev-1.2.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8258467df99f8351e00c294b1cc608640825ccf13e0f18d9df497f32525564f0
BLAKE2b-256 checksum
How to use checksums
84b2eca2c411859dc262cf85eddca0931294b5a75d0e0dc304daaf3fdefb0663
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

Release files / pirev-1.2.1-py3-none-any.whl

Download URL pirev-1.2.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
badf02469abe46e818e9a34e77b1a9e05b9b129ec245c7471af22176a889e7fa
BLAKE2b-256 checksum
How to use checksums
c4bf72a731655ef180482f542e877e5c5b8e3ec8a54390f70d31963dd0826f1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

Security for pirev 1.2.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.

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