Skip to main content

miniclient

CI codecov Docs PyPI Python versions License

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

miniclient-0.2.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

miniclient-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl (24.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

miniclient-0.2.0-cp314-cp314-macosx_11_0_arm64.whl (22.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

File details

Details for the file miniclient-0.2.0.tar.gz.

File metadata

  • Download URL: miniclient-0.2.0.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

Hashes for miniclient-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cce5dfc75b79d67b3604baff52e5c100489f6d3396b785268b603ef9ceb772d3
MD5 0aba982adf1edea6a46b5f52b901d0ed
BLAKE2b-256 ae2ef316fc47e743a5d311e4857cf1ae4d1b2d0a06a6d3dfca10e7defe9133e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for miniclient-0.2.0.tar.gz:

Publisher: release.yml on marciomazza/miniclient

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file miniclient-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for miniclient-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d75abf1a5003c482f72dc9515a96d451222a52b3268fc8c969f4c252901dd166
MD5 b07d432cb0a0ef810abc87ac13e7df9d
BLAKE2b-256 5a548f7fe2b77f57816c68fc7380abd739b453967288b83bf960847e7e9b8348

See more details on using hashes here.

Provenance

The following attestation bundles were made for miniclient-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl:

Publisher: release.yml on marciomazza/miniclient

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file miniclient-0.2.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for miniclient-0.2.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a38921e843c5f5ed30e6c656bf7cb9cde8641e702cf98b07c629d9ee01049b6
MD5 f0c10cdb9a5f4634c9ef85ca26ce743f
BLAKE2b-256 4dd0f81877642b3c1a73149efc4e8e580f22d3e8a4e82fbefcfd556de6c37975

See more details on using hashes here.

Provenance

The following attestation bundles were made for miniclient-0.2.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: release.yml on marciomazza/miniclient

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.5

3 files

0.2.4

3 files

0.2.3

3 files

0.2.2

3 files

0.2.1

3 files

This release

0.2.0 This release

3 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

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