An open API service indexing awesome lists of open source software.

https://github.com/platforminfo/platforminfo

System info made easy - Python library to find system info on your computer. Requires python ≥ 3.7
https://github.com/platforminfo/platforminfo

ansible ansible-playbook bsd darwin kernel-versions linux macos os-release osversion profiler sysinfo system system-versioning windows windows-kernel

Last synced: 2 months ago
JSON representation

System info made easy - Python library to find system info on your computer. Requires python ≥ 3.7

Awesome Lists containing this project

README

        


PlatformInfo beta


![CircleCI](https://img.shields.io/circleci/build/github/platforminfo/platforminfo/development?style=for-the-badge&label=DEVELOPMENT%20BUILD&labelColor=%236f6f6f)
![PyPI - Downloads](https://img.shields.io/pypi/dm/platforminfo?style=for-the-badge&label=Downloads%20this%20month%20(excl.%20mirrors)&labelColor=%23ad9b00&link=https%3A%2F%2Fpypistats.org%2Fpackages%2Fplatforminfo&link=https%3A%2F%2Fpypistats.org%2Fpackages%2Fplatforminfo)
![CircleCI](https://img.shields.io/circleci/build/github/platforminfo/platforminfo/main?style=for-the-badge&label=STABLE%20BUILD&labelColor=%236f6f6f)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/platforminfo?style=for-the-badge&labelColor=ad9b00)
![PyPI - Version](https://img.shields.io/pypi/v/platforminfo?style=for-the-badge&label=PyPi%20version&labelColor=%23ad9b00)
![GitHub](https://img.shields.io/github/license/platforminfo/platforminfo?style=for-the-badge)

![test](https://github.com/user-attachments/assets/319e30ef-823c-4505-b90a-ff1e5c4f9e6a)

System info for Python made simple.
PlatformInfo is designed to provide a simple, yet granular interface to find system information on all major operating systems within Python.

## Features:

* Return kernel AND kernel version for Mac, Windows, Linux
* Return OS versions for Windows, Mac, Linux
* Return OS build numbers for Windows, Mac
* Return desktop environments
* Return architecture (Linux/Mac only, Windows planned)

## Prerequisites
* Python 3 or up

## Installation:
To install PlatformInfo, you can download install it with pip (recommended) or install it from the development wheel.

**PyPi install (recommended):**
`pip install platforminfo`

**Manual install**
Download it from our [Development CI](https://app.circleci.com/pipelines/github/platforminfo/platforminfo?branch=development) and run `pip install /path/to/platforminfo-nightly.whl'

## Quick Start Guide:
TO start, import platforminfo and create a `Platform` object

```python
import platforminfo
computer = platforminfo.Platform()
```

To access information, find the name of the information you want (in this example I want `osVersion`).

```python
import platforminfo
computer = platforminfo.Platform()

value = computer.osVersion()
```

## Feature Requests
If you have a suggestion, [feel free to submit a feature request](https://github.com/platforminfo/platforminfo/issues).
You can grab the nightly builds on our [Development CI](https://app.circleci.com/pipelines/github/platforminfo/platforminfo?branch=development)