{"id":19031435,"url":"https://github.com/plandes/latidx","last_synced_at":"2026-02-23T23:05:09.687Z","repository":{"id":230779544,"uuid":"780148727","full_name":"plandes/latidx","owner":"plandes","description":"Parse and index Latex","archived":false,"fork":false,"pushed_at":"2026-01-01T01:19:29.000Z","size":186,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-05T15:52:41.165Z","etag":null,"topics":["latex","parser"],"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/plandes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2024-03-31T20:38:26.000Z","updated_at":"2026-01-01T01:18:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"7578217a-fb95-4f9c-8943-4db43da13c47","html_url":"https://github.com/plandes/latidx","commit_stats":null,"previous_names":["plandes/latidx"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/plandes/latidx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Flatidx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Flatidx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Flatidx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Flatidx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plandes","download_url":"https://codeload.github.com/plandes/latidx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Flatidx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29760100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T21:02:23.375Z","status":"ssl_error","status_checked_at":"2026-02-23T20:58:31.539Z","response_time":90,"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":["latex","parser"],"created_at":"2024-11-08T21:23:27.562Z","updated_at":"2026-02-23T23:05:09.682Z","avatar_url":"https://github.com/plandes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Parse and index LaTeX files\n\n[![PyPI][pypi-badge]][pypi-link]\n[![Python 3.13][python313-badge]][python313-link]\n[![Build Status][build-badge]][build-link]\n\nThis library parses and indexes includes and macros in latex files.  This\npackage can be [used](#usage) as a command line tool or an API.  The following\nare parsed and reported:\n\n* Package imports using `\\usepackage` to create dependency trees.\n* Macro defined with `\\newcommand`.\n\n\n## Documentation\n\nSee the [full documentation](https://plandes.github.io/latidx/index.html).\nThe [API reference](https://plandes.github.io/latidx/api.html) is also\navailable.\n\n\n## Obtaining\n\nThe library can be installed with pip from the [pypi] repository:\n```bash\npip3 install zensols.latidx\n```\n\n## Usage\n\nThis package can be used as a command line tool or an API.\n\n\n### Command Line\n\nTo get the dependencies of a LaTeX project (in this case using the test case\nproject for the example), use\n\n```bash\nlatidx deps test-resources/proj\n```\n\nOutput:\n```\nroot\n +-- child.sty\n +-- root.tex\n     +-- child.sty\n     +-- orphan.sty\n```\n\n### API\n\n```python\n\u003e\u003e\u003e from pathlib import Path\nfrom pathlib import Path\n\u003e\u003e\u003e from zensols.latidx import LatexIndexer, ApplicationFactory\nfrom zensols.latidx import LatexIndexer, ApplicationFactory\n\u003e\u003e\u003e idx: LatexIndexer = ApplicationFactory.get_indexer()\nidx: LatexIndexer = ApplicationFactory.get_indexer()\n\u003e\u003e\u003e proj = idx.create_project((Path('test-resources') / 'proj',))\nproj = idx.create_project((Path('test-resources') / 'proj',))\n\u003e\u003e\u003e proj.write()\nproj.write()\nfiles:\n    path: test-resources/proj/root.tex\n    usepackages:\n        child @ 16\n        orphan @ 46\n    newcommands:\n        rootcmd @ 90\n...\n```\n\n\n## Changelog\n\nAn extensive changelog is available [here](CHANGELOG.md).\n\n\n## Community\n\nPlease star this repository and let me know how and where you use this API.\n[Contributions](CONTRIBUTING.md) as pull requests, feedback, and any input is\nwelcome.\n\n\n## License\n\n[MIT License](LICENSE.md)\n\nCopyright (c) 2024 - 2026 Paul Landes\n\n\n\u003c!-- links --\u003e\n[pypi]: https://pypi.org/project/zensols.latidx/\n[pypi-link]: https://pypi.python.org/pypi/zensols.latidx\n[pypi-badge]: https://img.shields.io/pypi/v/zensols.latidx.svg\n[python313-badge]: https://img.shields.io/badge/python-3.13-blue.svg\n[python313-link]: https://www.python.org/downloads/release/python-3130\n[build-badge]: https://github.com/plandes/latidx/workflows/CI/badge.svg\n[build-link]: https://github.com/plandes/latidx/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplandes%2Flatidx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplandes%2Flatidx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplandes%2Flatidx/lists"}