Skip to main content

jetquery

Command-line interface for jetQuery.io applications.

Installation

pip install jetquery

Usage

jetquery [--action <action>] --host <host> --appname <name> [options]

Actions

Action Description
build Regenerate index.html from local JS/CSS files (no upload)
deploy Package and upload all local assets to the server (skips hidden paths, __pycache__ and, in a git repo, files excluded by .gitignore)
get Download the current application files from the server
watch Serve locally with live-reload and API proxy (default action). Ctrl+Alt+click records the clicked element as a step in the URL hash (#jq=...) and performs a plain click — copy the URL to reproduce the screen with getimage
watchall Same as watch, but deploys every modified file (any type, JS/CSS included), not only .xml/.hbs/.frx/.py/.sql/.json/.html
getimage Save a PNG screenshot (default 1920x1080, see --view) of a deployed page (after JS rendering)
gethtml Save the HTML of a deployed page after JS/DOM manipulation (<script> elements removed)

Options

Option Description
--host, -H Server hostname or URL (e.g. app.host.com)
--appname, -n Application name on the server (use www for root)
--token, -t Authentication token (or set via environment variable)
--port, -p Local web server port for watch (default: 8080)
--days deploy: upload only files modified in the last N days
--log [N] watch: save proxied JSON responses to .jetquery/log/
--url getimage/gethtml: page path relative to the host root, or absolute URL (default /). Steps recorded in #jq= are replayed first and the last element is outlined
--out getimage/gethtml: output file (default .jetquery/yyyymmdd-hhmmss-<url path>.png / .html, non-alphanumeric characters replaced with -)
--view getimage/gethtml: viewport size WIDTHxHEIGHT (e.g. 1920x100), or full to resize the viewport height to fit the whole page content (max 20000 px). Default 1920x1080
--device getimage/gethtml: mobile emulates a phone — Android user agent (so navigator.userAgent mobile checks pass), touch, device pixel ratio 2, default view 360x800
--theme getimage/gethtml: dark sets localStorage user-theme=dark and <html data-theme="dark"> before the page loads
--click getimage/gethtml: CSS/Playwright selector to click before saving, e.g. --click "text=Szukaj"; repeatable, executed in order; a failed click prints a warning and continues
--measure getimage/gethtml: print tag, classes, position, size and text of matching elements (max 50) to stdout; repeatable

Authentication

The token can be stored in an environment variable derived from the host name (dots and hyphens replaced with underscores):

# Windows
setx app_host_com YOUR_TOKEN

# Linux / macOS
export app_host_com=YOUR_TOKEN

Examples

jetquery --action deploy --host app.host.com --appname myapp
jetquery --action deploy --host app.host.com --appname myapp --days 3
jetquery --action watch  --host app.host.com --appname myapp
jetquery --action build  --host app.host.com --appname myapp
jetquery --action get    --host app.host.com --appname myapp
jetquery --action getimage --host app.host.com --appname www --url /srs/301-zamowienia-lista/view
jetquery --action gethtml  --host app.host.com --appname www --url /srs/301-zamowienia-lista/view

getimage / gethtml need Playwright with Chromium:

pip install jetquery[browser]
playwright install chromium

Requirements

  • Python 3.10+
  • requests

Metadata

Release files for jetquery 3.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jetquery 3.7
File Size Uploaded Provenance Actions
jetquery-3.7.tar.gz 18.2 kB Without provenance Details for jetquery-3.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jetquery 3.7
File Interpreter ABI Platform Actions
jetquery-3.7-py3-none-any.whl Python 3 none any Details for jetquery-3.7-py3-none-any.whl

Total release size: 35.5 kB

Release files / jetquery-3.7.tar.gz

Download URL jetquery-3.7.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
36e7e88bb2e8f900f56b8a37c4c42976fbc519c322fb22c77a7baafb824030cd
BLAKE2b-256 checksum
How to use checksums
e82186a27efb7cbd69bc20c6065dc2328531e4549d4ecae16e6291e2e134ca5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / jetquery-3.7-py3-none-any.whl

Download URL jetquery-3.7-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a2e33ba621d05aa507d68102d544d9ad78bfbaa3de107223559615fb28864e4
BLAKE2b-256 checksum
How to use checksums
0d58ca182036b4d6bb9106745b53ab566f701288e34888e833a2388527e4363c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for jetquery 3.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page