# gawel/pyquery

A jquery-like library for python

Repository: https://github.com/gawel/pyquery
Canonical: https://ross.abutalabs.com/products/pyquery
Homepage: http://pyquery.rtfd.org/
Language: Python
License: NOASSERTION
License Family: other
Topics: python, python3, jquery, lxml, css
Last push: 2026-07-27T19:00:11+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 5026, "days_push": 37, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2377, forks 187 (observed 2026-08-28T04:06:42.126355+00:00)

## What it is
pyquery is a Python library that provides a jQuery-like API for querying and manipulating XML and HTML documents, built on top of lxml for fast parsing. It lets you load documents from strings, files, or URLs and select elements using CSS selectors and jQuery pseudo-classes.

## Use cases
- scrape data from html pages using css selectors
- parse and manipulate xml documents in python
- extract elements from html like jquery does
- rewrite or modify html content programmatically
- query dom elements with pseudo-classes like :first and :checked

## When to choose
- you know jQuery and want the same selector API in Python
- you need fast HTML/XML parsing via lxml
- you're scraping or transforming HTML documents

## When to avoid
- you need to execute JavaScript or interact with dynamic pages (use a browser automation tool)
- you prefer BeautifulSoup's API
- you need to generate JavaScript code

## Facets
- artifact type: library
- maturity: stable
- function: parser, web-scraping
- domain: web-development, crawlers, developer-tools
- platform: python, cross-platform
- tags: jquery, lxml, html-parsing, css-selectors, xml

## Member repositories
- gawel/pyquery (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:42.126355+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:55.917897+00:00, confidence not recorded.
  - readme: https://github.com/gawel/pyquery (fetched 2026-08-28T04:06:42.126355+00:00, sha 4d93de8d03d9)
  - registry_pypi: https://pypi.org/pypi/pyquery/json (fetched 2026-08-29T10:16:26.762382+00:00, sha 907f26262a3c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
