miniclient
A minimal python http client that runs JavaScript, without a browser. Meant to be used as a lightweight test client to simulate browser interactions. Embeds a V8 Runtime, DOM, and is designed to run htmx especially well.
Install
uv add miniclient
Example
The snippet below opens a page, submits a search form, clicks a "load more" button and reads the results back. All against a real in-memory DOM running JavaScript (htmx, for example). No browser involved.
from miniclient.page import Page
with Page() as page:
page.goto("http://localhost:8000/")
page.find("input[name=q]").fill("htmx")
page.find("form").requestSubmit()
page.find("#load-more").click()
print(len(page.find_all("#results li")), "results")
print(page.find("#results li:first-child").text)
Check the full documentation: https://marciomazza.github.io/miniclient/
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file miniclient-0.2.1.tar.gz.
File metadata
- Download URL: miniclient-0.2.1.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a94e85bbff80a3a3c8799d1c5f19be6413194254c780ca196b2f9e76a4ee8de2
|
|
| MD5 |
63b72b416cd00d055b8e3ad7d4f87b19
|
|
| BLAKE2b-256 |
7a29207d3f7dedc275ccbf836d0375972af1f06d51bc459296f7d545b479931e
|
Provenance
The following attestation bundles were made for miniclient-0.2.1.tar.gz:
Publisher:
release.yml on marciomazza/miniclient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
miniclient-0.2.1.tar.gz -
Subject digest:
a94e85bbff80a3a3c8799d1c5f19be6413194254c780ca196b2f9e76a4ee8de2 - Sigstore transparency entry: 2618068296
- Sigstore integration time:
-
Permalink:
marciomazza/miniclient@3f39678aa053a3890dfeb623db7aa0fb6c32dd43 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/marciomazza
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3f39678aa053a3890dfeb623db7aa0fb6c32dd43 -
Trigger Event:
push
-
Statement type:
File details
Details for the file miniclient-0.2.1-cp314-cp314-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: miniclient-0.2.1-cp314-cp314-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 25.3 MB
- Tags: CPython 3.14, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c13f743853bf40f09dddaa2bbf88285291396543cdfd785df6027df359c1ad48
|
|
| MD5 |
6ffcbf52543186b0e8e47cfdc2e53c00
|
|
| BLAKE2b-256 |
1e350ed4aab55eb457bafdfdfe7110a1a9f5b10b4eb2156ec0f1914d8acc6528
|
Provenance
The following attestation bundles were made for miniclient-0.2.1-cp314-cp314-manylinux_2_28_x86_64.whl:
Publisher:
release.yml on marciomazza/miniclient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
miniclient-0.2.1-cp314-cp314-manylinux_2_28_x86_64.whl -
Subject digest:
c13f743853bf40f09dddaa2bbf88285291396543cdfd785df6027df359c1ad48 - Sigstore transparency entry: 2618068313
- Sigstore integration time:
-
Permalink:
marciomazza/miniclient@3f39678aa053a3890dfeb623db7aa0fb6c32dd43 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/marciomazza
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3f39678aa053a3890dfeb623db7aa0fb6c32dd43 -
Trigger Event:
push
-
Statement type:
File details
Details for the file miniclient-0.2.1-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: miniclient-0.2.1-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 23.2 MB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f650c234af501b9160751c5ae8ae9ab83ba9b92175de32429d8b640f517c719c
|
|
| MD5 |
e9df877ef18d6bb8681b50242845e808
|
|
| BLAKE2b-256 |
205e0511fa7376788979f276cf616c1a31ae3d08c2754e3b3c00abfc75b13108
|
Provenance
The following attestation bundles were made for miniclient-0.2.1-cp314-cp314-macosx_11_0_arm64.whl:
Publisher:
release.yml on marciomazza/miniclient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
miniclient-0.2.1-cp314-cp314-macosx_11_0_arm64.whl -
Subject digest:
f650c234af501b9160751c5ae8ae9ab83ba9b92175de32429d8b640f517c719c - Sigstore transparency entry: 2618068307
- Sigstore integration time:
-
Permalink:
marciomazza/miniclient@3f39678aa053a3890dfeb623db7aa0fb6c32dd43 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/marciomazza
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3f39678aa053a3890dfeb623db7aa0fb6c32dd43 -
Trigger Event:
push
-
Statement type: