Socket
Socket
Sign inDemoInstall

platforminfo

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    platforminfo

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.


Maintainers
1

Readme

PlatformInfo beta

CircleCI PyPI - Downloads CircleCI PyPI - Python Version PyPI - Version GitHub

asciicast

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 and run `pip install /path/to/platforminfo-nightly.whl'

Quick Start Guide:

TO start, import platforminfo and create a Platform object

import platforminfo
computer = platforminfo.Platform()

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

import platforminfo
computer = platforminfo.Platform()

value = computer.osVersion()

Feature Requests

If you have a suggestion, feel free to submit a feature request. You can grab the nightly builds on our Development CI

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc