-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use Polars >= v1 * Update poetry.lock. Bump version * Remove NumPy constraint * Loosen PyArrow version * Downgrade Polars version. Add tests for nulled structs * make pre-commit happy * Make mypy happy
- Loading branch information
Showing
10 changed files
with
803 additions
and
672 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "dapla-toolbelt-pseudo" | ||
version = "2.2.3" | ||
version = "2.2.4" | ||
description = "Pseudonymization extensions for Dapla" | ||
authors = ["Dapla Developers <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -26,7 +26,7 @@ python-ulid = ">=2.2.0" | |
cryptography = ">41.0.0" | ||
dapla-toolbelt = ">=1.7.0" | ||
fsspec = ">=2023.5.0" | ||
polars = ">=1.0.0" | ||
polars = ">=1.0.0, <1.2" | ||
pygments = ">2.15.0" | ||
click = ">=8.0.1" | ||
ssb-datadoc-model = ">=5.0.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tests/data/datadoc/expected_metadata_test_pseudonymize_hierarchical_null.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"document_version": "0.0.1", | ||
"pseudonymization": { | ||
"document_version": "0.1.0", | ||
"pseudo_variables": [ | ||
{ | ||
"short_name": "fnr", | ||
"data_element_path": "person_info.fnr", | ||
"data_element_pattern": "**/person_info/fnr", | ||
"encryption_algorithm": "TINK-DAEAD", | ||
"encryption_key_reference": "ssb-common-key-1", | ||
"encryption_algorithm_parameters": [ | ||
{ | ||
"keyId": "ssb-common-key-1" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[ | ||
{ | ||
"person_info": null, | ||
"kjonn": "M", | ||
"fodselsdato": "020995" | ||
}, | ||
{ | ||
"person_info": { | ||
"fnr": "01839899544", | ||
"fornavn": "Mikke", | ||
"etternavn": "Mus" | ||
}, | ||
"kjonn": "M", | ||
"fodselsdato": "060970" | ||
}, | ||
{ | ||
"person_info": { | ||
"fnr": "16910599481", | ||
"fornavn": "Anton", | ||
"etternavn": "Duck" | ||
}, | ||
"kjonn": "M", | ||
"fodselsdato": "180999" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[ | ||
{ | ||
"person_info": { | ||
"fnr": null, | ||
"fornavn": null, | ||
"etternavn": null | ||
}, | ||
"kjonn": "M", | ||
"fodselsdato": "020995" | ||
}, | ||
{ | ||
"person_info": { | ||
"fnr": "AWIRfKKLagk0LqYCKpiC4xfPkHqIWGVfc3wg5gUwRNE=", | ||
"fornavn": "Mikke", | ||
"etternavn": "Mus" | ||
}, | ||
"kjonn": "M", | ||
"fodselsdato": "060970" | ||
}, | ||
{ | ||
"person_info": { | ||
"fnr": "AWIRfKIzL1T9iZqt+pLjNbHMsLa0aKSszsRrLiLSAAg=", | ||
"fornavn": "Anton", | ||
"etternavn": "Duck" | ||
}, | ||
"kjonn": "M", | ||
"fodselsdato": "180999" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters