csv-detective 0.10.1.dev2559__py3-none-any.whl → 0.10.1.dev2576__py3-none-any.whl

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.
@@ -1,5 +1,6 @@
1
1
  import logging
2
2
  from time import time
3
+ from typing import Iterator
3
4
 
4
5
  import pandas as pd
5
6
 
@@ -27,7 +28,7 @@ def routine(
27
28
  cast_json: bool = True,
28
29
  verbose: bool = False,
29
30
  sheet_name: str | int | None = None,
30
- ) -> dict | tuple[dict, pd.DataFrame]:
31
+ ) -> dict | tuple[dict, Iterator[pd.DataFrame]]:
31
32
  """
32
33
  Returns a dict with information about the table and possible column contents, and if requested the DataFrame with columns cast according to analysis.
33
34
 
@@ -115,7 +116,7 @@ def validate_then_detect(
115
116
  output_df: bool = False,
116
117
  cast_json: bool = True,
117
118
  verbose: bool = False,
118
- ):
119
+ ) -> dict | tuple[dict, Iterator[pd.DataFrame]]:
119
120
  """
120
121
  Performs a validation of the given file against the given analysis.
121
122
  If the validation fails, performs a full analysis and return it.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: csv-detective
3
- Version: 0.10.1.dev2559
3
+ Version: 0.10.1.dev2576
4
4
  Summary: Detect tabular files column content
5
5
  Keywords: CSV,data processing,encoding,guess,parser,tabular
6
6
  Author: data.gouv.fr
@@ -9,7 +9,7 @@ csv_detective/detection/headers.py,sha256=95pTL524Sy5PGxyQ03ofFUaamvlmkxTJQe8u6H
9
9
  csv_detective/detection/rows.py,sha256=quf3ZTTFPOo09H-faZ9cRKibb1QGHEKHlpivFRx2Va4,742
10
10
  csv_detective/detection/separator.py,sha256=XjeDBqhiBxVfkCPJKem9BAgJqs_hOgQltc_pxrH_-Tg,1547
11
11
  csv_detective/detection/variables.py,sha256=-QtZOB96z3pWbqnZ-c1RU3yzoYqcO61A0JzeS6JbkxY,3576
12
- csv_detective/explore_csv.py,sha256=-LCHr7vyT0Q0oLtXeOO8pEevJ6-8Ib9JP3D7nVgZM8o,7090
12
+ csv_detective/explore_csv.py,sha256=qSf6N3tbp43BUMJF5wiXz3aYKaTez6ro-75KL2Arci4,7174
13
13
  csv_detective/format.py,sha256=XX_cSTQc0jlsQq3GUqHi7Cz36AiRrpjrwPmeoOTLMvo,2396
14
14
  csv_detective/formats/__init__.py,sha256=Egiy29kcG3Oz2eE2maYhD3wP29zOSOWyRlOpGD5LGvU,318
15
15
  csv_detective/formats/adresse.py,sha256=jALDpEDAWyAcgqEfNVRg_W1r6XaYuJKD_jAaP2l-bxk,1943
@@ -86,7 +86,7 @@ csv_detective/parsing/load.py,sha256=f-8aKiNpy_47qg4Lq-UZUR4NNrbJ_-KEGvcUQZ8cmb0
86
86
  csv_detective/parsing/text.py,sha256=uz8wfmNTQnOd_4fjrIZ_5rxmFmgrg343hJh2szB73Hc,1770
87
87
  csv_detective/utils.py,sha256=RJ_zFOJ1DRY8HtDrKPiCdNk5gU6-KwOrOKOyfSkBZZY,1118
88
88
  csv_detective/validate.py,sha256=CjZXhhDP-n6wGgEqbwrGRqebU8L5bidwnvQp-TbnvFA,5424
89
- csv_detective-0.10.1.dev2559.dist-info/WHEEL,sha256=z-mOpxbJHqy3cq6SvUThBZdaLGFZzdZPtgWLcP2NKjQ,79
90
- csv_detective-0.10.1.dev2559.dist-info/entry_points.txt,sha256=1J86TQNCanjsLMboAufdEUla03qEQaC9QmVGYgt2FCQ,57
91
- csv_detective-0.10.1.dev2559.dist-info/METADATA,sha256=wzzRLpqOic3IYb99Uq1oO_D98wdr8EfRkZg6yVS6a-0,11064
92
- csv_detective-0.10.1.dev2559.dist-info/RECORD,,
89
+ csv_detective-0.10.1.dev2576.dist-info/WHEEL,sha256=z-mOpxbJHqy3cq6SvUThBZdaLGFZzdZPtgWLcP2NKjQ,79
90
+ csv_detective-0.10.1.dev2576.dist-info/entry_points.txt,sha256=1J86TQNCanjsLMboAufdEUla03qEQaC9QmVGYgt2FCQ,57
91
+ csv_detective-0.10.1.dev2576.dist-info/METADATA,sha256=h08HHBWPN3GbYHYQOxg7dOot4b8hyKAIfG2cTZO6cqk,11064
92
+ csv_detective-0.10.1.dev2576.dist-info/RECORD,,