git-analyser 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.4
2
+ Name: git-analyser
3
+ Version: 0.1.0
4
+ Summary: Git repository analyser — commit history, churn, contributor patterns, dispatches to analyser family
5
+ Author-email: Michael Borck <michael.borck@curtin.edu.au>
6
+ License: MIT
7
+ Classifier: Development Status :: 1 - Planning
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Requires-Python: >=3.11
14
+ Requires-Dist: rich>=13.7.0
15
+ Description-Content-Type: text/markdown
16
+
17
+ # git-analyser
18
+
19
+ Git repository analyser — part of the analyser family.
20
+
21
+ Walks git history to extract commit patterns, file churn, contributor signals, and change velocity. Dispatches file content to code-analyser for per-file quality signals across the history.
22
+
23
+ **Status:** Coming soon. Name reserved.
24
+
25
+ ## Installation
26
+
27
+ ```bash
28
+ pip install git-analyser
29
+ ```
30
+
31
+ ## Usage
32
+
33
+ ```bash
34
+ git-analyser . # analyse current repo
35
+ git-analyser path/to/repo --json
36
+ git-analyser serve # FastAPI server on port 8007
37
+ ```
38
+
39
+ ## Analyser family
40
+
41
+ | Tool | Purpose | Port |
42
+ |---|---|---|
43
+ | document-analyser | PDF, Word, text | 8000 |
44
+ | speech-analyser | Audio, video transcription | 8001 |
45
+ | video-analyser | Video quality, scenes, OCR | 8002 |
46
+ | records-analyser | CSV, Excel, JSON | 8003 |
47
+ | code-analyser | Source code, multi-language | 8004 |
48
+ | wordpress-analyser | WP themes and plugins | 8005 |
49
+ | folder-analyser | Project structure | 8006 |
50
+ | git-analyser | Git history and churn | 8007 |
@@ -0,0 +1,34 @@
1
+ # git-analyser
2
+
3
+ Git repository analyser — part of the analyser family.
4
+
5
+ Walks git history to extract commit patterns, file churn, contributor signals, and change velocity. Dispatches file content to code-analyser for per-file quality signals across the history.
6
+
7
+ **Status:** Coming soon. Name reserved.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ pip install git-analyser
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```bash
18
+ git-analyser . # analyse current repo
19
+ git-analyser path/to/repo --json
20
+ git-analyser serve # FastAPI server on port 8007
21
+ ```
22
+
23
+ ## Analyser family
24
+
25
+ | Tool | Purpose | Port |
26
+ |---|---|---|
27
+ | document-analyser | PDF, Word, text | 8000 |
28
+ | speech-analyser | Audio, video transcription | 8001 |
29
+ | video-analyser | Video quality, scenes, OCR | 8002 |
30
+ | records-analyser | CSV, Excel, JSON | 8003 |
31
+ | code-analyser | Source code, multi-language | 8004 |
32
+ | wordpress-analyser | WP themes and plugins | 8005 |
33
+ | folder-analyser | Project structure | 8006 |
34
+ | git-analyser | Git history and churn | 8007 |
@@ -0,0 +1,29 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "git-analyser"
7
+ version = "0.1.0"
8
+ description = "Git repository analyser — commit history, churn, contributor patterns, dispatches to analyser family"
9
+ authors = [{name = "Michael Borck", email = "michael.borck@curtin.edu.au"}]
10
+ readme = "README.md"
11
+ requires-python = ">=3.11"
12
+ license = {text = "MIT"}
13
+ classifiers = [
14
+ "Development Status :: 1 - Planning",
15
+ "Intended Audience :: Developers",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.11",
19
+ "Programming Language :: Python :: 3.12",
20
+ ]
21
+ dependencies = [
22
+ "rich>=13.7.0",
23
+ ]
24
+
25
+ [project.scripts]
26
+ git-analyser = "git_analyser.cli:main"
27
+
28
+ [tool.hatch.build.targets.wheel]
29
+ packages = ["src/git_analyser"]
@@ -0,0 +1 @@
1
+ __version__ = "0.1.0"
@@ -0,0 +1,36 @@
1
+ from __future__ import annotations
2
+
3
+ import argparse
4
+ import sys
5
+
6
+
7
+ def main() -> None:
8
+ parser = argparse.ArgumentParser(
9
+ prog="git-analyser",
10
+ description="Git repository analyser (coming soon)",
11
+ )
12
+ parser.add_argument("path", nargs="?", help="Git repository path (default: current directory)")
13
+ parser.add_argument("--json", action="store_true", dest="as_json")
14
+ parser.add_argument("--version", action="version", version="0.1.0")
15
+
16
+ subparsers = parser.add_subparsers(dest="command")
17
+ serve = subparsers.add_parser("serve", help="Start API server")
18
+ serve.add_argument("--host", default="0.0.0.0")
19
+ serve.add_argument("--port", type=int, default=8007)
20
+
21
+ args = parser.parse_args()
22
+
23
+ if args.command == "serve":
24
+ print("git-analyser serve — not yet implemented", file=sys.stderr)
25
+ sys.exit(1)
26
+
27
+ if not args.path:
28
+ parser.print_help()
29
+ sys.exit(1)
30
+
31
+ print("git-analyser — not yet implemented", file=sys.stderr)
32
+ sys.exit(1)
33
+
34
+
35
+ if __name__ == "__main__":
36
+ main()