cellproof 0.3.0__tar.gz → 0.3.1__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.
- {cellproof-0.3.0 → cellproof-0.3.1}/CHANGELOG.md +6 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/PKG-INFO +1 -1
- {cellproof-0.3.0 → cellproof-0.3.1}/pyproject.toml +1 -1
- cellproof-0.3.1/src/cellproof/__init__.py +1 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/fn/dates.py +3 -2
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_finance_stats.py +8 -0
- cellproof-0.3.0/src/cellproof/__init__.py +0 -1
- {cellproof-0.3.0 → cellproof-0.3.1}/.github/workflows/ci.yml +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/.github/workflows/publish.yml +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/.gitignore +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/AGENTS.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/DESIGN.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/INFO.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/LICENSE +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/PLAN-2a.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/PLAN-2b.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/PLAN.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/PROGRESS.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/README.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/SECURITY.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/docs/JOURNEY.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/docs/superpowers/plans/2026-10-14-plan-2c-speed.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/docs/superpowers/plans/2026-10-14-plan-2d-table-mode.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/docs/superpowers/specs/2026-10-14-plan-2c-speed-design.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/docs/superpowers/specs/2026-10-14-plan-2d-table-mode-design.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/docs/superpowers/specs/2026-10-18-running-totals-design.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/docs/superpowers/specs/2026-10-19-lookups-row-wise-design.md +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/examples/commission.xlsx +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/examples/errors.xlsx +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/examples/functions.xlsx +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/examples/functions_unsaved.xlsx +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/examples/make_commission.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/examples/make_errors.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/examples/make_functions.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/__main__.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/cli.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/compiler.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/compute.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/emitter.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/expr.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/fenwick.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/fn/__init__.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/fn/aggregate.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/fn/criteria.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/fn/finance.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/fn/logic.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/fn/lookup.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/fn/maths.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/fn/stats.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/fn/text.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/functions.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/graph.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/impact.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/model.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/parser.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/r1c1.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/rangeindex.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/reader.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/refs.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/region.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/regions.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/report.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/tables.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/src/cellproof/verifier.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/bench_shapes.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/corpus.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_aggregate.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_arrays.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_batches.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_cli.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_compiler.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_compute.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_corpus_findings.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_criteria.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_dates.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_emitter.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_errors.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_excel_findings.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_excel_saved.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_fenwick.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_functions.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_graph.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_impact.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_implicit.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_index.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_lexed.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_limits.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_logic.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_lookup.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_lookups.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_maths.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_parser.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_perf.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_r1c1.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_rangeindex.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_reader.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_refs.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_region.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_regions.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_regions_differential.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_regions_split.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_report.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_review_regressions.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_running.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_shapes.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_tables.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_text.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_types.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/test_verifier.py +0 -0
- {cellproof-0.3.0 → cellproof-0.3.1}/tests/xlsxkit.py +0 -0
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.1 (2026-10-31)
|
|
4
|
+
|
|
5
|
+
- **WORKDAY with a huge holidays range** (`WORKDAY(A1,5,I1:XFD1048576)`): the days it searched were sized by the
|
|
6
|
+
range's area, so one workbook could make DuckDB fail or exhaust memory. The search now covers 2 days per holiday
|
|
7
|
+
actually in the range, never past Excel's last date.
|
|
8
|
+
|
|
3
9
|
## 0.3.0 (2026-10-31)
|
|
4
10
|
|
|
5
11
|
- **Finance:** PMT, PV, FV, NPER, NPV. Microsoft's closed forms; NPV skips text, TRUE/FALSE and empty cells in a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cellproof
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Turn an Excel workbook into SQL (a dbt project on DuckDB) and prove every number matches.
|
|
5
5
|
Project-URL: Homepage, https://github.com/Nikhil414/cellproof
|
|
6
6
|
Project-URL: Issues, https://github.com/Nikhil414/cellproof/issues
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.1"
|
|
@@ -270,10 +270,11 @@ def workday(c, args, sheet):
|
|
|
270
270
|
s = _serial(c, args[0], sheet)
|
|
271
271
|
d = num(c.expr(args[1], sheet))
|
|
272
272
|
rng, odd = _holidays(c, args, sheet, "WORKDAY", 2)
|
|
273
|
-
|
|
273
|
+
# the holidays actually there, not the range's area (H:XFD would be 3E10 days); never past Excel's last date
|
|
274
|
+
extra = "0" if rng is None else f"2 * (SELECT COUNT(*) FROM ({_holiday_serials(rng)}) hol)"
|
|
274
275
|
n = f"CAST(abs(trunc({d.sql})) AS BIGINT)"
|
|
275
276
|
step = f"(CASE WHEN {d.sql} < 0 THEN -1 ELSE 1 END)"
|
|
276
|
-
span = f"({n} * 7 // 5 + 7 + {extra})" #
|
|
277
|
+
span = f"LEAST({n} * 7 // 5 + 7 + {extra}, {MAX_SERIAL + 7})" # room for n working days and each holiday
|
|
277
278
|
start = f"CAST({s.sql} AS BIGINT)"
|
|
278
279
|
skip = "" if rng is None else f" AND x NOT IN ({_holiday_serials(rng)})"
|
|
279
280
|
days = (f"SELECT x, row_number() OVER (ORDER BY x * {step}) AS rn FROM "
|
|
@@ -125,3 +125,11 @@ def test_pasted_down_columns_equal_cell_mode():
|
|
|
125
125
|
assert regions.unresolved == cells.unresolved
|
|
126
126
|
assert execute(book, regions) == execute(book, cells)
|
|
127
127
|
assert len(cells.unresolved) < 12, cells.unresolved # only the UNCHECKED-free formulas compile everywhere
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def test_workday_over_a_huge_holiday_range_stays_small():
|
|
131
|
+
# the span is sized by the holidays present, not the range's area (I1:XFD1048576 is 1.7E10 empty cells)
|
|
132
|
+
import time
|
|
133
|
+
t = time.time()
|
|
134
|
+
run([("=WORKDAY(39722,151,D!I1:XFD1048576)", 39933), ("=WORKDAY(39722,151,D!G1:G1048576)", 39938)])
|
|
135
|
+
assert time.time() - t < 10
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.3.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cellproof-0.3.0 → cellproof-0.3.1}/docs/superpowers/specs/2026-10-14-plan-2c-speed-design.md
RENAMED
|
File without changes
|
{cellproof-0.3.0 → cellproof-0.3.1}/docs/superpowers/specs/2026-10-14-plan-2d-table-mode-design.md
RENAMED
|
File without changes
|
{cellproof-0.3.0 → cellproof-0.3.1}/docs/superpowers/specs/2026-10-18-running-totals-design.md
RENAMED
|
File without changes
|
{cellproof-0.3.0 → cellproof-0.3.1}/docs/superpowers/specs/2026-10-19-lookups-row-wise-design.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|