typedframes 0.14.3__tar.gz → 0.14.5__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.
Files changed (71) hide show
  1. {typedframes-0.14.3 → typedframes-0.14.5}/PKG-INFO +13 -13
  2. {typedframes-0.14.3 → typedframes-0.14.5}/README.md +12 -12
  3. {typedframes-0.14.3 → typedframes-0.14.5}/pyproject.toml +8 -8
  4. {typedframes-0.14.3 → typedframes-0.14.5}/rust/Cargo.lock +117 -119
  5. {typedframes-0.14.3 → typedframes-0.14.5}/rust/Cargo.toml +1 -1
  6. {typedframes-0.14.3 → typedframes-0.14.5}/rust/python/Cargo.toml +1 -1
  7. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/args.rs +3 -1
  8. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/check.rs +45 -15
  9. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/report.rs +25 -9
  10. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/column_usage.rs +43 -3
  11. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/engine.rs +14 -4
  12. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/errors.rs +5 -0
  13. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/frame_ops.rs +21 -3
  14. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/helpers.rs +29 -2
  15. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/index.rs +5 -1
  16. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/linter.rs +1187 -274
  17. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/notebook.rs +3 -0
  18. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/report.rs +288 -28
  19. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/static_eval.rs +21 -0
  20. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/suggest.rs +125 -2
  21. {typedframes-0.14.3 → typedframes-0.14.5}/rust/tests/cli.rs +506 -0
  22. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/__init__.py +1 -1
  23. {typedframes-0.14.3 → typedframes-0.14.5}/.cargo/config.toml +0 -0
  24. {typedframes-0.14.3 → typedframes-0.14.5}/LICENSE +0 -0
  25. {typedframes-0.14.3 → typedframes-0.14.5}/rust/README.md +0 -0
  26. {typedframes-0.14.3 → typedframes-0.14.5}/rust/benches/parser_bench.rs +0 -0
  27. {typedframes-0.14.3 → typedframes-0.14.5}/rust/build.rs +0 -0
  28. {typedframes-0.14.3 → typedframes-0.14.5}/rust/python/build.rs +0 -0
  29. {typedframes-0.14.3 → typedframes-0.14.5}/rust/python/src/lib.rs +0 -0
  30. {typedframes-0.14.3 → typedframes-0.14.5}/rust/python-data/scripts/typedframes-py +0 -0
  31. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/apply.rs +0 -0
  32. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/ast_extract.rs +0 -0
  33. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/call_usage.rs +0 -0
  34. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/cache.rs +0 -0
  35. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/collect.rs +0 -0
  36. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/config.rs +0 -0
  37. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/coverage.rs +0 -0
  38. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/mod.rs +0 -0
  39. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/pathutil.rs +0 -0
  40. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/pyfmt.rs +0 -0
  41. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/style.rs +0 -0
  42. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/cli/suggest.rs +0 -0
  43. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/column_consuming_methods.rs +0 -0
  44. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/config.rs +0 -0
  45. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/constants.rs +0 -0
  46. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/contract.rs +0 -0
  47. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/fast_hash.rs +0 -0
  48. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/lib.rs +0 -0
  49. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/library_names.txt +0 -0
  50. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/main.rs +0 -0
  51. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/parallel.rs +0 -0
  52. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/phrase.rs +0 -0
  53. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/report_minimize.rs +0 -0
  54. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/report_names.rs +0 -0
  55. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/sql.rs +0 -0
  56. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/typo.rs +0 -0
  57. {typedframes-0.14.3 → typedframes-0.14.5}/rust/src/words.txt +0 -0
  58. {typedframes-0.14.3 → typedframes-0.14.5}/rust/tests/integration_test.rs +0 -0
  59. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/__main__.py +0 -0
  60. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/_binary.py +0 -0
  61. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/_rust.pyi +0 -0
  62. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/base_schema.py +0 -0
  63. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/column.py +0 -0
  64. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/column_group.py +0 -0
  65. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/column_group_error.py +0 -0
  66. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/column_set.py +0 -0
  67. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/missing_dependency_error.py +0 -0
  68. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/mypy.py +0 -0
  69. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/pandera.py +0 -0
  70. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/py.typed +0 -0
  71. {typedframes-0.14.3 → typedframes-0.14.5}/src/typedframes/schema_algebra.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: typedframes
3
- Version: 0.14.3
3
+ Version: 0.14.5
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -44,7 +44,7 @@ Project-URL: Repository, https://github.com/w-martin/typedframes
44
44
 
45
45
  > ⚠️ **Project Status: Proof of Concept**
46
46
  >
47
- > `typedframes` (v0.14.3) is currently an experimental proof-of-concept. The core static analysis and mypy/Rust
47
+ > `typedframes` (v0.14.5) is currently an experimental proof-of-concept. The core static analysis and mypy/Rust
48
48
  > integrations work, but expect rough edges. The codebase prioritizes demonstrating the viability of static DataFrame
49
49
  > column checking over production-grade stability.
50
50
  >
@@ -515,7 +515,7 @@ repos:
515
515
  name: typedframes check
516
516
  entry: typedframes check . --strict
517
517
  language: python
518
- additional_dependencies: ["typedframes==0.14.3"]
518
+ additional_dependencies: ["typedframes==0.14.5"]
519
519
  types_or: [python, jupyter]
520
520
  pass_filenames: false
521
521
  ```
@@ -564,7 +564,7 @@ The action installs the PyPI wheel into a throwaway virtualenv and runs the chec
564
564
  | Input | Default | |
565
565
  |-------|---------|-|
566
566
  | `path` | `.` | File or directory to check |
567
- | `version` | `latest` | PyPI version to install, e.g. `"0.14.3"` |
567
+ | `version` | `latest` | PyPI version to install, e.g. `"0.14.5"` |
568
568
  | `strict` | `true` | Fail the step on errors — `typedframes check` exits 0 without it |
569
569
  | `coverage-fail-under` | *(unset)* | Minimum DataFrame schema coverage, e.g. `"90"` |
570
570
  | `coverage-detail` | `summary` | Or `term-missing` for the per-file breakdown, `explain` to diagnose a lower-than-expected total |
@@ -592,7 +592,7 @@ and the files are written together or not at all. See the
592
592
 
593
593
  If `check` or `suggest` gets a site wrong and the code can't be shared, `typedframes report quiet-amber src/` prints a
594
594
  bug-report body with a redacted copy of the code around that site, checked against the checker so it reproduces the same
595
- result. `typedframes report --all src/` does this for every untyped site, grouped by why the checker decided as it did; add `--format compact` for a few lines per group that fit in one screenshot.
595
+ result. `typedframes report --all src/` does this for every untyped site, grouped by why the checker decided as it did; add `--format compact` for a few lines per group that fit in one screenshot. A frame passed to a call the checker can't follow says what kind of callee it was (a function in this file, an imported function with no summary, a method of another object, ...), and `--outcome untracked` lists the frames used like a DataFrame that the checker doesn't track at all.
596
596
  Redacted is not anonymous: read it before posting, and don't use it on code you aren't allowed to share. See
597
597
  [Reporting a problem](docs/usage.md#reporting-a-problem-report), and
598
598
  [Security and data handling](docs/security.md) for what the tool reads, writes and connects to.
@@ -704,17 +704,17 @@ plus the requested features, so both halves get checked normally. See
704
704
  Fast feedback reduces development time. The typedframes Rust binary provides near-instant column checking.
705
705
 
706
706
  **Benchmark results** (median of 5 runs ± one standard deviation, 3 warmup, caches cleared between runs):
707
- *2026-10-18 · Darwin 27.0.0 · arm · CPython 3.15.0 · 64GiB RAM · Great Expectations pinned @ 1.23.2*
707
+ *2026-10-24 · Darwin 27.0.0 · arm · CPython 3.15.0 · 64GiB RAM · Great Expectations pinned @ 1.23.2*
708
708
 
709
709
  | Tool | Version | What it does | typedframes (12 files) | great_expectations (494 files) |
710
710
  |------|---------|--------------|------------------------|--------------------------------|
711
- | typedframes | 0.14.2 | DataFrame column checker | 21.2 ± 0.8 ms | 50.8 ± 0.6 ms |
712
- | ruff | 0.17.1 | Linter (no type checking) | 25.9 ± 0.4 ms | 224.4 ± 3.4 ms |
713
- | ty | 0.0.89 | Type checker | 52.5 ± 0.6 ms | 818.7 ± 24.5 ms |
714
- | pyrefly | 1.4.0 | Type checker | 116.8 ± 5.8 ms | 323.6 ± 10.1 ms |
715
- | mypy | 2.4.0 | Type checker (no plugin) | 2.01 ± 0.14 s | 3.37 ± 0.03 s |
716
- | mypy + typedframes | 2.4.0 | Type checker + column checker | 2.04 ± 0.02 s | 3.68 ± 0.10 s |
717
- | pyright | 1.1.414 | Type checker | 714.9 ± 20.2 ms | 4.59 ± 0.33 s |
711
+ | typedframes | 0.14.5 | DataFrame column checker | 21.8 ± 0.1 ms | 55.0 ± 0.3 ms |
712
+ | ruff | 0.17.2 | Linter (no type checking) | 29.5 ± 1.0 ms | 233.7 ± 2.1 ms |
713
+ | ty | 0.0.91 | Type checker | 55.6 ± 0.4 ms | 821.0 ± 73.5 ms |
714
+ | pyrefly | 1.4.0 | Type checker | 121.3 ± 6.0 ms | 386.6 ± 24.9 ms |
715
+ | mypy | 2.4.0 | Type checker (no plugin) | 2.02 ± 0.12 s | 3.28 ± 0.15 s |
716
+ | mypy + typedframes | 2.4.0 | Type checker + column checker | 2.06 ± 0.01 s | 3.50 ± 0.08 s |
717
+ | pyright | 1.1.414 | Type checker | 778.0 ± 22.3 ms | 4.11 ± 0.09 s |
718
718
 
719
719
  *Run `uv run python benchmarks/benchmark_checkers.py` to reproduce.*
720
720
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > ⚠️ **Project Status: Proof of Concept**
10
10
  >
11
- > `typedframes` (v0.14.3) is currently an experimental proof-of-concept. The core static analysis and mypy/Rust
11
+ > `typedframes` (v0.14.5) is currently an experimental proof-of-concept. The core static analysis and mypy/Rust
12
12
  > integrations work, but expect rough edges. The codebase prioritizes demonstrating the viability of static DataFrame
13
13
  > column checking over production-grade stability.
14
14
  >
@@ -479,7 +479,7 @@ repos:
479
479
  name: typedframes check
480
480
  entry: typedframes check . --strict
481
481
  language: python
482
- additional_dependencies: ["typedframes==0.14.3"]
482
+ additional_dependencies: ["typedframes==0.14.5"]
483
483
  types_or: [python, jupyter]
484
484
  pass_filenames: false
485
485
  ```
@@ -528,7 +528,7 @@ The action installs the PyPI wheel into a throwaway virtualenv and runs the chec
528
528
  | Input | Default | |
529
529
  |-------|---------|-|
530
530
  | `path` | `.` | File or directory to check |
531
- | `version` | `latest` | PyPI version to install, e.g. `"0.14.3"` |
531
+ | `version` | `latest` | PyPI version to install, e.g. `"0.14.5"` |
532
532
  | `strict` | `true` | Fail the step on errors — `typedframes check` exits 0 without it |
533
533
  | `coverage-fail-under` | *(unset)* | Minimum DataFrame schema coverage, e.g. `"90"` |
534
534
  | `coverage-detail` | `summary` | Or `term-missing` for the per-file breakdown, `explain` to diagnose a lower-than-expected total |
@@ -556,7 +556,7 @@ and the files are written together or not at all. See the
556
556
 
557
557
  If `check` or `suggest` gets a site wrong and the code can't be shared, `typedframes report quiet-amber src/` prints a
558
558
  bug-report body with a redacted copy of the code around that site, checked against the checker so it reproduces the same
559
- result. `typedframes report --all src/` does this for every untyped site, grouped by why the checker decided as it did; add `--format compact` for a few lines per group that fit in one screenshot.
559
+ result. `typedframes report --all src/` does this for every untyped site, grouped by why the checker decided as it did; add `--format compact` for a few lines per group that fit in one screenshot. A frame passed to a call the checker can't follow says what kind of callee it was (a function in this file, an imported function with no summary, a method of another object, ...), and `--outcome untracked` lists the frames used like a DataFrame that the checker doesn't track at all.
560
560
  Redacted is not anonymous: read it before posting, and don't use it on code you aren't allowed to share. See
561
561
  [Reporting a problem](docs/usage.md#reporting-a-problem-report), and
562
562
  [Security and data handling](docs/security.md) for what the tool reads, writes and connects to.
@@ -668,17 +668,17 @@ plus the requested features, so both halves get checked normally. See
668
668
  Fast feedback reduces development time. The typedframes Rust binary provides near-instant column checking.
669
669
 
670
670
  **Benchmark results** (median of 5 runs ± one standard deviation, 3 warmup, caches cleared between runs):
671
- *2026-10-18 · Darwin 27.0.0 · arm · CPython 3.15.0 · 64GiB RAM · Great Expectations pinned @ 1.23.2*
671
+ *2026-10-24 · Darwin 27.0.0 · arm · CPython 3.15.0 · 64GiB RAM · Great Expectations pinned @ 1.23.2*
672
672
 
673
673
  | Tool | Version | What it does | typedframes (12 files) | great_expectations (494 files) |
674
674
  |------|---------|--------------|------------------------|--------------------------------|
675
- | typedframes | 0.14.2 | DataFrame column checker | 21.2 ± 0.8 ms | 50.8 ± 0.6 ms |
676
- | ruff | 0.17.1 | Linter (no type checking) | 25.9 ± 0.4 ms | 224.4 ± 3.4 ms |
677
- | ty | 0.0.89 | Type checker | 52.5 ± 0.6 ms | 818.7 ± 24.5 ms |
678
- | pyrefly | 1.4.0 | Type checker | 116.8 ± 5.8 ms | 323.6 ± 10.1 ms |
679
- | mypy | 2.4.0 | Type checker (no plugin) | 2.01 ± 0.14 s | 3.37 ± 0.03 s |
680
- | mypy + typedframes | 2.4.0 | Type checker + column checker | 2.04 ± 0.02 s | 3.68 ± 0.10 s |
681
- | pyright | 1.1.414 | Type checker | 714.9 ± 20.2 ms | 4.59 ± 0.33 s |
675
+ | typedframes | 0.14.5 | DataFrame column checker | 21.8 ± 0.1 ms | 55.0 ± 0.3 ms |
676
+ | ruff | 0.17.2 | Linter (no type checking) | 29.5 ± 1.0 ms | 233.7 ± 2.1 ms |
677
+ | ty | 0.0.91 | Type checker | 55.6 ± 0.4 ms | 821.0 ± 73.5 ms |
678
+ | pyrefly | 1.4.0 | Type checker | 121.3 ± 6.0 ms | 386.6 ± 24.9 ms |
679
+ | mypy | 2.4.0 | Type checker (no plugin) | 2.02 ± 0.12 s | 3.28 ± 0.15 s |
680
+ | mypy + typedframes | 2.4.0 | Type checker + column checker | 2.06 ± 0.01 s | 3.50 ± 0.08 s |
681
+ | pyright | 1.1.414 | Type checker | 778.0 ± 22.3 ms | 4.11 ± 0.09 s |
682
682
 
683
683
  *Run `uv run python benchmarks/benchmark_checkers.py` to reproduce.*
684
684
 
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "typedframes"
7
- version = "0.14.3"
7
+ version = "0.14.5"
8
8
  description = "Static analysis for pandas and polars DataFrames. Catch column errors at lint-time, not runtime."
9
9
  keywords = ["pandas", "polars", "type-checking", "static-analysis", "dataframe", "linter", "mypy-plugin"]
10
10
  readme = "README.md"
@@ -100,7 +100,7 @@ ignore = [
100
100
 
101
101
  [tool.ruff.lint.per-file-ignores]
102
102
  "tests/*" = ["S101", "SLF001", "S603", "S607"]
103
- "tests/fixtures/*" = ["T201"]
103
+ "tests/fixtures/*" = ["T201", "ANN", "ARG", "B007", "D", "F841", "INP001", "PD011", "RET504"]
104
104
  "examples/*" = ["T201", "INP001", "D100", "D101", "D103", "BLE001", "ERA001", "F821", "PLR2004"]
105
105
  # S608: these connector examples deliberately build a query at runtime (an f-string, not
106
106
  # a literal) to demonstrate the untracked-dataframe case -- not a real injection risk in
@@ -128,11 +128,11 @@ convention = "google"
128
128
 
129
129
  [dependency-groups]
130
130
  docs = [
131
- "mkdocs-material>=9.7.7",
132
- "mkdocstrings-python>=2.0.9",
131
+ "mkdocs-material>=9.8.0",
132
+ "mkdocstrings-python>=2.0.10",
133
133
  ]
134
134
  dev = [
135
- "pandas>=3.0.6",
135
+ "pandas>=3.1.0",
136
136
  "pandera>=0.34.1",
137
137
  "pip-audit>=2.10.1",
138
138
  "polars>=2.0.0",
@@ -147,11 +147,11 @@ dev = [
147
147
  "pytest>=9.1.1",
148
148
  "pytest-cov>=7.1.0",
149
149
  "pytest-xdist>=3.8.0",
150
- "ruff>=0.17.1",
151
- "ty>=0.0.89",
150
+ "ruff>=0.17.2",
151
+ "ty>=0.0.91",
152
152
  "openpyxl>=3.1.5",
153
153
  "pyarrow>=26.0.0",
154
- "xlsxwriter>=3.2.9",
154
+ "xlsxwriter>=3.3.0",
155
155
  "fastexcel>=0.21.0",
156
156
  "pandas-stubs>=3.0.5.260914",
157
157
  "mypy>=2.4.0",