repoview 1.0.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,150 @@
1
+ Metadata-Version: 2.4
2
+ Name: repoview
3
+ Version: 1.0.0
4
+ Summary: Generate LLM-ready context files from your codebase — interactively.
5
+ Author-email: Your Name <you@example.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/yourname/codecontext
8
+ Project-URL: Issues, https://github.com/yourname/codecontext/issues
9
+ Keywords: llm,context,code,ai,cli,developer-tools
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Classifier: Topic :: Utilities
21
+ Requires-Python: >=3.9
22
+ Description-Content-Type: text/markdown
23
+ Requires-Dist: tiktoken>=0.7.0
24
+ Requires-Dist: pathspec>=0.12.1
25
+ Requires-Dist: questionary>=2.0.1
26
+ Requires-Dist: rich>=13.0.0
27
+ Requires-Dist: typer>=0.12.0
28
+ Provides-Extra: dev
29
+ Requires-Dist: build; extra == "dev"
30
+ Requires-Dist: twine; extra == "dev"
31
+ Requires-Dist: pytest; extra == "dev"
32
+ Requires-Dist: pytest-cov; extra == "dev"
33
+
34
+ # codecontext
35
+
36
+ > Generate LLM-ready context files from your codebase — interactively.
37
+
38
+ ```
39
+ pip install codecontext
40
+ ```
41
+
42
+ ---
43
+
44
+ ## Usage
45
+
46
+ ### Interactive wizard (recommended)
47
+
48
+ ```bash
49
+ cc
50
+ ```
51
+
52
+ Launches a Vite-style interactive prompt:
53
+
54
+ ```
55
+ ╭──────────────────────────────────────────╮
56
+ │ codecontext v1.0.0 │
57
+ │ Generate LLM-ready context from your │
58
+ │ codebase │
59
+ ╰──────────────────────────────────────────╯
60
+
61
+ ◆ Where is your project?
62
+ ● Current directory (.)
63
+ ○ Specify a folder path
64
+ ○ Select a ZIP file
65
+
66
+ ◆ Which file categories to include?
67
+ ✔ Essential files (README, requirements, Dockerfile…)
68
+ ✔ Source code (.py, .js, .ts, .go, .rs…)
69
+ ✔ Config & text files (.json, .yml, .md, .toml…)
70
+ ✗ Rare languages (.lua, .dart, .scala, .hs…)
71
+ ✗ Other text files (unclassified extensions)
72
+
73
+ ◆ How should .gitignore be handled?
74
+ ● Respect .gitignore (recommended)
75
+ ○ Include everything
76
+
77
+ ◆ Token budget?
78
+ ● Claude 3.5 (800k)
79
+ ○ GPT-4 Turbo (128k)
80
+ ○ Gemini 1.5 Pro (1M)
81
+ ○ Custom
82
+
83
+ ◆ Output file name: my_project_context.txt
84
+
85
+ ✔ Done in 3.2s
86
+ Output /path/to/my_project_context.txt
87
+ Tokens ████████████░░░░░░░░░░░░░░░░░░ 142,847 / 800,000 (17.9%)
88
+ Full files 89
89
+ Summary 23
90
+ Metadata 12
91
+ Omitted 0
92
+ ```
93
+
94
+ ### Non-interactive mode
95
+
96
+ ```bash
97
+ # Run on current directory
98
+ cc run
99
+
100
+ # Run on a specific path
101
+ cc run ./my-project
102
+
103
+ # Custom output and budget
104
+ cc run ./my-project -o context.txt --budget 128000
105
+
106
+ # Include files that are in .gitignore
107
+ cc run ./my-project --no-gitignore
108
+ ```
109
+
110
+ ### Other commands
111
+
112
+ ```bash
113
+ cc --version # Show version
114
+ cc info # System info and dependency check
115
+ cc --help # Help
116
+ ```
117
+
118
+ ---
119
+
120
+ ## How it works
121
+
122
+ codecontext intelligently processes your project:
123
+
124
+ | Priority | Files |
125
+ |----------|-------|
126
+ | Essential | `README.md`, `package.json`, `Dockerfile`, `requirements.txt`, … |
127
+ | Code | `.py`, `.js`, `.ts`, `.go`, `.rs`, `.java`, … |
128
+ | Config | `.json`, `.yml`, `.toml`, `.env.example`, … |
129
+ | General | Less common languages and text files |
130
+
131
+ When the output would exceed your token budget, it automatically:
132
+ 1. **Summarises** lower-priority files (extracts function signatures, first N lines)
133
+ 2. **Omits** the lowest-priority content with a note in its place
134
+
135
+ ---
136
+
137
+ ## Requirements
138
+
139
+ - Python 3.9+
140
+ - `tiktoken` (token counting)
141
+ - `pathspec` (.gitignore parsing)
142
+ - `questionary` (interactive prompts)
143
+ - `rich` (terminal UI)
144
+ - `typer` (CLI framework)
145
+
146
+ ---
147
+
148
+ ## License
149
+
150
+ MIT
@@ -0,0 +1,117 @@
1
+ # codecontext
2
+
3
+ > Generate LLM-ready context files from your codebase — interactively.
4
+
5
+ ```
6
+ pip install codecontext
7
+ ```
8
+
9
+ ---
10
+
11
+ ## Usage
12
+
13
+ ### Interactive wizard (recommended)
14
+
15
+ ```bash
16
+ cc
17
+ ```
18
+
19
+ Launches a Vite-style interactive prompt:
20
+
21
+ ```
22
+ ╭──────────────────────────────────────────╮
23
+ │ codecontext v1.0.0 │
24
+ │ Generate LLM-ready context from your │
25
+ │ codebase │
26
+ ╰──────────────────────────────────────────╯
27
+
28
+ ◆ Where is your project?
29
+ ● Current directory (.)
30
+ ○ Specify a folder path
31
+ ○ Select a ZIP file
32
+
33
+ ◆ Which file categories to include?
34
+ ✔ Essential files (README, requirements, Dockerfile…)
35
+ ✔ Source code (.py, .js, .ts, .go, .rs…)
36
+ ✔ Config & text files (.json, .yml, .md, .toml…)
37
+ ✗ Rare languages (.lua, .dart, .scala, .hs…)
38
+ ✗ Other text files (unclassified extensions)
39
+
40
+ ◆ How should .gitignore be handled?
41
+ ● Respect .gitignore (recommended)
42
+ ○ Include everything
43
+
44
+ ◆ Token budget?
45
+ ● Claude 3.5 (800k)
46
+ ○ GPT-4 Turbo (128k)
47
+ ○ Gemini 1.5 Pro (1M)
48
+ ○ Custom
49
+
50
+ ◆ Output file name: my_project_context.txt
51
+
52
+ ✔ Done in 3.2s
53
+ Output /path/to/my_project_context.txt
54
+ Tokens ████████████░░░░░░░░░░░░░░░░░░ 142,847 / 800,000 (17.9%)
55
+ Full files 89
56
+ Summary 23
57
+ Metadata 12
58
+ Omitted 0
59
+ ```
60
+
61
+ ### Non-interactive mode
62
+
63
+ ```bash
64
+ # Run on current directory
65
+ cc run
66
+
67
+ # Run on a specific path
68
+ cc run ./my-project
69
+
70
+ # Custom output and budget
71
+ cc run ./my-project -o context.txt --budget 128000
72
+
73
+ # Include files that are in .gitignore
74
+ cc run ./my-project --no-gitignore
75
+ ```
76
+
77
+ ### Other commands
78
+
79
+ ```bash
80
+ cc --version # Show version
81
+ cc info # System info and dependency check
82
+ cc --help # Help
83
+ ```
84
+
85
+ ---
86
+
87
+ ## How it works
88
+
89
+ codecontext intelligently processes your project:
90
+
91
+ | Priority | Files |
92
+ |----------|-------|
93
+ | Essential | `README.md`, `package.json`, `Dockerfile`, `requirements.txt`, … |
94
+ | Code | `.py`, `.js`, `.ts`, `.go`, `.rs`, `.java`, … |
95
+ | Config | `.json`, `.yml`, `.toml`, `.env.example`, … |
96
+ | General | Less common languages and text files |
97
+
98
+ When the output would exceed your token budget, it automatically:
99
+ 1. **Summarises** lower-priority files (extracts function signatures, first N lines)
100
+ 2. **Omits** the lowest-priority content with a note in its place
101
+
102
+ ---
103
+
104
+ ## Requirements
105
+
106
+ - Python 3.9+
107
+ - `tiktoken` (token counting)
108
+ - `pathspec` (.gitignore parsing)
109
+ - `questionary` (interactive prompts)
110
+ - `rich` (terminal UI)
111
+ - `typer` (CLI framework)
112
+
113
+ ---
114
+
115
+ ## License
116
+
117
+ MIT
@@ -0,0 +1,4 @@
1
+ """codecontext — Generate LLM-ready context files from your codebase."""
2
+
3
+ __version__ = "1.0.0"
4
+ __all__ = ["__version__"]