Package: pyarchey2
PyArchey2 drops support for Python 2.7. The motivation for PyArchey2 is performance. Main
changes includes multi-threading to speed up information gathering and uses f-strings for
string formatting. Also, added logging and bytes labels are expanded to yottabytes.—This is based off thearcheycommand (which is also python) distributed by various
linux, unix, and osx package managers. In order to avoid a naming conflict between them,
I called thispyarchey.PyArchey is developed for and tested under Python 2.7, no guarrentee is made
about its suitability for Python 3.x. Pull requests adding 3.x support are
welcome.Currently,pyarcheysupports logos for Arch, Fedora, LinuxMint, Ubuntu, SUSE, Debian,
Raspbian, Gentoo, OpenBSD, generic Linux, and Slackware.[kevin@Tardis soccer2]$ pyarchey -z

                  ##             User: kevin
               ####              Hostname: Tardis.local
               ##                IP: 192.168.1.4 / 58:B0:35:F2:25:D8
       #######    #######        OS: Mac OSX 10.10.5 x86_64
     ######################      Kernel: 14.5.0
    #####################        Uptime: 13 days 14 hrs 45 mins
    ####################         Shell: /bin/bash
    ####################         Processes: 214 running
    #####################        Packages: 113
     ######################      CPU: Intel Core2 Duo P8600 @ 2.40GHz
      ####################       CPU Usage: [17.8, 13.9]
        ################         RAM: 7.0 GB/ 8.0 GB
          ###     ####           Disk: 219.0 / 233.0 GB



pi@calculon ~/github/pyarchey $ pyarchey -z

        .~~.   .~~.      User: pi
       '. \ ' ' / .'     Hostname: calculon
        .~ .~~~..~.      IP: 192.168.1.17 / B8:27:EB:0A:5A:17
       : .~.'~'.~. :     OS: Raspbian 7 (wheezy) armv6l
      ~ (   ) (   ) ~    Kernel: 4.1.6+
     ( : '~'.~.'~' : )   Uptime: 15 days 21 hrs 23 mins
      ~ .~ (   ) ~. ~    Shell: /bin/bash
       (  : '~' :  )     Processes: 73 running
        '~ .~~~. ~'      Packages: 960
            '~'          CPU: ARMv6-compatible processor rev 7 (v6l)
                         CPU Usage: [1.0]
                         RAM: 216.0 MB/ 229.0 MB
                         Disk: 4.0 / 15.0 GB


pi@calculon ~/github/pyarchey $ pyarchey -zj
{"Kernel": "4.1.6+", "Uptime": "15 days 21 hrs 39 mins", "Shell": "/bin/bash",
"Disk": "4.0 / 15.0 GB", "IP": "192.168.1.17 / B8:27:EB:0A:5A:17", "Hostname":
"calculon", "Processes": "73 running", "RAM": "215.0 MB/ 229.0 MB", "User": "pi",
"CPU Usage": "[3.9]", "Packages": 960, "OS": "Raspbian 7 (wheezy) armv6l", "CPU":
"ARMv6-compatible processor rev 7 (v6l)"}RequirementsSome of the custom code was removed andpsutilwas used to provide a cross-platform
solution.InstallThe preferred way is to usepypi.orgpip install pyarchey2You can also do:git clone https://github.com/renyi/pyarchey2.git
cd pyarchey
python setup.py installIf you plan on doing some development, instead ofinstallyou can dodevelop.UsageTo run:pyarcheyargs:-d,--displaydisplay ascii logos for all distributions-h,--helphelp-j,--jsonoutput json of system info, nothing is printed to the screen-z,--zeroconfigadd.localto a hostname for zeroconfig to find IP address easier--verboseenables more verbose messages--debugprint debug messagesHistoryAs far as I am aware, this was started by @djmelik which was then forked by
@mikeantonacci where I forked it form him.ContributionsDimitris Zlatanidis (dslackw) - Slackware supportmikeantonacci - fixed tab errorsAlessandro-Barbieri - Gentoo supportChangesDateVersionNotes29 Mar 150.4.0Forked4 Apr 150.5.0Added Apple logo, changed custom code topsutil11 Apr 150.6.0Added commandline args for: displaying ascii logos, json output, zeroconfig26 Aug 150.6.2Minor fixes21 Sep 150.6.3OSX now reports OSX version and minor other fixes22 Sep 150.6.4Arch linux fix23 Sep 150.6.5Refactoring to remove some command line programs23 Sep 150.6.6Bug fix6 Oct 150.6.7Bug fix with Python 320 Oct 150.6.8Colored the leaves on Rpi ascii image3 Jun 160.7Bug fix with Python 3 and some PEP8 fixes19 Jul 192.0.0Dropped Python 2 support.
Added multithreading and queues to speed up information gathering.
Added logging.
Allow output() to override json.dumps().
Use f-strings for string formatting.
Added format_bytes to fix some bugs and expand labels to yottabyte.