Skip to main content

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

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)

Table of built distributions (wheels) for RPi.version 2.0
File Interpreter ABI Platform
RPi.version-2.0-py3-none-any.whl Python 3 none any Details
RPi.version-2.0-py2-none-any.whl Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

2.0 This release

2 release files

1.2

1 release file

1.1

1 release file

1.0

1 release file

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