{"id":34624566,"url":"https://github.com/dankmeme01/broma-tools","last_synced_at":"2026-05-27T02:33:33.208Z","repository":{"id":261946509,"uuid":"885794583","full_name":"dankmeme01/broma-tools","owner":"dankmeme01","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-02T19:53:41.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-27T02:33:18.538Z","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/dankmeme01.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}},"created_at":"2024-11-09T12:19:14.000Z","updated_at":"2025-04-02T19:53:44.000Z","dependencies_parsed_at":"2024-11-09T18:55:37.684Z","dependency_job_id":null,"html_url":"https://github.com/dankmeme01/broma-tools","commit_stats":null,"previous_names":["dankmeme01/broma-tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dankmeme01/broma-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankmeme01%2Fbroma-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankmeme01%2Fbroma-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankmeme01%2Fbroma-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankmeme01%2Fbroma-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dankmeme01","download_url":"https://codeload.github.com/dankmeme01/broma-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankmeme01%2Fbroma-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33548246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-12-24T15:47:10.712Z","updated_at":"2026-05-27T02:33:33.202Z","avatar_url":"https://github.com/dankmeme01.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# broma-tools\n\nScripts for parsing and serializing broma (.bro) files.\n\nMain attraction is `broma.py` - it's a library that has various utilities. TODO: better docs\n\n## clear-offsets.py\n\nRun as `python clear-offsets.py \u003cinput\u003e \u003coutput\u003e`, parses the broma at `input`, clears all function offsets (keeps inlines and pads intact!), and outputs to `\u003coutput\u003e`\n\n## diff.py\n\nShow differences between two broma files. Incomplete, do not rely on it.\n\n## parse-and-dump.py\n\nSimply parses a broma file and outputs with no changes (except ones introduced by loss of information when parsing)\n\n## reformat.py\n\nParses the broma file, reformats it according to some rules, and writes it to a specified destination, or to the same file.\n\n## upgrade2.py\n\nGiven an older, community made broma file with filled members, inlined functions etc., and a clean broma file of a newer version, merges them to a broma file in a way so that:\n\n* It preserves all of the inlined function bodies, unless their signature has changed.\n* It preserves all the functions that are community added\n* It preserves all the struct members and pads\n* It preserves all (or most of) the comments\n* It adds the classes and methods from the newer broma file that don't exist in the older one\n* It reformats the broma file\n\n# warn.py\n\nPrints suspicious things that are detected in a broma file\n\n# TODO\n\n* c arrays members\n* template function args aren't parsed correctly (but is ok in dump!)\n* ret type should be separate from specifiers (but is ok in dump!)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankmeme01%2Fbroma-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdankmeme01%2Fbroma-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankmeme01%2Fbroma-tools/lists"}