WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tag explorer  (Read 2329 times)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
tag explorer
« on: July 03, 2021, 11:19:17 AM »
This script is used to browse packages starting from the tag search. I know that tinycore already allows this through the graphic tool "Apps" and the cli tool "tce-ab" (I use tinycore tools in the script), and they are both better than my script, but I wanted a more condensed overview of the search results.
It's done in python3.9, i think maybe 3.8 is ok too, but not 3.6

An output example:
Code: [Select]
tc@box:/mnt/sdb/dati/tags$ ./tags_explorer.py
You start by searching through the tags and then and then through the filtered packages.
Generally inserting a blank space means ending the insertion.
search tag: wm
['ewmh', 'jwm', 'netwm', 'wm', 'wmf', 'wmfs', 'wmfs2']
search tag:

0) ewmh  : ['wmctrl']
1) jwm   : ['mjwm-doc', 'mjwm']
2) netwm : ['wmctrl']
3) wm    : ['chamferwm', 'gnome-session', 'hackedbox-doc', 'hackedbox', 'icewm-doc', 'icewm-help', 'icewm-list', 'icewm-locale', 'icewm', 'icewm-themes', 'jwm-full', 'jwm', 'ratpoison', 'weston-dev', 'weston', 'windowmaker-dev', 'windowmaker-locale', 'windowmaker', 'wmalauncher', 'wmctrl']
4) wmf   : ['libwmf-dev', 'libwmf']
5) wmfs  : ['wmfs2']
6) wmfs2 : ['wmfs2']
insert number of tag-section or a package name:
['chamferwm', 'gnome-session', 'hackedbox', 'hackedbox-doc', 'icewm', 'icewm-doc', 'icewm-help', 'icewm-list', 'icewm-locale', 'icewm-themes', 'jwm', 'jwm-full', 'libwmf', 'libwmf-dev', 'mjwm', 'mjwm-doc', 'ratpoison', 'weston', 'weston-dev', 'windowmaker', 'windowmaker-dev', 'windowmaker-locale', 'wmalauncher', 'wmctrl', 'wmfs2']
package name:

 0) chamferwm
 1) gnome-session
 2) hackedbox
 3) hackedbox-doc
 4) icewm
 5) icewm-doc
 6) icewm-help
 7) icewm-list
 8) icewm-locale
 9) icewm-themes
10) jwm
11) jwm-full
12) libwmf
13) libwmf-dev
14) mjwm
15) mjwm-doc
16) ratpoison
17) weston
18) weston-dev
19) windowmaker
20) windowmaker-dev
21) windowmaker-locale
22) wmalauncher
23) wmctrl
24) wmfs2

insert number or package name: 0
Title:          chamferwm.tcz
Description:    tiling vulkan/x11 wm
Version:        git 2019/06/16
Author:         see list of sites below
Original-site:  see list of sites below
Copying-policy: see list of sites below
Size: 160KB
Extension_by:   juanito
Tags:         wm x11 vulkan python python3.6
Comments:       tiling x11 window manager with vulkan compositor
                see /usr/local/share/chamferwm/config/config.py for key codes
                <alt enter> launches aterm
                This extension contains:
                chamferwm - BSDv3 - git clone https://github.com/jaelpark/chamferwm
Change-log:     2019/06/14 first version
Current:        2019/06/16 updated to fix cursor and remove border for wbar


P,s, if at the first tag prompt you just press enter you can see a complete list of tags, it's interesting to know that there are 1575 different tags in the tinycore repository while the packages are 2694 for an average of 0.58 unique tags per package :P
« Last Edit: July 03, 2021, 11:26:55 AM by vinnie »

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: tag explorer
« Reply #1 on: July 04, 2021, 11:00:31 AM »
Updated version, in the first version there is a bug reported to me by rullolex, in this one I added to the ouput of packages to the total size

Offline rullolex

  • Full Member
  • ***
  • Posts: 134
    • Rullolex
Re: tag explorer
« Reply #2 on: July 04, 2021, 12:00:18 PM »
Hi Vinnie,

I have run both the scripts and they works.