RPi.version
This library provides a break down of the new 32bit revision bitfield, detailing the Pi type, origins, amount of memory and CPU details.
Reference
Start with:
import RPi.version
Processor version:
RPi.version.processor
Memory amount ( in MB ):
RPi.version.memory
Raspberry Pi Type:
RPi.version.type
Manufacturer:
RPi.version.manufacturer
Revision:
RPi.version.revision
Pi Model, returns either A, B or CM for Computer Module.
RPi.version.model
Pi version, returns either 1 or 2 for Pi 2
RPi.version.version
Info, returns all info as a dictionary
RPi.version.info
Changelog
2.0
Support for Python 3.x
Entry point for rpi-version
Linting fixes and cleanup
Declare namespace to avoid clobbering RPi.GPIO
1.2
Fixed python -m RPi.version functionality
1.1
Added model and version
1.0
First release
Metadata
Release files for RPi.version 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| RPi.version-2.0-py3-none-any.whl | Python 3 | none | any | Details for RPi.version-2.0-py3-none-any.whl |
| RPi.version-2.0-py2-none-any.whl | Python 2 | none | any | Details for RPi.version-2.0-py2-none-any.whl |
Total release size: 7.2 kB
Release files / RPi.version-2.0-py3-none-any.whl
| Download URL | RPi.version-2.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ef7ee33616051c05ed75a72259ce843884ab57f4e6ce55840c35b0e229dbb13
|
|
BLAKE2b-256 checksum How to use checksums |
0a82a77301dc4765a1e7f5a1d5051b7bdff1ecbf21a93bfa7e1708c6c1942f83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3
|
Release files / RPi.version-2.0-py2-none-any.whl
| Download URL | RPi.version-2.0-py2-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
5194cdec178bd33a406feadabb69315dd2a3d7c8f24d96e10a6cdc0ef68c4685
|
|
BLAKE2b-256 checksum How to use checksums |
3211dfc0293e2cf248f3229dffdba443b5aa9087ef2b31bbc5ea0f5ee14bdeb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3
|
Security for RPi.version 2.0
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.