{"id":49892414,"url":"https://github.com/postgrespro/pgpro-pytest-html-json-extractor","last_synced_at":"2026-05-17T23:01:07.703Z","repository":{"id":357079063,"uuid":"1235159786","full_name":"postgrespro/pgpro-pytest-html-json-extractor","owner":"postgrespro","description":"A tool to extract json data from pytest-html report.","archived":false,"fork":false,"pushed_at":"2026-05-13T10:18:35.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-15T22:55:21.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postgrespro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-11T04:15:20.000Z","updated_at":"2026-05-13T10:15:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/postgrespro/pgpro-pytest-html-json-extractor","commit_stats":null,"previous_names":["dmitry-lipetsk-workspace/pgpro-pytest-html-json-extractor","postgrespro/pgpro-pytest-html-json-extractor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/postgrespro/pgpro-pytest-html-json-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgrespro%2Fpgpro-pytest-html-json-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgrespro%2Fpgpro-pytest-html-json-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgrespro%2Fpgpro-pytest-html-json-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgrespro%2Fpgpro-pytest-html-json-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postgrespro","download_url":"https://codeload.github.com/postgrespro/pgpro-pytest-html-json-extractor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgrespro%2Fpgpro-pytest-html-json-extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33120450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-15T21:43:39.873Z","updated_at":"2026-05-16T22:01:13.907Z","avatar_url":"https://github.com/postgrespro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI Status](https://img.shields.io/github/actions/workflow/status/postgrespro/pgpro-pytest-html-json-extractor/.github/workflows/ci.yml?label=CI)](https://github.com/postgrespro/pgpro-pytest-html-json-extractor/actions/workflows/ci.yml)\n[![PyPI package version](https://badge.fury.io/py/pgpro-pytest-html-json-extractor.svg)](https://badge.fury.io/py/pgpro-pytest-html-json-extractor)\n[![PyPI python versions](https://img.shields.io/pypi/pyversions/pgpro-pytest-html-json-extractor)](https://pypi.org/project/pgpro-pytest-html-json-extractor)\n\n# pgpro-pytest-html-json-extractor\nA tool to extract json data from pytest-html report. Developed and maintained by Postgres Professional.\n\n## Key features\n- Extractor supports pytest-html v4.0.2+\n- Extractor produces JSON with unescaped HTML entities in log messages (for pytest-html v4.1.0+)\n\n## Installation\nYou can install the package directly from the repository (until it's published to PyPI):\n```bash\npip install pgpro-pytest-html-json-extractor\n```\n\n## Usage\n\nAfter installation, the tool is available via the pgpro-pytest-html-json-extractor command.\n\n### Basic Examples\nExtract JSON from a report:\n```bash\npgpro-pytest-html-json-extractor report.html -o report.json\n```\n\n### Command Line Arguments\n\n| Argument | Shorthand | Required | Description | Default |\n| :--- | :--- | :--- | :--- | :--- |\n| `--version` | | No | Show program's version number and exit | None |\n| `--out` | `-o` | Yes | Name of the output JSON file | None |\n| `--verbose` | `-v` | No | Level of logging verbosity | `3` |\n| `--no-check-json` | | No | Do not validate json data after extraction | None |\n| `--unescape-logs` | | No | HTML entity decoding mode for logs (`auto`, `yes`, `no`) | `auto` |\n| `--replace` | `-r` | No | Replace output if it exists | None |\n| `input` | | Yes | Positional argument for HTML file | None |\n\n#### Log Unescaping Modes (--unescape-logs)\n\nThe tool provides granular control over how HTML entities (like `\u0026quot;`, `\u0026amp;` or `\u0026#34;`) are handled within test logs:\n\n- **auto (Default)**: Smart detection mode. Automatically decides whether to decode entities based on the detected pytest-html report version. It ensures that logs are restored to their original \"human-readable\" state while maintaining the safety of other report metadata.\n\n- **yes**: Forceful decoding. Every HTML entity in the log field will be converted back to its literal character. Use this if you are dealing with heavily encoded custom output.\n\n- **no**: Raw mode. Disables all decoding, leaving the log data exactly as it was stored in the HTML source (including \"Russian Doll\" double-encoding). Ideal for debugging report structure or forensic data analysis.\n\n## Contributing\n1. Fork the repository.\n2. Create your feature branch (`git checkout -b feature/amazing-feature`).\n3. Commit your changes (`git commit -m 'feat: add some amazing feature'`).\n4. Push to the branch (`git push origin feature/amazing-feature`).\n5. Open a Pull Request.\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n© 2026 Postgres Professional\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostgrespro%2Fpgpro-pytest-html-json-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostgrespro%2Fpgpro-pytest-html-json-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostgrespro%2Fpgpro-pytest-html-json-extractor/lists"}