A lightweight Python utility for retrieving system information and specifications.
Package features:
- Retrieve System, Python and Hardware related information
- Importable
- Command line callable
synfo was developed to provide an easy way retrieve system information for various uses in any Python script.
Retrieve information about the current system, Python interpreter or connected hardware. synfo can be imported as a library or called from the command line.
# Retrieve information about Python version and compiler
from synfo import Synfo
print(Synfo().python)
# Python
# ------
# version : 3.7.0
# compiler : Clang 6.0 (clang-600.0.57)
# Retrieve information about Python version and compiler
from synfo import Synfo
print(Synfo().system)
# System
# ------
# os : Darwin
# release : 18.2.0
# machine : x86_64
# architecture : 64bit
# hostname : Stephens-TouchBar-MacBook.local
# username : Stephen
print(Synfo().system.os)
# Darwin
>>> synfo
Python
------
version : 3.7.0
compiler : Clang 6.0 (clang-600.0.57)
System
------
os : Darwin
release : 18.2.0
machine : x86_64
architecture : 64bit
hostname : Stephens-TouchBar-MacBook.local
username : Stephen
Hardware
------
memory_installed : N/A
memory_available : N/A
processor_type : i386
processor_cores : 8
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
In order to utilize this package/repository you will need to have a Python (only tested on 3.6+ as of now) interpreter installed on your machine.
pip install synfo
pip install --upgrade --no-cache-dir synfo
synfo
├── __init__.py
├── _version.py
├── drives.py
├── format.py
├── package.py
└── system.py
Please see CHANGELOG for more information what has changed recently.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Stephen Neal - Initial work - synfo
This project is licensed under the Apache License - see the LICENSE.md file for details