ledgerclean 3.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.
- ledgerclean-3.0.0/LICENSE +2 -0
- ledgerclean-3.0.0/PKG-INFO +32 -0
- ledgerclean-3.0.0/README.md +17 -0
- ledgerclean-3.0.0/ledgerclean_mod/__init__.py +1 -0
- ledgerclean-3.0.0/ledgerclean_mod/__main__.py +3 -0
- ledgerclean-3.0.0/ledgerclean_mod/cli.py +30 -0
- ledgerclean-3.0.0/pyproject.toml +3 -0
- ledgerclean-3.0.0/setup.py +2 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: ledgerclean
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: Deterministic offline bank CSV/OFX running-balance verifier, deduplicator, and SaaS spend normalizer.
|
|
5
|
+
Home-page: https://ledgerclean.shipstatic.com
|
|
6
|
+
Author: LedgerClean Studio
|
|
7
|
+
Author-email: kreativeaitech@gmail.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://ledgerclean.shipstatic.com
|
|
10
|
+
Project-URL: Studio Workbench, https://buy.polar.sh/polar_cl_5tAc5tihE3TF85YxcFEzbj5MnCFmVzHyFWZ7F4AgzGG?discount_code=SAVE35
|
|
11
|
+
Keywords: csv,ofx,stripe,shopify,polar,payout,reconciliation,spreadsheet
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# LedgerClean — Offline Bank CSV/OFX Balance Tie-Out Verifier & Normalizer
|
|
16
|
+
|
|
17
|
+
Deterministic `$0.01` row-by-row statement running-balance verifier, SHA-256 duplicate remover, and multi-bank CSV normalizer.
|
|
18
|
+
|
|
19
|
+
- **Free 18-Page Browser Sandbox (0 Bytes Uploaded)**: [https://ledgerclean.shipstatic.com](https://ledgerclean.shipstatic.com)
|
|
20
|
+
- **Offline Studio v3.0 Desktop App + `.OFX` Exporter + 4-Tab Excel KPI Workbook (`~US$13.40` / `CA$18.85` w/ `SAVE35`)**: [Instant Polar Download](https://buy.polar.sh/polar_cl_5tAc5tihE3TF85YxcFEzbj5MnCFmVzHyFWZ7F4AgzGG?discount_code=SAVE35)
|
|
21
|
+
- **Agency Multi-Store & Client Expense Splitter (`~US$39` / `CA$55`)**: [Agency Suite](https://buy.polar.sh/polar_cl_Opp4dovnLdzJ7k4DEeg90L6UpniKJhdHAmW6c402heT)
|
|
22
|
+
|
|
23
|
+
## Quickstart
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install ledgerclean
|
|
27
|
+
ledgerclean --demo
|
|
28
|
+
ledgerclean statement.csv
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
*Strictly a deterministic file-formatting, balance-verification, and payout-matching software utility. Non-advisory.*
|
|
32
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# LedgerClean — Offline Bank CSV/OFX Balance Tie-Out Verifier & Normalizer
|
|
2
|
+
|
|
3
|
+
Deterministic `$0.01` row-by-row statement running-balance verifier, SHA-256 duplicate remover, and multi-bank CSV normalizer.
|
|
4
|
+
|
|
5
|
+
- **Free 18-Page Browser Sandbox (0 Bytes Uploaded)**: [https://ledgerclean.shipstatic.com](https://ledgerclean.shipstatic.com)
|
|
6
|
+
- **Offline Studio v3.0 Desktop App + `.OFX` Exporter + 4-Tab Excel KPI Workbook (`~US$13.40` / `CA$18.85` w/ `SAVE35`)**: [Instant Polar Download](https://buy.polar.sh/polar_cl_5tAc5tihE3TF85YxcFEzbj5MnCFmVzHyFWZ7F4AgzGG?discount_code=SAVE35)
|
|
7
|
+
- **Agency Multi-Store & Client Expense Splitter (`~US$39` / `CA$55`)**: [Agency Suite](https://buy.polar.sh/polar_cl_Opp4dovnLdzJ7k4DEeg90L6UpniKJhdHAmW6c402heT)
|
|
8
|
+
|
|
9
|
+
## Quickstart
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install ledgerclean
|
|
13
|
+
ledgerclean --demo
|
|
14
|
+
ledgerclean statement.csv
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
*Strictly a deterministic file-formatting, balance-verification, and payout-matching software utility. Non-advisory.*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '3.0.0'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import csv, hashlib, io, sys
|
|
2
|
+
|
|
3
|
+
SAMPLE = """Date,Description,Debit,Credit,Balance
|
|
4
|
+
2026-11-01,"OPENING STATEMENT ROW",0.00,0.00,10000.00
|
|
5
|
+
2026-11-03,"AMAZON WEB SERVICES, INC.",1242.80,,8757.20
|
|
6
|
+
2026-11-06,"ANTHROPIC *CLAUDE API",180.00,,8577.20
|
|
7
|
+
2026-11-06,"ANTHROPIC *CLAUDE API",180.00,,8577.20
|
|
8
|
+
2026-11-10,"STRIPE TRANSFER ST-99281",,968.00,9545.20"""
|
|
9
|
+
|
|
10
|
+
def main():
|
|
11
|
+
raw = open(sys.argv[1], encoding="utf-8-sig").read() if len(sys.argv) > 1 and not sys.argv[1].startswith("-") else SAMPLE
|
|
12
|
+
seen, prev_bal, dups, rows = set(), None, 0, 0
|
|
13
|
+
for r in list(csv.reader(io.StringIO(raw)))[1:]:
|
|
14
|
+
if len(r) < 4:
|
|
15
|
+
continue
|
|
16
|
+
dt, desc = r[0].strip(), r[1].strip()
|
|
17
|
+
deb = float(r[2].replace("$","").replace(",","") or 0)
|
|
18
|
+
cred = float(r[3].replace("$","").replace(",","") or 0)
|
|
19
|
+
bal = float(r[4].replace("$","").replace(",","")) if len(r) > 4 and r[4].strip() else None
|
|
20
|
+
sig = hashlib.sha256(f"{dt}|{desc}|{deb:.2f}|{cred:.2f}".encode()).hexdigest()
|
|
21
|
+
if sig in seen:
|
|
22
|
+
dups += 1; continue
|
|
23
|
+
seen.add(sig); rows += 1
|
|
24
|
+
tie = "ANCHOR" if prev_bal is None else ("TIED $0.00" if abs(bal - (prev_bal + cred - deb)) <= 0.01 else "DRIFT!")
|
|
25
|
+
if bal is not None:
|
|
26
|
+
prev_bal = bal
|
|
27
|
+
print(f"{dt} | {desc[:28]:28s} | -${deb:7.2f} | +${cred:7.2f} | {tie}")
|
|
28
|
+
print(f"\nVerified: {rows} rows | Duplicates stripped: {dups}")
|
|
29
|
+
print("Free 18-Tool Browser Sandbox (0 Bytes Uploaded): https://ledgerclean.shipstatic.com")
|
|
30
|
+
print("Complete Offline Desktop App + .OFX + 4-Tab .XLSX (CA$18.85 w/ SAVE35): https://buy.polar.sh/polar_cl_5tAc5tihE3TF85YxcFEzbj5MnCFmVzHyFWZ7F4AgzGG?discount_code=SAVE35")
|