Skip to main content

The PNU Project

Project description

PNU logo

PNU, as in PNU is Not Unix, is a challenge project and a learning exercise to reimplement UNIX command-line tools in Python, forming a kind of "pytnix" portable user-land utilities collection.

It's meant to be pronounced "Pneu" (tyre in French), a "pun" which seems appropriate as it's clearly another reinvention of the wheel, longtime after the GNU project :-)

Objectives:

Project status:

pip install PNU

or you can install PNU plus a selection of additional third-parties tools with this command:

pip install pytnix
  • This page is both for the challenge description and for referencing unix tools rewrites made by contributors.
  • To contribute you can simply create:
    • your own Github repositories and link them to the project by using the pnu-project topic
    • your own PyPi packages and link them to the project by using the pnu-project keyword (but please don't use the "pnu-" package prefix for your own entries)

How to contribute:

Suggested tasks and progression:

The following, (A)D&D inspired, level structure is proposed for gamification. We suggest level bosses in order to complete a level (but no Demogorgon here, we are not in Stranger Things :-)) and associated :trophy: trophies for fun :-)

We're also thinking about offering Habitica's quests for further gamification.

The following classification of commands is still in progress.

Basic levels

Level 1 sub projects

Handling return codes, printing to the terminal:

Level 2 sub projects

Basic string handling:

Basic math or data structures, school level:

Level 3 sub projects

Basic filters, command line & environment processing, file operations:

Level 4 sub projects

Basic text processing utilities, multiple files or many options:

  • cat => with full options
  • nl
  • cmp
  • comm
  • uniq => suggested level boss. Trophy: :one:

Level 5 sub projects

Basic utilities using more complex parsing:

Intermediate levels

System utilities (implying minimum Unix system knowledge). Regular expressions, text parsing. CSV, JSON, XML, HTML data handling.

Level 6 sub projects

Basic system utilities.

Level 7 sub projects

Basic system utilities, possibly recursive ones:

Level 8 sub projects

Level 9 sub projects

Level 10 sub projects

Advanced levels

Full screen text applications, windowed applications, office documents manipulation, image manipulation, web scraping, network applications, automation.

Interactive full screen applications:

Advanced system utilities, data compression:

Level 11 sub projects

Level 12 sub projects

Level 13 sub projects

Level 14 sub projects

Level 15 sub projects

Master levels

Languages (interpreters, compilers), database management systems, network protocols:

Level 16 sub projects

Level 17 sub projects

Level 18 sub projects

Level 19 sub projects

Level 20 sub projects

  • sh => Suggested level boss. Trophy: :shell:

Immortal levels

It's a long way to the top if you wanna get your entry in the "Deities & Demigods" of hackers, but here are some examples to inspire you from the Unix & open source pantheon (note: having a :neckbeard: beard is not mandatory)

However, all of this is beyond the scope of the project and probably not a good idea to implement in Python :-)

Demigods level transcending projects

Full operating system kernels & device drivers:

Deities level transcending projects

Making your own hardware platform and all the software to run it.

  • Although not Unix related, :mage_man: The Woz springs to mind here and his excellent autobiography, iWoz, is highly recommended for a good glimpse into a true hacker's mind.

Download files

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

Source Distribution

PNU-2023.3.25.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

PNU-2023.3.25-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file PNU-2023.3.25.tar.gz.

File metadata

  • Download URL: PNU-2023.3.25.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for PNU-2023.3.25.tar.gz
Algorithm Hash digest
SHA256 d687d3c115a5126f0e62be65cae5affd4243708c2b2497884a2768da9f828dba
MD5 535452dd392b27419e3b35b9d30df95e
BLAKE2b-256 4e0f31cce282d61610c4f1e33b19a27c34b1d4e5a42c3051466b7ef0797c1848

See more details on using hashes here.

File details

Details for the file PNU-2023.3.25-py3-none-any.whl.

File metadata

  • Download URL: PNU-2023.3.25-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for PNU-2023.3.25-py3-none-any.whl
Algorithm Hash digest
SHA256 370c9e10c42749c7128b825316f6d9d9dfffddd87707913a221bf597bbbaf473
MD5 99465029859ffe02b438f390c228d335
BLAKE2b-256 3cb3a82dc64f2d25c7befba55d87cac570cfaddae4199e914d705b26e1c5b86c

See more details on using hashes here.

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