Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pydantic 2.0, polars 0.20.10 and remove duckdb support #32

Merged
merged 29 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a5ddd94
Downgrade Sphinx to compatible version
JakobGM Jun 21, 2023
2287188
very rough draft for pydantic v2
brendancooley Oct 26, 2023
42299db
fix: `DataFrameValidationError` mirrors pydantic v1 `ValidationError`
brendancooley Oct 26, 2023
4b98da9
wip: subclass `FieldInfo`, extend with patito field attributes
brendancooley Oct 26, 2023
eef74fe
fix: update LDF.collect() for polars==0.19.8
brendancooley Oct 26, 2023
87d57bd
wip: restructure model reconstitution routines, all tests passing
brendancooley Oct 26, 2023
ffe343d
chore: lockfile and formatting
brendancooley Oct 27, 2023
e2bf0d7
fix: handle multiple annotations when `dtype` is present in `Field`
brendancooley Nov 3, 2023
017c59b
check: annotated dtypes match those specified in Field.dtype
brendancooley Nov 3, 2023
161300b
chore: misc typing improvements
brendancooley Nov 3, 2023
9e132bc
fix: search for nested field constraints on validation, ignore nulls
brendancooley Nov 3, 2023
93e171e
fix: better inference for column nullability
brendancooley Nov 3, 2023
e9dbca6
wip: better type mismatch messaging, move Representation to internal
brendancooley Nov 6, 2023
399673e
wip: onto classproperty formulation in lieu of metaclass
brendancooley Nov 6, 2023
a63db3f
wip: custom classproperty (from polars)
brendancooley Nov 6, 2023
db44aa3
wip: robustify array dtype inference, add pt custom fields to `Field()`
brendancooley Nov 6, 2023
438974c
feature: custom Field/FieldInfo constructors for better extensibility
brendancooley Nov 8, 2023
386ba83
fix: make _PatitoFieldInfo private, ensure ext fields -> _schema_props
brendancooley Nov 8, 2023
ee63672
wip: serialization
brendancooley Dec 13, 2023
daf8f59
wip: modularize annotation -> dtype and dtype validation
brendancooley Dec 18, 2023
054d034
chore: remove database/duckdb support
brendancooley Feb 7, 2024
155ce1f
chore: more sql cleanup
brendancooley Feb 7, 2024
6221dd7
chore: more migration/refactor
brendancooley Feb 8, 2024
dbad4cf
chore: add tests, some new features
brendancooley Feb 8, 2024
48ed782
bug: instantiated dtypes, constraints on examples, tz-less datetimes
brendancooley Feb 9, 2024
a2459a9
chore: docs cleanup, doctests running, partial linting
brendancooley Feb 14, 2024
7836d16
chore: wip types
brendancooley Feb 14, 2024
7c36b72
bump version and poetry update
thomasaarholt Feb 27, 2024
b5c7002
Use pl.String instead of pl.Utf8
thomasaarholt Feb 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,6 @@ dmypy.json

# Pyre type checker
.pyre/

.vscode/
.DS_Store
1 change: 0 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ python:
- method: pip
path: .
extra_requirements:
- duckdb
- pandas
- docs

Expand Down
1 change: 0 additions & 1 deletion docs/api/patito/Model/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ patito.Model
suffix <suffix>
unique_columns <unique_columns>
valid_dtypes <valid_dtypes>
valid_sql_types <valid_sql_types>
validate <validate>
with_fields <with_fields>
6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Database/__contains__.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Database/create_enum_types.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Database/create_table.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Database/create_view.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Database/default.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Database/empty_relation.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Database/execute.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Database/from_connection.rst

This file was deleted.

24 changes: 0 additions & 24 deletions docs/api/patito/duckdb/Database/index.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Database/query.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Database/table.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Database/to_relation.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/__add__.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/__getitem__.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/__iter__.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/__len__.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/__str__.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/add_prefix.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/add_suffix.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/aggregate.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/patito/duckdb/Relation/alias.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/all.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/case.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/cast.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/coalesce.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/columns.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/count.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/create_table.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/create_view.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/distinct.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/drop.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/except_.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/patito/duckdb/Relation/execute.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/filter.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/get.rst

This file was deleted.

57 changes: 0 additions & 57 deletions docs/api/patito/duckdb/Relation/index.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/inner_join.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/insert_into.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api/patito/duckdb/Relation/intersect.rst

This file was deleted.

Loading