Skip to main content

A tool to extract json from pytest-html report

Project description

CI Status PyPI package version PyPI python versions

pgpro-pytest-html-json-extractor

A tool to extract json data from pytest-html report. Developed and maintained by Postgres Professional.

Installation

You can install the package directly from the repository (until it's published to PyPI):

pip install pgpro-pytest-html-json-extractor

Usage

After installation, the tool is available via the pgpro-pytest-html-json-extractor command.

Basic Examples

Extract JSON from a report:

pgpro-pytest-html-json-extractor report.html -o report.json

Command Line Arguments

Argument Shorthand Required Description Default
--version No Show program's version number and exit None
--out -o Yes Name of the output JSON file None
--verbose -v No Level of logging verbosity 3
--no-check-json No Do not validate json data after extraction None
--replace -r No Replace output if it exists None
input Yes Positional argument for HTML file None

Contributing

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/amazing-feature).
  3. Commit your changes (git commit -m 'feat: add some amazing feature').
  4. Push to the branch (git push origin feature/amazing-feature).
  5. Open a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

© 2026 Postgres Professional

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgpro_pytest_html_json_extractor-1.0.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file pgpro_pytest_html_json_extractor-1.0.0.tar.gz.

File metadata

File hashes

Hashes for pgpro_pytest_html_json_extractor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a1d705a62fda42b2ba04e674c35c7b70f5e1ee1d1ec944c2868630b10fb0df80
MD5 81a0ee71009de5954b2be2b46b21571a
BLAKE2b-256 5f63c7d1933e1c5c6afcfc5fd161fe80bc1238d6ec3c3324731eb251b3ab3c37

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgpro_pytest_html_json_extractor-1.0.0.tar.gz:

Publisher: python-publish.yml on postgrespro/pgpro-pytest-html-json-extractor

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

File details

Details for the file pgpro_pytest_html_json_extractor-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pgpro_pytest_html_json_extractor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b753f753d041b45033aef2e671aec6afe0a430255ca4f2def103ccb261746b5c
MD5 594cb78c9272198c76242871a1943908
BLAKE2b-256 82df28b043dcf8104c2946e026dbc1529a74576c28bd3fda0810cb43b5d344bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgpro_pytest_html_json_extractor-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on postgrespro/pgpro-pytest-html-json-extractor

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page