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
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
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.6

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.6
File Size Uploaded Provenance Actions
jetquery-3.6.tar.gz 17.6 kB Without provenance Details for jetquery-3.6.tar.gz

Built distribution (wheel)

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

Total release size: 34.3 kB

Release files / jetquery-3.6.tar.gz

Download URL jetquery-3.6.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
819dd5b18b2707661b205485573ea614739b3143024859930929a2766b7827db
BLAKE2b-256 checksum
How to use checksums
5d4592834f4246f2500e8ef8c818bc2a159dad551fad59b63727a31f35557b63
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.6-py3-none-any.whl

Download URL jetquery-3.6-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f3023f241efef62a3549b6bb5923ff3f18ee43853138a1180d62696c55e98ab
BLAKE2b-256 checksum
How to use checksums
b3a48015316fa20d07abf54791646f222177e99a14f9c08c02818ac5c77208a0
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.6

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