excel-explorer 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.
- excel_explorer-0.1.0/.gitignore +7 -0
- excel_explorer-0.1.0/LICENSE +21 -0
- excel_explorer-0.1.0/PKG-INFO +199 -0
- excel_explorer-0.1.0/README.md +172 -0
- excel_explorer-0.1.0/pyproject.toml +86 -0
- excel_explorer-0.1.0/src/excel_explorer/__init__.py +1 -0
- excel_explorer-0.1.0/src/excel_explorer/analysis.py +359 -0
- excel_explorer-0.1.0/src/excel_explorer/cli.py +497 -0
- excel_explorer-0.1.0/src/excel_explorer/dependencies.py +390 -0
- excel_explorer-0.1.0/src/excel_explorer/explorer.py +325 -0
- excel_explorer-0.1.0/src/excel_explorer/formatters.py +15 -0
- excel_explorer-0.1.0/src/excel_explorer/search.py +139 -0
- excel_explorer-0.1.0/src/excel_explorer/workbook.py +29 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 PressW LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: excel-explorer
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: CLI tool for exploring Excel workbooks — trace formulas, understand model structure, read data
|
|
5
|
+
Project-URL: Homepage, https://github.com/pressw-llc/excel-explorer
|
|
6
|
+
Project-URL: Repository, https://github.com/pressw-llc/excel-explorer
|
|
7
|
+
Project-URL: Issues, https://github.com/pressw-llc/excel-explorer/issues
|
|
8
|
+
Author-email: PressW LLC <dev@pressw.ai>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: cli,dependency-graph,excel,financial-model,formula,xlsx
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Topic :: Office/Business :: Financial :: Spreadsheet
|
|
22
|
+
Requires-Python: >=3.11
|
|
23
|
+
Requires-Dist: click>=8.0
|
|
24
|
+
Requires-Dist: formulas>=1.3
|
|
25
|
+
Requires-Dist: openpyxl>=3.1
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# Excel Explorer
|
|
29
|
+
|
|
30
|
+
CLI tool for exploring Excel workbooks. Trace formula dependencies, understand model structure, read data with pagination. Designed for use by Claude Code agents.
|
|
31
|
+
|
|
32
|
+
## Install
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# As a standalone CLI tool (recommended)
|
|
36
|
+
uv tool install excel-explorer
|
|
37
|
+
|
|
38
|
+
# Or with pip
|
|
39
|
+
pip install excel-explorer
|
|
40
|
+
|
|
41
|
+
# Or run without installing
|
|
42
|
+
uvx --from excel-explorer xlx overview "file.xlsx"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
This installs the `xlx` command.
|
|
46
|
+
|
|
47
|
+
### Development setup
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
git clone https://github.com/pressw-llc/excel-explorer.git
|
|
51
|
+
cd excel-explorer
|
|
52
|
+
uv sync --group dev
|
|
53
|
+
uv run pytest
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Usage
|
|
57
|
+
|
|
58
|
+
Every command takes a workbook path as its first argument. Paths with spaces should be quoted.
|
|
59
|
+
|
|
60
|
+
### Orientation
|
|
61
|
+
|
|
62
|
+
Get a high-level view of a workbook before diving into details.
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Workbook overview: sheets, dimensions, formula counts, named ranges
|
|
66
|
+
xlx overview "Financials.xlsx"
|
|
67
|
+
|
|
68
|
+
# Describe a single sheet: headers, merged cells, data regions
|
|
69
|
+
xlx describe "Financials.xlsx" "Balance Sheet"
|
|
70
|
+
|
|
71
|
+
# List all named ranges and their targets
|
|
72
|
+
xlx named-ranges "Financials.xlsx"
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Reading
|
|
76
|
+
|
|
77
|
+
Read cell values and structured data from sheets.
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Read a range (values only)
|
|
81
|
+
xlx read "Financials.xlsx" "Income Statement" A1:D20
|
|
82
|
+
|
|
83
|
+
# Read a range showing formulas alongside computed values
|
|
84
|
+
xlx read --formulas "Financials.xlsx" "Income Statement" A1:D20
|
|
85
|
+
|
|
86
|
+
# Read a full row with auto-detected headers
|
|
87
|
+
xlx read-row "Financials.xlsx" "Income Statement" 5
|
|
88
|
+
|
|
89
|
+
# Read a full column
|
|
90
|
+
xlx read-col "Financials.xlsx" "Income Statement" B
|
|
91
|
+
|
|
92
|
+
# Auto-detect contiguous table regions on a sheet
|
|
93
|
+
xlx tables "Financials.xlsx" "Income Statement"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Dependencies
|
|
97
|
+
|
|
98
|
+
Understand how cells relate to each other and trace formula chains.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# Trace a cell's dependency tree down to leaf inputs
|
|
102
|
+
xlx trace "Financials.xlsx" "Income Statement!B10"
|
|
103
|
+
xlx trace "Financials.xlsx" B10 --sheet "Income Statement"
|
|
104
|
+
|
|
105
|
+
# Find all cells that depend on a given cell (reverse trace)
|
|
106
|
+
xlx dependents "Financials.xlsx" "Assumptions!C5"
|
|
107
|
+
|
|
108
|
+
# Show unique formula patterns on a sheet, grouped by structure
|
|
109
|
+
xlx formula-map "Financials.xlsx" "Income Statement"
|
|
110
|
+
|
|
111
|
+
# Find hardcoded cells that other cells depend on (model inputs/assumptions)
|
|
112
|
+
xlx find-inputs "Financials.xlsx"
|
|
113
|
+
xlx find-inputs "Financials.xlsx" --sheet "Assumptions"
|
|
114
|
+
|
|
115
|
+
# Map which sheets reference which other sheets
|
|
116
|
+
xlx sheet-flow "Financials.xlsx"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Financial Analysis
|
|
120
|
+
|
|
121
|
+
Higher-level commands built for financial models.
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
# Find and summarize assumption sheets and named ranges
|
|
125
|
+
xlx summarize-assumptions "Financials.xlsx"
|
|
126
|
+
|
|
127
|
+
# Read a time-series row and compute period-over-period changes
|
|
128
|
+
xlx compare-periods "Financials.xlsx" "Income Statement" 10
|
|
129
|
+
|
|
130
|
+
# Detect formula pattern breaks (hardcoded values in formula rows, etc.)
|
|
131
|
+
xlx find-anomalies "Financials.xlsx" "Income Statement"
|
|
132
|
+
|
|
133
|
+
# Check that Assets = Liabilities + Equity across all period columns
|
|
134
|
+
xlx validate-balance "Financials.xlsx" "Balance Sheet"
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Search
|
|
138
|
+
|
|
139
|
+
Search across the entire workbook.
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
# Search all cells for a value or text pattern
|
|
143
|
+
xlx search "Financials.xlsx" "revenue"
|
|
144
|
+
|
|
145
|
+
# Also search inside formula strings
|
|
146
|
+
xlx search --formulas "Financials.xlsx" "VLOOKUP"
|
|
147
|
+
|
|
148
|
+
# Report cells with notable formatting: bold, fill colors, borders
|
|
149
|
+
xlx find-formatting "Financials.xlsx" "Income Statement"
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Pagination
|
|
153
|
+
|
|
154
|
+
Large workbooks can return a lot of data. Use these flags to page through results without overwhelming the context window.
|
|
155
|
+
|
|
156
|
+
| Flag | Default | Description |
|
|
157
|
+
|---|---|---|
|
|
158
|
+
| `--limit N` | 50 | Maximum number of rows (or items) to return |
|
|
159
|
+
| `--offset N` | 0 | Skip the first N rows before returning results |
|
|
160
|
+
| `--max-cols N` | 20 | Maximum number of columns to show |
|
|
161
|
+
| `--col-offset N` | 0 | Skip the first N columns before returning results |
|
|
162
|
+
| `--depth N` | 5 | Maximum recursion depth for `trace` and `dependents` |
|
|
163
|
+
|
|
164
|
+
Example — page through a large sheet in chunks of 100 rows (use a bounded
|
|
165
|
+
row range; column-only ranges like `A:Z` are returned column-major and don't
|
|
166
|
+
paginate by row):
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
xlx read "Financials.xlsx" "Transactions" A1:Z1000 --limit 100 --offset 0
|
|
170
|
+
xlx read "Financials.xlsx" "Transactions" A1:Z1000 --limit 100 --offset 100
|
|
171
|
+
xlx read "Financials.xlsx" "Transactions" A1:Z1000 --limit 100 --offset 200
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## Output Format
|
|
175
|
+
|
|
176
|
+
Every command outputs a metadata header followed by `---` and then the body. The header uses a YAML-style `key: value` format describing what was returned so agents can make pagination decisions without re-reading. For example, `xlx read`:
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
file: financial_model.xlsx
|
|
180
|
+
sheet: P&L
|
|
181
|
+
range: A1:C5
|
|
182
|
+
showing: rows 1-5 of 5
|
|
183
|
+
truncated: false
|
|
184
|
+
---
|
|
185
|
+
A1: Profit & Loss Statement
|
|
186
|
+
A3: Line Item
|
|
187
|
+
A4: Gross Revenue
|
|
188
|
+
B4: ='Revenue Build'!B8
|
|
189
|
+
C4: ='Revenue Build'!C8
|
|
190
|
+
...
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
The exact header keys vary by command (`range`, `row`, `column`, `query`, `matches`, ...). The pagination-relevant ones:
|
|
194
|
+
|
|
195
|
+
- `showing: rows X-Y of Z` — current window and total rows available
|
|
196
|
+
- `truncated: true` — results were cut off; advance `--offset` or increase `--limit`
|
|
197
|
+
- `shown` / `offset` / `limit` — pagination position on search-style commands
|
|
198
|
+
|
|
199
|
+
Commands that return summaries rather than rows (`overview`, `named-ranges`, `sheet-flow`, `validate-balance`, `trace`, `dependents`) don't paginate and omit these fields.
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# Excel Explorer
|
|
2
|
+
|
|
3
|
+
CLI tool for exploring Excel workbooks. Trace formula dependencies, understand model structure, read data with pagination. Designed for use by Claude Code agents.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# As a standalone CLI tool (recommended)
|
|
9
|
+
uv tool install excel-explorer
|
|
10
|
+
|
|
11
|
+
# Or with pip
|
|
12
|
+
pip install excel-explorer
|
|
13
|
+
|
|
14
|
+
# Or run without installing
|
|
15
|
+
uvx --from excel-explorer xlx overview "file.xlsx"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
This installs the `xlx` command.
|
|
19
|
+
|
|
20
|
+
### Development setup
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
git clone https://github.com/pressw-llc/excel-explorer.git
|
|
24
|
+
cd excel-explorer
|
|
25
|
+
uv sync --group dev
|
|
26
|
+
uv run pytest
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
Every command takes a workbook path as its first argument. Paths with spaces should be quoted.
|
|
32
|
+
|
|
33
|
+
### Orientation
|
|
34
|
+
|
|
35
|
+
Get a high-level view of a workbook before diving into details.
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Workbook overview: sheets, dimensions, formula counts, named ranges
|
|
39
|
+
xlx overview "Financials.xlsx"
|
|
40
|
+
|
|
41
|
+
# Describe a single sheet: headers, merged cells, data regions
|
|
42
|
+
xlx describe "Financials.xlsx" "Balance Sheet"
|
|
43
|
+
|
|
44
|
+
# List all named ranges and their targets
|
|
45
|
+
xlx named-ranges "Financials.xlsx"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Reading
|
|
49
|
+
|
|
50
|
+
Read cell values and structured data from sheets.
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
# Read a range (values only)
|
|
54
|
+
xlx read "Financials.xlsx" "Income Statement" A1:D20
|
|
55
|
+
|
|
56
|
+
# Read a range showing formulas alongside computed values
|
|
57
|
+
xlx read --formulas "Financials.xlsx" "Income Statement" A1:D20
|
|
58
|
+
|
|
59
|
+
# Read a full row with auto-detected headers
|
|
60
|
+
xlx read-row "Financials.xlsx" "Income Statement" 5
|
|
61
|
+
|
|
62
|
+
# Read a full column
|
|
63
|
+
xlx read-col "Financials.xlsx" "Income Statement" B
|
|
64
|
+
|
|
65
|
+
# Auto-detect contiguous table regions on a sheet
|
|
66
|
+
xlx tables "Financials.xlsx" "Income Statement"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Dependencies
|
|
70
|
+
|
|
71
|
+
Understand how cells relate to each other and trace formula chains.
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Trace a cell's dependency tree down to leaf inputs
|
|
75
|
+
xlx trace "Financials.xlsx" "Income Statement!B10"
|
|
76
|
+
xlx trace "Financials.xlsx" B10 --sheet "Income Statement"
|
|
77
|
+
|
|
78
|
+
# Find all cells that depend on a given cell (reverse trace)
|
|
79
|
+
xlx dependents "Financials.xlsx" "Assumptions!C5"
|
|
80
|
+
|
|
81
|
+
# Show unique formula patterns on a sheet, grouped by structure
|
|
82
|
+
xlx formula-map "Financials.xlsx" "Income Statement"
|
|
83
|
+
|
|
84
|
+
# Find hardcoded cells that other cells depend on (model inputs/assumptions)
|
|
85
|
+
xlx find-inputs "Financials.xlsx"
|
|
86
|
+
xlx find-inputs "Financials.xlsx" --sheet "Assumptions"
|
|
87
|
+
|
|
88
|
+
# Map which sheets reference which other sheets
|
|
89
|
+
xlx sheet-flow "Financials.xlsx"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Financial Analysis
|
|
93
|
+
|
|
94
|
+
Higher-level commands built for financial models.
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# Find and summarize assumption sheets and named ranges
|
|
98
|
+
xlx summarize-assumptions "Financials.xlsx"
|
|
99
|
+
|
|
100
|
+
# Read a time-series row and compute period-over-period changes
|
|
101
|
+
xlx compare-periods "Financials.xlsx" "Income Statement" 10
|
|
102
|
+
|
|
103
|
+
# Detect formula pattern breaks (hardcoded values in formula rows, etc.)
|
|
104
|
+
xlx find-anomalies "Financials.xlsx" "Income Statement"
|
|
105
|
+
|
|
106
|
+
# Check that Assets = Liabilities + Equity across all period columns
|
|
107
|
+
xlx validate-balance "Financials.xlsx" "Balance Sheet"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Search
|
|
111
|
+
|
|
112
|
+
Search across the entire workbook.
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
# Search all cells for a value or text pattern
|
|
116
|
+
xlx search "Financials.xlsx" "revenue"
|
|
117
|
+
|
|
118
|
+
# Also search inside formula strings
|
|
119
|
+
xlx search --formulas "Financials.xlsx" "VLOOKUP"
|
|
120
|
+
|
|
121
|
+
# Report cells with notable formatting: bold, fill colors, borders
|
|
122
|
+
xlx find-formatting "Financials.xlsx" "Income Statement"
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Pagination
|
|
126
|
+
|
|
127
|
+
Large workbooks can return a lot of data. Use these flags to page through results without overwhelming the context window.
|
|
128
|
+
|
|
129
|
+
| Flag | Default | Description |
|
|
130
|
+
|---|---|---|
|
|
131
|
+
| `--limit N` | 50 | Maximum number of rows (or items) to return |
|
|
132
|
+
| `--offset N` | 0 | Skip the first N rows before returning results |
|
|
133
|
+
| `--max-cols N` | 20 | Maximum number of columns to show |
|
|
134
|
+
| `--col-offset N` | 0 | Skip the first N columns before returning results |
|
|
135
|
+
| `--depth N` | 5 | Maximum recursion depth for `trace` and `dependents` |
|
|
136
|
+
|
|
137
|
+
Example — page through a large sheet in chunks of 100 rows (use a bounded
|
|
138
|
+
row range; column-only ranges like `A:Z` are returned column-major and don't
|
|
139
|
+
paginate by row):
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
xlx read "Financials.xlsx" "Transactions" A1:Z1000 --limit 100 --offset 0
|
|
143
|
+
xlx read "Financials.xlsx" "Transactions" A1:Z1000 --limit 100 --offset 100
|
|
144
|
+
xlx read "Financials.xlsx" "Transactions" A1:Z1000 --limit 100 --offset 200
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Output Format
|
|
148
|
+
|
|
149
|
+
Every command outputs a metadata header followed by `---` and then the body. The header uses a YAML-style `key: value` format describing what was returned so agents can make pagination decisions without re-reading. For example, `xlx read`:
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
file: financial_model.xlsx
|
|
153
|
+
sheet: P&L
|
|
154
|
+
range: A1:C5
|
|
155
|
+
showing: rows 1-5 of 5
|
|
156
|
+
truncated: false
|
|
157
|
+
---
|
|
158
|
+
A1: Profit & Loss Statement
|
|
159
|
+
A3: Line Item
|
|
160
|
+
A4: Gross Revenue
|
|
161
|
+
B4: ='Revenue Build'!B8
|
|
162
|
+
C4: ='Revenue Build'!C8
|
|
163
|
+
...
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
The exact header keys vary by command (`range`, `row`, `column`, `query`, `matches`, ...). The pagination-relevant ones:
|
|
167
|
+
|
|
168
|
+
- `showing: rows X-Y of Z` — current window and total rows available
|
|
169
|
+
- `truncated: true` — results were cut off; advance `--offset` or increase `--limit`
|
|
170
|
+
- `shown` / `offset` / `limit` — pagination position on search-style commands
|
|
171
|
+
|
|
172
|
+
Commands that return summaries rather than rows (`overview`, `named-ranges`, `sheet-flow`, `validate-balance`, `trace`, `dependents`) don't paginate and omit these fields.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "excel-explorer"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "CLI tool for exploring Excel workbooks — trace formulas, understand model structure, read data"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.11"
|
|
7
|
+
license = "MIT"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name = "PressW LLC", email = "dev@pressw.ai" },
|
|
10
|
+
]
|
|
11
|
+
keywords = ["excel", "xlsx", "cli", "financial-model", "formula", "dependency-graph"]
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Development Status :: 4 - Beta",
|
|
14
|
+
"Environment :: Console",
|
|
15
|
+
"Intended Audience :: Developers",
|
|
16
|
+
"Intended Audience :: Financial and Insurance Industry",
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3.11",
|
|
20
|
+
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Programming Language :: Python :: 3.13",
|
|
22
|
+
"Topic :: Office/Business :: Financial :: Spreadsheet",
|
|
23
|
+
]
|
|
24
|
+
dependencies = [
|
|
25
|
+
"click>=8.0",
|
|
26
|
+
"openpyxl>=3.1",
|
|
27
|
+
"formulas>=1.3",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
Homepage = "https://github.com/pressw-llc/excel-explorer"
|
|
32
|
+
Repository = "https://github.com/pressw-llc/excel-explorer"
|
|
33
|
+
Issues = "https://github.com/pressw-llc/excel-explorer/issues"
|
|
34
|
+
|
|
35
|
+
[dependency-groups]
|
|
36
|
+
dev = [
|
|
37
|
+
"pytest>=8.0",
|
|
38
|
+
"pytest-cov>=5.0",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[project.scripts]
|
|
42
|
+
xlx = "excel_explorer.cli:cli"
|
|
43
|
+
|
|
44
|
+
[build-system]
|
|
45
|
+
requires = ["hatchling"]
|
|
46
|
+
build-backend = "hatchling.build"
|
|
47
|
+
|
|
48
|
+
[tool.hatch.build.targets.wheel]
|
|
49
|
+
packages = ["src/excel_explorer"]
|
|
50
|
+
|
|
51
|
+
[tool.hatch.build.targets.sdist]
|
|
52
|
+
only-include = ["src/excel_explorer", "README.md", "LICENSE", "pyproject.toml"]
|
|
53
|
+
|
|
54
|
+
[tool.pytest.ini_options]
|
|
55
|
+
testpaths = ["tests"]
|
|
56
|
+
|
|
57
|
+
[tool.semantic_release]
|
|
58
|
+
version_toml = ["pyproject.toml:project.version"]
|
|
59
|
+
version_variables = ["src/excel_explorer/__init__.py:__version__"]
|
|
60
|
+
branch = "main"
|
|
61
|
+
# Stay on the 0.x line: without this, PSR's first release jumps straight to
|
|
62
|
+
# 1.0.0. With it, a feat bumps 0.0.0 -> 0.1.0 and breaking changes bump the
|
|
63
|
+
# minor (not the major) until you intentionally cut 1.0.0.
|
|
64
|
+
allow_zero_version = true
|
|
65
|
+
major_on_zero = false
|
|
66
|
+
# PSR's Docker action runs this in its own container, so it must NOT produce the
|
|
67
|
+
# distribution artifacts we publish — those would be stranded inside the container.
|
|
68
|
+
# Instead we only refresh uv.lock to match the bumped version (committed via
|
|
69
|
+
# `assets`), and build + publish on the runner after PSR tags (see release.yml).
|
|
70
|
+
build_command = "python -m pip install uv && uv lock"
|
|
71
|
+
assets = ["uv.lock"]
|
|
72
|
+
commit_message = "chore(release): {version}"
|
|
73
|
+
tag_format = "v{version}"
|
|
74
|
+
|
|
75
|
+
[tool.semantic_release.changelog]
|
|
76
|
+
template_dir = ".github/changelog"
|
|
77
|
+
exclude_commit_patterns = ["chore\\(release\\)"]
|
|
78
|
+
|
|
79
|
+
[tool.semantic_release.remote]
|
|
80
|
+
type = "github"
|
|
81
|
+
token = { env = "GH_TOKEN" }
|
|
82
|
+
|
|
83
|
+
[tool.semantic_release.commit_parser_options]
|
|
84
|
+
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "style", "test"]
|
|
85
|
+
minor_tags = ["feat"]
|
|
86
|
+
patch_tags = ["fix", "perf"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.0"
|