{"id":13501213,"url":"https://github.com/gauge-sh/tach","last_synced_at":"2025-10-12T03:31:36.657Z","repository":{"id":220214000,"uuid":"751038600","full_name":"gauge-sh/tach","owner":"gauge-sh","description":"A Python tool to visualize + enforce dependencies, using modular architecture 🌎 Open source 🐍 Installable via pip 🔧 Able to be adopted incrementally - ⚡ Implemented with no runtime impact ♾️ Interoperable with your existing systems 🦀 Written in rust","archived":false,"fork":false,"pushed_at":"2025-09-08T04:14:59.000Z","size":24097,"stargazers_count":2458,"open_issues_count":35,"forks_count":68,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-09-12T12:23:38.751Z","etag":null,"topics":["ci","cli","code-quality","config","dependency-management","developer-tools","devops","framework","library","monorepo","open-source","package","productivity","programming","python","rust","static-code-analysis","terminal"],"latest_commit_sha":null,"homepage":"https://docs.gauge.sh/","language":"Rust","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/gauge-sh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing/setting-up-project.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}},"created_at":"2024-01-31T20:12:23.000Z","updated_at":"2025-09-08T19:12:40.000Z","dependencies_parsed_at":"2024-04-25T02:00:30.050Z","dependency_job_id":"0b18af34-b9ff-4796-bcb1-b4088b5c643a","html_url":"https://github.com/gauge-sh/tach","commit_stats":null,"previous_names":["never-over/modguard","gauge-sh/tach","never-over/tach","gauge-sh/python-modular-monorepo-framework-tool","gauge-sh/tach-python-modular-monorepo-framework-tool"],"tags_count":131,"template":false,"template_full_name":null,"purl":"pkg:github/gauge-sh/tach","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauge-sh%2Ftach","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauge-sh%2Ftach/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauge-sh%2Ftach/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauge-sh%2Ftach/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gauge-sh","download_url":"https://codeload.github.com/gauge-sh/tach/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauge-sh%2Ftach/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010148,"owners_count":26084692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","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":["ci","cli","code-quality","config","dependency-management","developer-tools","devops","framework","library","monorepo","open-source","package","productivity","programming","python","rust","static-code-analysis","terminal"],"created_at":"2024-07-31T22:01:29.359Z","updated_at":"2025-10-12T03:31:36.652Z","avatar_url":"https://github.com/gauge-sh.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Tach\n\u003e ⚠️ **UNMAINTAINED**: This repository is no longer actively maintained. Issues and pull requests may not receive a response.\n\n[![downloads](https://static.pepy.tech/badge/tach/month)](https://pepy.tech/project/tach)\n[![version](https://img.shields.io/pypi/v/tach.svg)](https://pypi.Python.org/pypi/tach)\n[![license](https://img.shields.io/pypi/l/tach.svg)](https://pypi.Python.org/pypi/tach)\n[![python](https://img.shields.io/pypi/pyversions/tach.svg)](https://pypi.Python.org/pypi/tach)\n[![ci](https://github.com/gauge-sh/tach/actions/workflows/ci.yml/badge.svg)](https://github.com/gauge-sh/tach/actions/workflows/ci.yml)\n[![pyright](https://microsoft.github.io/pyright/img/pyright_badge.svg)](https://microsoft.github.io/pyright/)\n[![ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\nTach is a Python tool to enforce dependencies and interfaces, written in Rust.\n\nTach is inspired by the [modular monolith](https://www.milanjovanovic.tech/blog/what-is-a-modular-monolith) architecture.\n\n[Docs](https://docs.gauge.sh)\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"docs/assets/light_logo.png\" alt=\"gauge-logo\" width=\"30%\"  style=\"border-radius: 50%; padding-bottom: 20px\"/\u003e\n\u003c/div\u003e\n\nhttps://github.com/user-attachments/assets/11eec4a1-f80a-4f13-9ff3-91a9760133b6\n\n\n\nTach can enforce:\n\n- 📋 Imports only come from [declared dependencies](https://docs.gauge.sh/usage/configuration#modules)\n- 🤝 Cross-module calls use the [public interface](https://docs.gauge.sh/usage/configuration#interfaces)\n- ⛓️‍💥 [No cycles](https://docs.gauge.sh/usage/configuration) in the dependency graph\n\n\nTach is:\n\n- 🌎 Open source\n- 🐍 Installable via pip\n- 🔧 Able to be adopted incrementally\n- ⚡ Implemented with no runtime impact\n- ♾️ Interoperable with your existing systems\n\n## Getting Started\n\n### Installation\n\n```bash\npip install tach\n```\n\n### Setup\n\nTach will guide you through initial project setup.\n\nRun:\n```bash\n tach init\n```\n\nAfter an introductory message, you will see a file tree interface allowing you to interactively configure your project.\n\nUse the arrow keys to navigate, and mark each module boundary with 'Enter'. You can mark all of your top-level Python packages, or just a few that you want to track.\n\nFAQ: [What is a module?](https://docs.gauge.sh/usage/faq#what-is-a-module%3F)\n\nIf your Python code lives below your project root, or if you are working in a monorepo with multiple Python packages, mark your Python [source roots](https://docs.gauge.sh/usage/configuration#source-roots) using the 's' key.\n\n### Enforcement\n\nTach comes with a cli command to enforce the boundaries that you just set up! From the root of your Python project, run:\n\n```bash\ntach check\n```\n\nYou will see:\n\n```bash\n✅ All modules validated!\n```\n\nYou can validate that Tach is working by:\n\n1. Removing an item from the `depends_on` key in `tach.toml`, or marking it as [deprecated](https://docs.gauge.sh/usage/deprecate)\n2. By adding an import between modules that didn't previously import from each other.\n\nGive both a try and run `tach check` again. This will generate an error:\n\n```bash\n❌ tach/check.py[L8]: Cannot use 'tach.filesystem'. Module 'tach' cannot depend on 'tach.filesystem'.\n```\n\nEach error indicates an import which violates your dependencies. If your terminal supports hyperlinks, click on the file path to go directly to the error.\n\nWhen an error is detected, `tach check` will exit with a non-zero code. It can be easily integrated with CI/CD, [Pre-commit hooks](https://docs.gauge.sh/usage/commands#tach-install), and [VS Code](https://marketplace.visualstudio.com/items?itemName=Gauge.tach), and more!\n\n### Extras\n\nVisualize your dependency graph.\n\n```bash\ntach show [--web]\n```\n\nTach will generate a graph of your dependencies. Here's what this looks like for Tach:\n\n![tach show](docs/assets/tach_show.png)\n\nNote that this graph is generated remotely with the contents of your `tach.toml` when running `tach show --web`.\n\nIf you would like to use the [GraphViz DOT format](https://graphviz.org/about/) locally, simply running `tach show` will generate `tach_module_graph.dot` in your working directory.\n\nYou can view the dependencies and usages for a given path:\n\n```bash\ntach report my_package/\n# OR\ntach report my_module.py\n```\n\ne.g.:\n\n```bash\n\u003e tach report python/tach/filesystem\n[Dependencies of 'python/tach/filesystem']\npython/tach/filesystem/install.py[L6]: Import 'tach.hooks.build_pre_commit_hook_content'\npython/tach/filesystem/project.py[L5]: Import 'tach.constants.CONFIG_FILE_NAME'\n...\n-------------------------------\n[Usages of 'python/tach/filesystem']\npython/tach/cache/access.py[L8]: Import 'tach.filesystem.find_project_config_root'\npython/tach/cache/setup.py[L7]: Import 'tach.filesystem.find_project_config_root'\n...\n```\n\nTach also supports:\n\n- [Public interfaces for modules](https://docs.gauge.sh/usage/interfaces/)\n- [Deprecating individual dependencies](https://docs.gauge.sh/usage/deprecate)\n- [Layered architecture](https://docs.gauge.sh/usage/layers)\n- [Incremental adoption](https://docs.gauge.sh/usage/unchecked-modules)\n- [Generating JSON dependency maps](https://docs.gauge.sh/usage/commands#tach-map)\n- [Monorepos and namespace packages](https://docs.gauge.sh/usage/configuration#source-roots)\n- [Domain ownership](https://docs.gauge.sh/usage/configuration#tach-domain-toml)\n- [Inline 'ignore' comments](https://docs.gauge.sh/usage/tach-ignore)\n- [Pre-commit hooks](https://docs.gauge.sh/usage/commands#tach-install)\n\nMore info in the [docs](https://docs.gauge.sh/). Tach logs anonymized usage statistics which can be [opted out](https://docs.gauge.sh/usage/faq/) of.\nIf you have any feedback, we'd love to talk!\n\nIf you have any questions or run into any issues, let us know by submitting a [Github Issue](https://github.com/gauge-sh/tach/issues)!\n\n---\n\n### Contributors\n\n\u003ca href=\"https://github.com/gauge-sh/tach/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=gauge-sh/tach\" /\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgauge-sh%2Ftach","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgauge-sh%2Ftach","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgauge-sh%2Ftach/lists"}