Skip to main content

Detailed information about Raspberry Pi version

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

RPi.version-2.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

RPi.version-2.0-py2-none-any.whl (3.6 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page