typedframes 0.12.0__tar.gz → 0.14.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.
Files changed (76) hide show
  1. typedframes-0.14.0/.cargo/config.toml +6 -0
  2. {typedframes-0.12.0 → typedframes-0.14.0}/PKG-INFO +18 -16
  3. {typedframes-0.12.0 → typedframes-0.14.0}/README.md +17 -15
  4. {typedframes-0.12.0 → typedframes-0.14.0}/pyproject.toml +25 -26
  5. {typedframes-0.12.0 → typedframes-0.14.0}/rust/Cargo.lock +137 -75
  6. {typedframes-0.12.0 → typedframes-0.14.0}/rust/Cargo.toml +14 -17
  7. {typedframes-0.12.0 → typedframes-0.14.0}/rust/benches/parser_bench.rs +1 -1
  8. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/apply.rs +1 -1
  9. typedframes-0.14.0/rust/src/call_usage.rs +425 -0
  10. typedframes-0.14.0/rust/src/cli/args.rs +303 -0
  11. typedframes-0.14.0/rust/src/cli/cache.rs +390 -0
  12. typedframes-0.14.0/rust/src/cli/check.rs +741 -0
  13. typedframes-0.14.0/rust/src/cli/collect.rs +221 -0
  14. typedframes-0.14.0/rust/src/cli/config.rs +423 -0
  15. typedframes-0.14.0/rust/src/cli/coverage.rs +854 -0
  16. typedframes-0.14.0/rust/src/cli/mod.rs +62 -0
  17. typedframes-0.14.0/rust/src/cli/pathutil.rs +141 -0
  18. typedframes-0.14.0/rust/src/cli/pyfmt.rs +176 -0
  19. typedframes-0.14.0/rust/src/cli/report.rs +392 -0
  20. typedframes-0.14.0/rust/src/cli/style.rs +9 -0
  21. typedframes-0.14.0/rust/src/cli/suggest.rs +502 -0
  22. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/column_usage.rs +36 -16
  23. typedframes-0.14.0/rust/src/engine.rs +514 -0
  24. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/errors.rs +1 -0
  25. typedframes-0.14.0/rust/src/fast_hash.rs +106 -0
  26. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/helpers.rs +96 -5
  27. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/index.rs +562 -249
  28. typedframes-0.14.0/rust/src/lib.rs +89 -0
  29. typedframes-0.14.0/rust/src/library_names.txt +2852 -0
  30. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/linter.rs +533 -23
  31. typedframes-0.14.0/rust/src/main.rs +3 -0
  32. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/parallel.rs +76 -0
  33. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/report.rs +233 -18
  34. typedframes-0.14.0/rust/src/report_minimize.rs +315 -0
  35. typedframes-0.14.0/rust/src/report_names.rs +311 -0
  36. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/static_eval.rs +372 -124
  37. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/suggest.rs +45 -1
  38. typedframes-0.14.0/rust/tests/cli.rs +665 -0
  39. {typedframes-0.12.0 → typedframes-0.14.0}/rust/tests/integration_test.rs +1 -1
  40. {typedframes-0.12.0 → typedframes-0.14.0}/src/typedframes/__init__.py +1 -1
  41. typedframes-0.14.0/src/typedframes/__main__.py +5 -0
  42. typedframes-0.14.0/src/typedframes/_binary.py +57 -0
  43. {typedframes-0.12.0 → typedframes-0.14.0}/src/typedframes/mypy.py +45 -41
  44. typedframes-0.12.0/rust/.cargo/config.toml +0 -21
  45. typedframes-0.12.0/rust/src/lib.rs +0 -77
  46. typedframes-0.12.0/rust/src/main.rs +0 -31
  47. typedframes-0.12.0/rust/src/pyapi.rs +0 -572
  48. typedframes-0.12.0/rust/src/report_names.rs +0 -631
  49. typedframes-0.12.0/src/typedframes/_rust_checker.pyi +0 -31
  50. typedframes-0.12.0/src/typedframes/cache.py +0 -134
  51. typedframes-0.12.0/src/typedframes/cli.py +0 -1992
  52. typedframes-0.12.0/src/typedframes/compat.py +0 -28
  53. typedframes-0.12.0/src/typedframes/python315.py +0 -13
  54. {typedframes-0.12.0 → typedframes-0.14.0}/LICENSE +0 -0
  55. {typedframes-0.12.0 → typedframes-0.14.0}/rust/README.md +0 -0
  56. {typedframes-0.12.0 → typedframes-0.14.0}/rust/build.rs +0 -0
  57. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/ast_extract.rs +0 -0
  58. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/column_consuming_methods.rs +0 -0
  59. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/config.rs +0 -0
  60. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/constants.rs +0 -0
  61. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/contract.rs +0 -0
  62. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/frame_ops.rs +0 -0
  63. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/notebook.rs +0 -0
  64. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/phrase.rs +0 -0
  65. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/sql.rs +0 -0
  66. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/typo.rs +0 -0
  67. {typedframes-0.12.0 → typedframes-0.14.0}/rust/src/words.txt +0 -0
  68. {typedframes-0.12.0 → typedframes-0.14.0}/src/typedframes/base_schema.py +0 -0
  69. {typedframes-0.12.0 → typedframes-0.14.0}/src/typedframes/column.py +0 -0
  70. {typedframes-0.12.0 → typedframes-0.14.0}/src/typedframes/column_group.py +0 -0
  71. {typedframes-0.12.0 → typedframes-0.14.0}/src/typedframes/column_group_error.py +0 -0
  72. {typedframes-0.12.0 → typedframes-0.14.0}/src/typedframes/column_set.py +0 -0
  73. {typedframes-0.12.0 → typedframes-0.14.0}/src/typedframes/missing_dependency_error.py +0 -0
  74. {typedframes-0.12.0 → typedframes-0.14.0}/src/typedframes/pandera.py +0 -0
  75. {typedframes-0.12.0 → typedframes-0.14.0}/src/typedframes/py.typed +0 -0
  76. {typedframes-0.12.0 → typedframes-0.14.0}/src/typedframes/schema_algebra.py +0 -0
@@ -0,0 +1,6 @@
1
+ # jemalloc's defaults suit a long-lived server. A check runs for tens of milliseconds on many
2
+ # threads, so it does better with few arenas and no lingering free memory. The setting is compiled
3
+ # in, which is why it lives here and not in the program: the allocator is running before any code
4
+ # could change it, and the program may not use `unsafe`.
5
+ [env]
6
+ JEMALLOC_SYS_WITH_MALLOC_CONF = "narenas:4,dirty_decay_ms:0,muzzy_decay_ms:0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: typedframes
3
- Version: 0.12.0
3
+ Version: 0.14.0
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.12.0) is currently an experimental proof-of-concept. The core static analysis and mypy/Rust
47
+ > `typedframes` (v0.14.0) 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
  >
@@ -131,8 +131,9 @@ or
131
131
  uv add typedframes
132
132
  ```
133
133
 
134
- The Rust-based checker is included — no separate install needed. `typedframes` itself has
135
- no required dependencies; add the extra for whichever backend(s) your code uses:
134
+ The `typedframes` command is a native Rust executable included in the wheel — no separate install
135
+ needed, and no Python process runs when you use it. Python is only needed for the schema classes and the mypy
136
+ plugin. `typedframes` itself has no required dependencies; add the extra for whichever backend(s) your code uses:
136
137
 
137
138
  ```shell
138
139
  pip install typedframes[pandas] # includes pandas
@@ -506,7 +507,7 @@ repos:
506
507
  name: typedframes check
507
508
  entry: typedframes check . --strict
508
509
  language: python
509
- additional_dependencies: ["typedframes==0.12.0"]
510
+ additional_dependencies: ["typedframes==0.14.0"]
510
511
  types_or: [python, jupyter]
511
512
  pass_filenames: false
512
513
  ```
@@ -555,7 +556,7 @@ The action installs the PyPI wheel into a throwaway virtualenv and runs the chec
555
556
  | Input | Default | |
556
557
  |-------|---------|-|
557
558
  | `path` | `.` | File or directory to check |
558
- | `version` | `latest` | PyPI version to install, e.g. `"0.12.0"` |
559
+ | `version` | `latest` | PyPI version to install, e.g. `"0.14.0"` |
559
560
  | `strict` | `true` | Fail the step on errors — `typedframes check` exits 0 without it |
560
561
  | `coverage-fail-under` | *(unset)* | Minimum DataFrame schema coverage, e.g. `"90"` |
561
562
  | `coverage-detail` | `summary` | Or `term-missing` for the per-file breakdown, `explain` to diagnose a lower-than-expected total |
@@ -583,7 +584,8 @@ and the files are written together or not at all. See the
583
584
 
584
585
  If `check` or `suggest` gets a site wrong and the code can't be shared, `typedframes report quiet-amber src/` prints a
585
586
  bug-report body with a redacted copy of the code around that site, checked against the checker so it reproduces the same
586
- result. Redacted is not anonymous: read it before posting, and don't use it on code you aren't allowed to share. See
587
+ result. `typedframes report --all src/` does this for every untyped site, grouped by why the checker decided as it did.
588
+ Redacted is not anonymous: read it before posting, and don't use it on code you aren't allowed to share. See
587
589
  [Reporting a problem](docs/usage.md#reporting-a-problem-report), and
588
590
  [Security and data handling](docs/security.md) for what the tool reads, writes and connects to.
589
591
 
@@ -694,17 +696,17 @@ plus the requested features, so both halves get checked normally. See
694
696
  Fast feedback reduces development time. The typedframes Rust binary provides near-instant column checking.
695
697
 
696
698
  **Benchmark results** (median of 5 runs ± one standard deviation, 3 warmup, caches cleared between runs):
697
- *2026-10-11 · Darwin 27.0.0 · arm · CPython 3.15.0 · 64GiB RAM · Great Expectations pinned @ 1.23.2*
699
+ *2026-10-13 · Darwin 27.0.0 · arm · CPython 3.15.0 · 64GiB RAM · Great Expectations pinned @ 1.23.2*
698
700
 
699
- | Tool | Version | What it does | typedframes (14 files) | great_expectations (494 files) |
701
+ | Tool | Version | What it does | typedframes (12 files) | great_expectations (494 files) |
700
702
  |------|---------|--------------|------------------------|--------------------------------|
701
- | typedframes | 0.12.0 | DataFrame column checker | 41.1 ± 0.7 ms | 122.1 ± 0.6 ms |
702
- | ruff | 0.17.0 | Linter (no type checking) | 21.5 ± 0.6 ms | 212.9 ± 1.5 ms |
703
- | ty | 0.0.84 | Type checker | 50.2 ± 0.3 ms | 751.7 ± 7.6 ms |
704
- | pyrefly | 1.3.2 | Type checker | 91.5 ± 2.5 ms | 268.9 ± 3.8 ms |
705
- | mypy | 2.4.0 | Type checker (no plugin) | 1.82 ± 0.03 s | 3.04 ± 0.02 s |
706
- | mypy + typedframes | 2.4.0 | Type checker + column checker | 1.84 ± 0.02 s | 3.46 ± 0.02 s |
707
- | pyright | 1.1.414 | Type checker | 794.2 ± 13.8 ms | 3.90 ± 0.03 s |
703
+ | typedframes | 0.14.0 | DataFrame column checker | 18.1 ± 0.2 ms | 48.6 ± 0.1 ms |
704
+ | ruff | 0.17.0 | Linter (no type checking) | 25.1 ± 1.7 ms | 214.6 ± 2.0 ms |
705
+ | ty | 0.0.84 | Type checker | 51.1 ± 10.3 ms | 754.2 ± 9.0 ms |
706
+ | pyrefly | 1.3.2 | Type checker | 99.3 ± 11.0 ms | 299.0 ± 6.4 ms |
707
+ | mypy | 2.4.0 | Type checker (no plugin) | 1.79 ± 0.01 s | 2.99 ± 0.03 s |
708
+ | mypy + typedframes | 2.4.0 | Type checker + column checker | 1.81 ± 0.01 s | 3.16 ± 0.01 s |
709
+ | pyright | 1.1.414 | Type checker | 656.8 ± 5.8 ms | 3.86 ± 0.07 s |
708
710
 
709
711
  *Run `uv run python benchmarks/benchmark_checkers.py` to reproduce.*
710
712
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > ⚠️ **Project Status: Proof of Concept**
10
10
  >
11
- > `typedframes` (v0.12.0) is currently an experimental proof-of-concept. The core static analysis and mypy/Rust
11
+ > `typedframes` (v0.14.0) 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
  >
@@ -95,8 +95,9 @@ or
95
95
  uv add typedframes
96
96
  ```
97
97
 
98
- The Rust-based checker is included — no separate install needed. `typedframes` itself has
99
- no required dependencies; add the extra for whichever backend(s) your code uses:
98
+ The `typedframes` command is a native Rust executable included in the wheel — no separate install
99
+ needed, and no Python process runs when you use it. Python is only needed for the schema classes and the mypy
100
+ plugin. `typedframes` itself has no required dependencies; add the extra for whichever backend(s) your code uses:
100
101
 
101
102
  ```shell
102
103
  pip install typedframes[pandas] # includes pandas
@@ -470,7 +471,7 @@ repos:
470
471
  name: typedframes check
471
472
  entry: typedframes check . --strict
472
473
  language: python
473
- additional_dependencies: ["typedframes==0.12.0"]
474
+ additional_dependencies: ["typedframes==0.14.0"]
474
475
  types_or: [python, jupyter]
475
476
  pass_filenames: false
476
477
  ```
@@ -519,7 +520,7 @@ The action installs the PyPI wheel into a throwaway virtualenv and runs the chec
519
520
  | Input | Default | |
520
521
  |-------|---------|-|
521
522
  | `path` | `.` | File or directory to check |
522
- | `version` | `latest` | PyPI version to install, e.g. `"0.12.0"` |
523
+ | `version` | `latest` | PyPI version to install, e.g. `"0.14.0"` |
523
524
  | `strict` | `true` | Fail the step on errors — `typedframes check` exits 0 without it |
524
525
  | `coverage-fail-under` | *(unset)* | Minimum DataFrame schema coverage, e.g. `"90"` |
525
526
  | `coverage-detail` | `summary` | Or `term-missing` for the per-file breakdown, `explain` to diagnose a lower-than-expected total |
@@ -547,7 +548,8 @@ and the files are written together or not at all. See the
547
548
 
548
549
  If `check` or `suggest` gets a site wrong and the code can't be shared, `typedframes report quiet-amber src/` prints a
549
550
  bug-report body with a redacted copy of the code around that site, checked against the checker so it reproduces the same
550
- result. Redacted is not anonymous: read it before posting, and don't use it on code you aren't allowed to share. See
551
+ result. `typedframes report --all src/` does this for every untyped site, grouped by why the checker decided as it did.
552
+ Redacted is not anonymous: read it before posting, and don't use it on code you aren't allowed to share. See
551
553
  [Reporting a problem](docs/usage.md#reporting-a-problem-report), and
552
554
  [Security and data handling](docs/security.md) for what the tool reads, writes and connects to.
553
555
 
@@ -658,17 +660,17 @@ plus the requested features, so both halves get checked normally. See
658
660
  Fast feedback reduces development time. The typedframes Rust binary provides near-instant column checking.
659
661
 
660
662
  **Benchmark results** (median of 5 runs ± one standard deviation, 3 warmup, caches cleared between runs):
661
- *2026-10-11 · Darwin 27.0.0 · arm · CPython 3.15.0 · 64GiB RAM · Great Expectations pinned @ 1.23.2*
663
+ *2026-10-13 · Darwin 27.0.0 · arm · CPython 3.15.0 · 64GiB RAM · Great Expectations pinned @ 1.23.2*
662
664
 
663
- | Tool | Version | What it does | typedframes (14 files) | great_expectations (494 files) |
665
+ | Tool | Version | What it does | typedframes (12 files) | great_expectations (494 files) |
664
666
  |------|---------|--------------|------------------------|--------------------------------|
665
- | typedframes | 0.12.0 | DataFrame column checker | 41.1 ± 0.7 ms | 122.1 ± 0.6 ms |
666
- | ruff | 0.17.0 | Linter (no type checking) | 21.5 ± 0.6 ms | 212.9 ± 1.5 ms |
667
- | ty | 0.0.84 | Type checker | 50.2 ± 0.3 ms | 751.7 ± 7.6 ms |
668
- | pyrefly | 1.3.2 | Type checker | 91.5 ± 2.5 ms | 268.9 ± 3.8 ms |
669
- | mypy | 2.4.0 | Type checker (no plugin) | 1.82 ± 0.03 s | 3.04 ± 0.02 s |
670
- | mypy + typedframes | 2.4.0 | Type checker + column checker | 1.84 ± 0.02 s | 3.46 ± 0.02 s |
671
- | pyright | 1.1.414 | Type checker | 794.2 ± 13.8 ms | 3.90 ± 0.03 s |
667
+ | typedframes | 0.14.0 | DataFrame column checker | 18.1 ± 0.2 ms | 48.6 ± 0.1 ms |
668
+ | ruff | 0.17.0 | Linter (no type checking) | 25.1 ± 1.7 ms | 214.6 ± 2.0 ms |
669
+ | ty | 0.0.84 | Type checker | 51.1 ± 10.3 ms | 754.2 ± 9.0 ms |
670
+ | pyrefly | 1.3.2 | Type checker | 99.3 ± 11.0 ms | 299.0 ± 6.4 ms |
671
+ | mypy | 2.4.0 | Type checker (no plugin) | 1.79 ± 0.01 s | 2.99 ± 0.03 s |
672
+ | mypy + typedframes | 2.4.0 | Type checker + column checker | 1.81 ± 0.01 s | 3.16 ± 0.01 s |
673
+ | pyright | 1.1.414 | Type checker | 656.8 ± 5.8 ms | 3.86 ± 0.07 s |
672
674
 
673
675
  *Run `uv run python benchmarks/benchmark_checkers.py` to reproduce.*
674
676
 
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "typedframes"
7
- version = "0.12.0"
7
+ version = "0.14.0"
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"
@@ -35,9 +35,6 @@ Documentation = "https://typedframes.readthedocs.io/en/latest/"
35
35
  Repository = "https://github.com/w-martin/typedframes"
36
36
  "Issue Tracker" = "https://github.com/w-martin/typedframes/issues"
37
37
 
38
- [project.scripts]
39
- typedframes = "typedframes.cli:main"
40
-
41
38
  [project.optional-dependencies]
42
39
  pandas = ["pandas>=2.0"]
43
40
  pandera = ["pandera>=0.20.0"]
@@ -47,9 +44,14 @@ mypy = ["mypy"]
47
44
  [tool.maturin]
48
45
  manifest-path = "rust/Cargo.toml"
49
46
  python-source = "src"
50
- module-name = "typedframes._rust_checker"
51
- features = ["pyo3/extension-module"]
52
- include = [{ path = "LICENSE", format = "sdist" }]
47
+ # The wheel carries the Rust `typedframes` executable (installed as a script) next to the Python package.
48
+ bindings = "bin"
49
+ module-name = "typedframes"
50
+ # The cargo config carries the allocator tuning, so a build from the sdist is tuned too.
51
+ include = [
52
+ { path = "LICENSE", format = "sdist" },
53
+ { path = ".cargo/config.toml", format = "sdist" },
54
+ ]
53
55
 
54
56
  [tool.pytest.ini_options]
55
57
  addopts = "--cov=. --cov-report=term-missing --cov-report=json --cov-report=lcov --cov-branch -n auto"
@@ -58,7 +60,6 @@ testpaths = ["tests"]
58
60
  [tool.coverage.run]
59
61
  branch = true
60
62
  omit = [
61
- "src/typedframes/python315.py", # needs 3.15; tests/unit/test_compat.py covers it there
62
63
  "benchmarks/*",
63
64
  "examples/*",
64
65
  "tests/*",
@@ -74,8 +75,6 @@ ignore_missing_imports = true
74
75
  line-length = 120
75
76
  target-version = "py311"
76
77
  fix = true
77
- # Files that use syntax newer than the oldest supported Python (see typedframes/compat.py).
78
- per-file-target-version = { "src/typedframes/python315.py" = "py315" }
79
78
 
80
79
  [tool.ruff.format]
81
80
  # Ensure the formatter respects the limit
@@ -112,7 +111,9 @@ ignore = [
112
111
  # join raises a tz-naive/tz-aware mismatch against that fixture.
113
112
  "examples/sql_connectors/feast/*" = ["DTZ005"]
114
113
  "tasks.py" = ["T201"]
115
- "src/typedframes/cli.py" = ["T201"]
114
+ # The one module that starts the Rust executable (the mypy plugin and `python -m typedframes` use it).
115
+ # Its command is always the installed `typedframes` executable, never user-supplied text.
116
+ "src/typedframes/_binary.py" = ["S603", "S606"]
116
117
  "benchmarks/*" = ["T201", "S603", "S607", "PLR2004", "PLR0912", "PLR0913", "TRY300"]
117
118
 
118
119
  [tool.ruff.lint.mccabe]
@@ -124,37 +125,39 @@ convention = "google"
124
125
  [dependency-groups]
125
126
  docs = [
126
127
  "mkdocs-material>=9.7.7",
127
- "mkdocstrings-python>=2.0.5",
128
+ "mkdocstrings-python>=2.0.9",
128
129
  ]
129
130
  dev = [
130
- "pandas>=3.0.5",
131
+ "pandas>=3.0.6",
131
132
  "pandera>=0.34.1",
132
133
  "pip-audit>=2.10.1",
133
- "polars>=1.43.2",
134
+ "polars>=2.0.0",
134
135
  "bandit>=1.9.4",
135
- "complexipy>=6.2.0",
136
+ "complexipy>=7.0.1,<8",
136
137
  "coverage-threshold>=0.6.2",
137
138
  "invoke>=3.0.3",
138
- "maturin>=1.14.1",
139
- "pre-commit>=4.6.1",
139
+ "maturin>=1.15.0",
140
+ "pre-commit>=4.7.0",
140
141
  "pyrefly>=1.3.2",
141
142
  "pyright>=1.1.414",
142
143
  "pytest>=9.1.1",
143
144
  "pytest-cov>=7.1.0",
144
145
  "pytest-xdist>=3.8.0",
145
146
  "ruff>=0.17.0",
146
- "ty>=0.0.84",
147
+ "ty>=0.0.87",
147
148
  "openpyxl>=3.1.5",
148
- "pyarrow>=25.0.1",
149
+ "pyarrow>=26.0.0",
149
150
  "xlsxwriter>=3.2.9",
150
- "fastexcel>=0.20.2",
151
+ "fastexcel>=0.21.0",
151
152
  "pandas-stubs>=3.0.5.260914",
152
153
  "mypy>=2.4.0",
153
- "trustedlicenses>=0.1.1",
154
+ "trustedlicenses>=0.3.4",
154
155
  ]
155
156
 
156
157
  [tool.bandit]
157
- exclude_dirs = ["tests", "examples"]
158
+ # bandit cannot skip one rule for one file, so the module that starts the Rust executable (B404, B603, B606;
159
+ # see `_binary.py`) is excluded whole. It does nothing else.
160
+ exclude_dirs = ["tests", "examples", "src/typedframes/_binary.py"]
158
161
 
159
162
  [tool.trustedlicenses]
160
163
  allowed-categories = ["Permissive", "Public Domain", "Copyleft Limited"]
@@ -172,10 +175,6 @@ branch_coverage_min = 100
172
175
  file_line_coverage_min = 100
173
176
  file_branch_coverage_min = 100
174
177
 
175
- [tool.ty.src]
176
- # Uses syntax newer than requires-python (see typedframes/compat.py); ruff still checks it.
177
- exclude = ["src/typedframes/python315.py"]
178
-
179
178
  [tool.ty.terminal]
180
179
  output-format = "concise"
181
180
 
@@ -26,12 +26,56 @@ version = "0.1.6"
26
26
  source = "registry+https://github.com/rust-lang/crates.io-index"
27
27
  checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
28
28
 
29
+ [[package]]
30
+ name = "anstream"
31
+ version = "1.0.0"
32
+ source = "registry+https://github.com/rust-lang/crates.io-index"
33
+ checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
34
+ dependencies = [
35
+ "anstyle",
36
+ "anstyle-parse",
37
+ "anstyle-query",
38
+ "anstyle-wincon",
39
+ "colorchoice",
40
+ "is_terminal_polyfill",
41
+ "utf8parse",
42
+ ]
43
+
29
44
  [[package]]
30
45
  name = "anstyle"
31
46
  version = "1.0.14"
32
47
  source = "registry+https://github.com/rust-lang/crates.io-index"
33
48
  checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
34
49
 
50
+ [[package]]
51
+ name = "anstyle-parse"
52
+ version = "1.0.0"
53
+ source = "registry+https://github.com/rust-lang/crates.io-index"
54
+ checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
55
+ dependencies = [
56
+ "utf8parse",
57
+ ]
58
+
59
+ [[package]]
60
+ name = "anstyle-query"
61
+ version = "1.1.5"
62
+ source = "registry+https://github.com/rust-lang/crates.io-index"
63
+ checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
64
+ dependencies = [
65
+ "windows-sys",
66
+ ]
67
+
68
+ [[package]]
69
+ name = "anstyle-wincon"
70
+ version = "3.0.11"
71
+ source = "registry+https://github.com/rust-lang/crates.io-index"
72
+ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
73
+ dependencies = [
74
+ "anstyle",
75
+ "once_cell_polyfill",
76
+ "windows-sys",
77
+ ]
78
+
35
79
  [[package]]
36
80
  name = "anyhow"
37
81
  version = "1.0.104"
@@ -195,21 +239,36 @@ dependencies = [
195
239
 
196
240
  [[package]]
197
241
  name = "clap"
198
- version = "4.6.6"
242
+ version = "4.6.7"
199
243
  source = "registry+https://github.com/rust-lang/crates.io-index"
200
- checksum = "473c7e07f409a8d772161724aa8db6a765a2532a70f9667eeb7b49d3d02fbdca"
244
+ checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
201
245
  dependencies = [
202
246
  "clap_builder",
247
+ "clap_derive",
203
248
  ]
204
249
 
205
250
  [[package]]
206
251
  name = "clap_builder"
207
- version = "4.6.6"
252
+ version = "4.6.7"
208
253
  source = "registry+https://github.com/rust-lang/crates.io-index"
209
- checksum = "7b48fea5a88e9ae728a2dcbedbfc0e730f7d60da42e1cb049a83c9fb8b789889"
254
+ checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
210
255
  dependencies = [
256
+ "anstream",
211
257
  "anstyle",
212
258
  "clap_lex",
259
+ "strsim",
260
+ ]
261
+
262
+ [[package]]
263
+ name = "clap_derive"
264
+ version = "4.6.7"
265
+ source = "registry+https://github.com/rust-lang/crates.io-index"
266
+ checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
267
+ dependencies = [
268
+ "heck",
269
+ "proc-macro2",
270
+ "quote",
271
+ "syn 3.0.3",
213
272
  ]
214
273
 
215
274
  [[package]]
@@ -224,6 +283,12 @@ version = "1.0.3"
224
283
  source = "registry+https://github.com/rust-lang/crates.io-index"
225
284
  checksum = "2550f75b8cfac212855f6b1885455df8eaee8fe8e246b647d69146142e016084"
226
285
 
286
+ [[package]]
287
+ name = "colorchoice"
288
+ version = "1.0.5"
289
+ source = "registry+https://github.com/rust-lang/crates.io-index"
290
+ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
291
+
227
292
  [[package]]
228
293
  name = "compact_str"
229
294
  version = "0.10.0"
@@ -494,6 +559,12 @@ dependencies = [
494
559
  "syn 2.0.119",
495
560
  ]
496
561
 
562
+ [[package]]
563
+ name = "is_terminal_polyfill"
564
+ version = "1.70.2"
565
+ source = "registry+https://github.com/rust-lang/crates.io-index"
566
+ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
567
+
497
568
  [[package]]
498
569
  name = "itertools"
499
570
  version = "0.13.0"
@@ -535,6 +606,15 @@ version = "0.2.189"
535
606
  source = "registry+https://github.com/rust-lang/crates.io-index"
536
607
  checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
537
608
 
609
+ [[package]]
610
+ name = "libmimalloc-sys"
611
+ version = "0.1.49"
612
+ source = "registry+https://github.com/rust-lang/crates.io-index"
613
+ checksum = "6a45a52f43e1c16f667ccfe4dd8c85b7f7c204fd5e3bf46c5b0db9a5c3c0b8e9"
614
+ dependencies = [
615
+ "cc",
616
+ ]
617
+
538
618
  [[package]]
539
619
  name = "linux-raw-sys"
540
620
  version = "0.12.1"
@@ -576,6 +656,15 @@ version = "2.8.3"
576
656
  source = "registry+https://github.com/rust-lang/crates.io-index"
577
657
  checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
578
658
 
659
+ [[package]]
660
+ name = "mimalloc"
661
+ version = "0.1.52"
662
+ source = "registry+https://github.com/rust-lang/crates.io-index"
663
+ checksum = "2d4139bb28d14ad1facf21d5eb8825051b326e172d216b39f6d31df53cc97862"
664
+ dependencies = [
665
+ "libmimalloc-sys",
666
+ ]
667
+
579
668
  [[package]]
580
669
  name = "num-traits"
581
670
  version = "0.2.19"
@@ -600,6 +689,12 @@ version = "1.21.4"
600
689
  source = "registry+https://github.com/rust-lang/crates.io-index"
601
690
  checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
602
691
 
692
+ [[package]]
693
+ name = "once_cell_polyfill"
694
+ version = "1.70.2"
695
+ source = "registry+https://github.com/rust-lang/crates.io-index"
696
+ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
697
+
603
698
  [[package]]
604
699
  name = "oorandom"
605
700
  version = "11.1.5"
@@ -697,12 +792,6 @@ dependencies = [
697
792
  "plotters-backend",
698
793
  ]
699
794
 
700
- [[package]]
701
- name = "portable-atomic"
702
- version = "1.14.0"
703
- source = "registry+https://github.com/rust-lang/crates.io-index"
704
- checksum = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3"
705
-
706
795
  [[package]]
707
796
  name = "ppv-lite86"
708
797
  version = "0.2.21"
@@ -742,63 +831,6 @@ dependencies = [
742
831
  "cc",
743
832
  ]
744
833
 
745
- [[package]]
746
- name = "pyo3"
747
- version = "0.29.2"
748
- source = "registry+https://github.com/rust-lang/crates.io-index"
749
- checksum = "4688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b"
750
- dependencies = [
751
- "libc",
752
- "once_cell",
753
- "portable-atomic",
754
- "pyo3-build-config",
755
- "pyo3-ffi",
756
- "pyo3-macros",
757
- ]
758
-
759
- [[package]]
760
- name = "pyo3-build-config"
761
- version = "0.29.2"
762
- source = "registry+https://github.com/rust-lang/crates.io-index"
763
- checksum = "f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9"
764
- dependencies = [
765
- "target-lexicon",
766
- ]
767
-
768
- [[package]]
769
- name = "pyo3-ffi"
770
- version = "0.29.2"
771
- source = "registry+https://github.com/rust-lang/crates.io-index"
772
- checksum = "e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327"
773
- dependencies = [
774
- "libc",
775
- "pyo3-build-config",
776
- ]
777
-
778
- [[package]]
779
- name = "pyo3-macros"
780
- version = "0.29.2"
781
- source = "registry+https://github.com/rust-lang/crates.io-index"
782
- checksum = "73225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c"
783
- dependencies = [
784
- "proc-macro2",
785
- "pyo3-macros-backend",
786
- "quote",
787
- "syn 2.0.119",
788
- ]
789
-
790
- [[package]]
791
- name = "pyo3-macros-backend"
792
- version = "0.29.2"
793
- source = "registry+https://github.com/rust-lang/crates.io-index"
794
- checksum = "571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952"
795
- dependencies = [
796
- "heck",
797
- "proc-macro2",
798
- "quote",
799
- "syn 2.0.119",
800
- ]
801
-
802
834
  [[package]]
803
835
  name = "quote"
804
836
  version = "1.0.47"
@@ -1145,6 +1177,7 @@ version = "1.0.151"
1145
1177
  source = "registry+https://github.com/rust-lang/crates.io-index"
1146
1178
  checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
1147
1179
  dependencies = [
1180
+ "indexmap",
1148
1181
  "itoa",
1149
1182
  "memchr",
1150
1183
  "serde",
@@ -1214,6 +1247,12 @@ version = "1.1.0"
1214
1247
  source = "registry+https://github.com/rust-lang/crates.io-index"
1215
1248
  checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
1216
1249
 
1250
+ [[package]]
1251
+ name = "strsim"
1252
+ version = "0.11.1"
1253
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1254
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
1255
+
1217
1256
  [[package]]
1218
1257
  name = "syn"
1219
1258
  version = "2.0.119"
@@ -1236,12 +1275,6 @@ dependencies = [
1236
1275
  "unicode-ident",
1237
1276
  ]
1238
1277
 
1239
- [[package]]
1240
- name = "target-lexicon"
1241
- version = "0.13.5"
1242
- source = "registry+https://github.com/rust-lang/crates.io-index"
1243
- checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
1244
-
1245
1278
  [[package]]
1246
1279
  name = "tempfile"
1247
1280
  version = "3.27.0"
@@ -1281,6 +1314,26 @@ dependencies = [
1281
1314
  "syn 3.0.3",
1282
1315
  ]
1283
1316
 
1317
+ [[package]]
1318
+ name = "tikv-jemalloc-sys"
1319
+ version = "0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8"
1320
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1321
+ checksum = "1a2825c78386b4ae0314074867860ba9577875de945f05992c38815cbec327f0"
1322
+ dependencies = [
1323
+ "cc",
1324
+ "libc",
1325
+ ]
1326
+
1327
+ [[package]]
1328
+ name = "tikv-jemallocator"
1329
+ version = "0.7.0"
1330
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1331
+ checksum = "249f09e49ab1609436f34c776e84231bead18d6a955f119f939bdc1d847561bd"
1332
+ dependencies = [
1333
+ "libc",
1334
+ "tikv-jemalloc-sys",
1335
+ ]
1336
+
1284
1337
  [[package]]
1285
1338
  name = "tinytemplate"
1286
1339
  version = "1.2.1"
@@ -1347,11 +1400,13 @@ checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2"
1347
1400
 
1348
1401
  [[package]]
1349
1402
  name = "typedframes_checker"
1350
- version = "0.12.0"
1403
+ version = "0.14.0"
1351
1404
  dependencies = [
1352
1405
  "anyhow",
1406
+ "clap",
1353
1407
  "criterion",
1354
- "pyo3",
1408
+ "mimalloc",
1409
+ "regex",
1355
1410
  "rmp-serde",
1356
1411
  "ruff_notebook",
1357
1412
  "ruff_python_ast",
@@ -1362,6 +1417,7 @@ dependencies = [
1362
1417
  "serde_json",
1363
1418
  "sqlparser",
1364
1419
  "tempfile",
1420
+ "tikv-jemallocator",
1365
1421
  "toml",
1366
1422
  ]
1367
1423
 
@@ -1408,6 +1464,12 @@ dependencies = [
1408
1464
  "rand 0.8.7",
1409
1465
  ]
1410
1466
 
1467
+ [[package]]
1468
+ name = "utf8parse"
1469
+ version = "0.2.2"
1470
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1471
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
1472
+
1411
1473
  [[package]]
1412
1474
  name = "uuid"
1413
1475
  version = "1.24.0"