Skip to main content

PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.

Project description

PyHw

Downloads PyPI - Version

Static Badge Static Badge

PyHw, a neofetch-like command line tool for fetching system information but written mostly in Python. Currently, this project is still in the initial stage, only part of the linux systems and macOS are supported.

This project is a Python reimplementation of neofetch and references the fastfetch project for logo style settings. Since this project is implemented in Python, it will be easier to maintain and extend than bash and c implementation. Also, this project only relies on the Python standard library, so you can run it on any device that has a Python environment (I hope so 🤔).

demo

Install

There are already a lot of similar tools so you can choose any of them; they're all essentially no different. If you want to try this tool, just install it directly by pip.

pip install pyhw

To upgrade pyhw:

pip install pyhw --upgrade

You can then use this tool directly from the command line with the following command, just like neofetch.

pyhw

Please note that the command line entry for pyhw is created by pip, and depending on the user, this entry may not in the system PATH. If you encounter this problem, pip will give you a prompt, follow the prompts to add entry to the system PATH.

Important note about debian 12:

If you use system pip to install pyhw, you will encounter this problem on debian12 and some related distributions:

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

This is due to the fact that system python is not supposed to be managed by pip. You can use a virtual environment (venv) or force remove this restriction (not recommended).

Supported (Tested) OS

  • macOS arm64, x86_64
  • debian-based distro x86_64
  • RaspberryPi OS arm64

Build from source

Build tools

Make sure the following Python build tools are already installed.

  • setuptools
  • build
  • twine

Build package

clone the project, and run:

python -m build

or you can use the old setup.py style command:

python setup.py sdist bdist_wheel

After the build process, the source package and the binary whl package can be found in the dist folder.

Project details


Download files

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

Source Distribution

pyhw-0.4.0.tar.gz (25.7 kB view hashes)

Uploaded Source

Built Distribution

pyhw-0.4.0-py3-none-any.whl (39.2 kB view hashes)

Uploaded Python 3

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