Skip to content
pybindiPublic

About

A tiny system fetch for Linux — pure Python, zero dependencies.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

nullfetch

A tiny system fetch for Linux — pure Python, zero dependencies.

Python Platform No dependencies License Check

nullfetch in a terminal

✨ Features

  • 👤 current user and hostname
  • 🐧 Linux distribution and kernel version
  • 🖥️ CPU model and GPU
  • 🧠 RAM usage
  • ⌨️ terminal type
  • 🎨 ASCII logo with bold labels
  • ❓ built-in --help
  • 📦 standard library only — nothing to install

📦 Installation

git clone https://github.com/pybindi/nullfetch.git
cd nullfetch

chmod +x nullfetch.py
ln -s "$PWD/nullfetch.py" ~/.local/bin/nullfetch

Make sure ~/.local/bin is in your PATH:

echo "$PATH" | grep -q "$HOME/.local/bin" && echo OK

Arch Linux

A PKGBUILD for the nullfetch package is included, so you can build and install it with pacman:

git clone https://github.com/pybindi/nullfetch.git
cd nullfetch
makepkg -si

pacman will pull the dependency (python) automatically. pciutils is optional and only needed for GPU detection.

Once published to the AUR, it can be installed with an AUR helper:

yay -S nullfetch

Debian / Ubuntu

Debian packaging lives in debian/. On a Debian-based system:

sudo apt install debhelper devscripts
dpkg-buildpackage -us -uc -b
sudo apt install ../nullfetch_1.0.0_all.deb

A prebuilt package is also available in the releases page.

🚀 Usage

Run from the project directory:

python nullfetch.py

Or as a command from anywhere:

nullfetch

Options

Option Description
-h, --help Show help and exit

🖼 Example output

--------------------------
        .--.
       |o_o |
       |:_/ |
      //   \ \
     (|     | )
    /'\_   _/`\
    \___)=(___/

USER: matuha
HOST: void
OS: Void Linux
kernel: 6.18.60_1
terminal: xterm-256color
CPU: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz
GPU: Intel Corporation Haswell-ULT Integrated Graphics Controller
RAM: 3 / 7 GB
--------------------------

🎨 Custom logo

logos.py contains a collection of ASCII art. Pick one and paste it into printlogo():

def printlogo():
    print(r"""        .--.
       |o_o |
       |:_/ |
      //   \ \
     (|     | )
    /'\_   _/`\
    \___)=(___/""")

r"""...""" is a raw multi-line string, so backslashes in the art do not need to be escaped.

🗂 Project structure

nullfetch/
├── nullfetch.py        # the fetch itself
├── logos.py            # ASCII art collection
├── assets/
│   └── demo.svg        # README preview
├── .github/workflows/  # syntax check on push
├── LICENSE
└── README.md

🧩 Requirements

  • Python 3.10+
  • Linux (platform.freedesktop_os_release)

📄 License

MIT — free to use, modify and share.

About

A tiny system fetch for Linux — pure Python, zero dependencies.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages