- package: tis-jq
- name: jq
- version: 1.8.1-2
- categories: Development
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: opensource_free,wapt_public
- target_os: windows
- architecture: x64
- signature_date:
- size: 419.75 Ko
- homepage : https://jqlang.github.io/jq/
package : tis-jq
version : 1.8.1-2
architecture : x64
section : base
priority : optional
name : jq
categories : Development
maintainer : WAPT Team,Tranquil IT,Amel FRADJ
description : jqis a lightweight, flexible command-line JSON processor
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version : 2.3
sources :
installed_size :
impacted_process :
description_fr : jqest un processeur JSON en ligne de commande léger et flexible
description_pl : jqis - lekki, elastyczny procesor JSON wiersza poleceń
description_de : jqist ein schlanker und flexibler JSON-Befehlszeilenprozessor
description_es : jqis un procesador JSON de línea de comandos ligero y flexible
description_pt : jqis um processador JSON de linha de comando leve e flexível
description_it : jqis un processore JSON leggero e flessibile a riga di comando
description_nl : jqis een lichtgewicht, flexibele commandoregel JSON-verwerker
description_ru : jqis - легкий и гибкий процессор JSON из командной строки
audit_schedule :
editor :
keywords :
licence : opensource_free,wapt_public
homepage : https://jqlang.github.io/jq/
package_uuid : 8186f918-3482-41bd-888c-2e36282b8a66
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 450b11537fb865b912299aa81a0953b433041d1eac5cb6662c87f518c139d639
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-07-20T09:02:43.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature : EDPqyPXWBizusgTw3DWpvGDYaubNa+yt5YOE1BAbn7GGl6h08s7mJ4VmkxKuIc0qM7NboOqvsB2Bk3uteKmpKVq4ZFESsuCSjycxLnQfa2vuSPA1KR6bMrPfCmUjtwhzNqGneJKs8cBEOXwd5qHjYKhwAyE3N0xDvvM18oNZnSN1m7nERMof7Wc9GUKR1BYjg7lSIGrYHjldX+5oZQwKZihhuo5NOLaRfht+2WwDyl7QWKHaLsATsVWe+T8Jcr11+uUiZFexXdK5p0qqwSi8Muq3zBhQAAMm9OoW28HlN1XcQU9RLf24ug55jOrETmH3oE6H9bf0HFgDi2+4lvGtoQ==
# -*- coding: utf-8 -*-
from setuphelpers import *
import glob
app_name = "jq"
app_dir = makepath(programfiles, app_name)
def install():
bin_name = glob.glob('*.exe')[0]
app_path = makepath(app_dir, bin_name)
# Installing software
killalltasks(ensure_list(control.impacted_process))
if isdir(app_dir) and force:
remove_tree(app_dir)
mkdirs(app_dir)
filecopyto(bin_name, app_path)
add_to_system_path(app_dir)
def uninstall():
# Uninstalling software
killalltasks(ensure_list(control.impacted_process))
for uninstall in installed_softwares('jq'):
uninstall_string = uninstall.get("uninstall_string", "")
print(f"Uninstalling jq: {uninstall_string}")
run(f"{uninstall_string} --uninstall --uninstall -s")
wait_uninstallkey_absent(uninstall['key'],max_loop=600)
if isdir(app_dir):
remove_tree(app_dir)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import json
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def update_package():
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
dict_arch = {
"x64" :"win64.exe" ,
"x86" :"windows-i386.exe"
}
git_repo = "jqlang/jq"
url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo
# Getting latest version information from official sources
print("API used is: %s" % url_api)
json_load = json.loads(wgets(url_api, proxies=proxies))
for download in json_load["assets"]:
if download["browser_download_url"].endswith('.exe') and dict_arch[control.architecture] in download["browser_download_url"]:
url_dl = download["browser_download_url"]
version = json_load["name"].split(' ')[-1]
break
if not isfile("jq.exe"):
package_updated = True
wget(url_dl,"jq.exe",proxies=proxies)
#nettoyer les fichiers temporaires
for f in glob.glob('*.exe'):
if f != "jq.exe":
remove_file(f)
control.set_software_version(version)
control.save_control_to_wapt()
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
2a2510584d5e484de85eb1bb97186fa49cf96e719bec171718283eb522cf5540 : WAPT/control
450b11537fb865b912299aa81a0953b433041d1eac5cb6662c87f518c139d639 : WAPT/icon.png
23cb60a1354eed6bcc8d9b9735e8c7b388cd1fdcb75726b93bc299ef22dd9334 : jq.exe
d753d86591ed4c725780633af6e86c9be6d18da135071b6c0c5abcb21bcabae8 : luti.json
ff55131de8aed896a3e5380e4be9f43021e1def1743f10203e25c9e172ad7ae7 : setup.py
9f6734558680cc0d65f74261b91e25b941147b15dd7f12b27deff605ffb1cc24 : update_package.py