{"id":39764316,"url":"https://github.com/tzussman/valparse","last_synced_at":"2026-01-18T11:43:39.695Z","repository":{"id":62708249,"uuid":"473885325","full_name":"tzussman/valparse","owner":"tzussman","description":"Package to parse Valgrind XML output files","archived":false,"fork":false,"pushed_at":"2025-12-15T08:53:41.000Z","size":143,"stargazers_count":4,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-18T07:26:09.629Z","etag":null,"topics":["parser","valgrind","xml"],"latest_commit_sha":null,"homepage":"","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/tzussman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2022-03-25T05:51:54.000Z","updated_at":"2025-12-15T08:53:31.000Z","dependencies_parsed_at":"2024-05-19T00:27:42.369Z","dependency_job_id":"e8ba276d-7a28-408a-b9a5-7337aa8c7a87","html_url":"https://github.com/tzussman/valparse","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tzussman/valparse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tzussman%2Fvalparse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tzussman%2Fvalparse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tzussman%2Fvalparse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tzussman%2Fvalparse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tzussman","download_url":"https://codeload.github.com/tzussman/valparse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tzussman%2Fvalparse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28535177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["parser","valgrind","xml"],"created_at":"2026-01-18T11:43:39.618Z","updated_at":"2026-01-18T11:43:39.682Z","avatar_url":"https://github.com/tzussman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# *valparse,* a parser for Valgrind-generated XML files\n\n[![PyPI](https://img.shields.io/pypi/v/valparse)](https://pypi.org/project/valparse/)\n[![License](https://img.shields.io/github/license/tzussman/valparse)](https://github.com/tzussman/valparse)\n![GitHub issues](https://img.shields.io/github/issues/tzussman/valparse)\n[![Build Status](https://github.com/tzussman/valparse/workflows/Build%20Status/badge.svg?branch=main)](https://github.com/tzussman/valparse/actions?query=workflow%3A%22Build+Status%22)\n[![codecov](https://codecov.io/gh/tzussman/valparse/branch/main/graph/badge.svg)](https://codecov.io/gh/tzussman/valparse)\n[![Docs](https://img.shields.io/badge/-docs-blueviolet)](https://tzussman.github.io/valparse)\n\n*valparse* supports protocol version 4 with [*Memcheck*][memcheck] only, but can\nbe easily modified to support [*Helgrind*][helgrind] and other protocol tools.\n\n[memcheck]: https://valgrind.org/docs/manual/mc-manual.html\n[helgrind]: https://valgrind.org/docs/manual/hg-manual.html\n\n## Installation\n\n*valparse* can be insalled by running\n\n```sh\npip install valparse\n```\n\nAnaconda hosting may be added in the future.\n\n## About Valgrind `.xml` files\nBy default, [Valgrind][valgrind] output is printed to `stderr`. While readable,\nValgrind's unmodified output is not very easily parsable. However, output can be\ngenerated in the form of XML code and redirected to a `.xml` file by running\nValgrind with the following options:\n\n[valgrind]: https://valgrind.org/\n\n```sh\nvalgrind --leak-check=full --xml=yes --xml-file=\u003cxml-file-name\u003e ./\u003cexecutable\u003e \u003cargs\u003e\n```\n\nSome examples of `.xml` files generated by Valgrind are included in the\n`/examples` directory.\n\nValgrind does not support XML output for fd leaks as of version 3.18.1.\n\n## Usage\n\nBelow is an example of basic `valparse` usage:\n\n```py\nimport valparse\n\nxml_file = valparse.Parser('./test.xml')\nif xml_file.hasLeaks() or xml_file.hasErrors():\n    print(\"Leaks or errors found!\")\n```\n\n## Features\n\n-   Error generation for nonexistent/incorrectly formatted TOPLEVEL tags\n\n-   Error generation for nonexistent/incorrectly formatted PROTOCOL tags\n\n-   Basic Valgrind output parsing\n\n    -   Check for existence of errors or leaks\n\n-   Check for fatal signal\n\n    -   Count errors and leaks *(if applicable)*\n\n    -   Error and leak parsing *(if applicable)*\n\n    -   Fatal signal parsing *(if applicable)*\n\n-   Optional user-friendly `.supp` file generation\n\n### TOPLEVEL tags\n\n*valparse* checks for the existence and correct formatting of the following\nTOPLEVEL tags:\n\n-   protocolversion *(4)*\n\n-   protocoltool *(memcheck)*\n\n### PROTOCOL tags\n\n*valparse* checks for the existence and correct formatting of the following\nPROTOCOL tags:\n\n-   preamble\n\n-   pid\n\n-   ppid\n\n-   tool\n\n-   args\n\n-   status\n\n-   suppcounts\n\n*Note: Valgrind supplies an 'errorcounts' tag, but it seems largely unreliable.\nWe've decided to generate this information manually.*\n\n### Basic Valgrind output parsing\n\nThe primary function of *valparse* is to generate usable content from Valgrind\noutput. *valparse* was created with our grading scripts in mind, so it counts\nthe number of errors, leaks, unique errors, unique leaks, and total bytes\nleaked. *valparse* also checks for the presence of a fatal signal.\n\n### `.supp` file generation\n\nWithin each `\u003csuppression\u003e` tag, Valgrind supplies a `\u003crawtext\u003e` tag that can be\nused to make `.supp` files, but it's cryptic and requires direct editing. We've\nassembled this information manually to make it more user-friendly, customizable,\nand generally better. *valparse* supports the dynamic generation of `.supp`\nfiles, which can be utilised when running Valgrind to suppress certain leaks or\nerrors. Files can be generated in write (default) or append mode, and users can\nspecify suppression names as well as `.supp` file names.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftzussman%2Fvalparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftzussman%2Fvalparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftzussman%2Fvalparse/lists"}