csv-detective 0.8.1.dev1500__py3-none-any.whl → 0.8.1.dev1509__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.
@@ -6,7 +6,7 @@ import pandas as pd
6
6
 
7
7
  from csv_detective.utils import display_logs_depending_process_time
8
8
 
9
- MAX_ROWS_ANALYSIS = 1e5
9
+ MAX_ROWS_ANALYSIS = int(1e5)
10
10
 
11
11
 
12
12
  def test_col_val(
@@ -5,7 +5,7 @@
5
5
  - Refactor label testing [#119](https://github.com/datagouv/csv-detective/pull/119)
6
6
  - Refactor repo metadata and requirements [#120](https://github.com/datagouv/csv-detective/pull/120) [#122](https://github.com/datagouv/csv-detective/pull/122)
7
7
  - Better URL detection [#121](https://github.com/datagouv/csv-detective/pull/121)
8
- - For big files, analyse on sample then validate on whole file [#124](https://github.com/datagouv/csv-detective/pull/124)
8
+ - For big files, analyse on sample then validate on whole file [#124](https://github.com/datagouv/csv-detective/pull/124) [#129](https://github.com/datagouv/csv-detective/pull/129)
9
9
  - Fix imports [#125](https://github.com/datagouv/csv-detective/pull/125) [#126](https://github.com/datagouv/csv-detective/pull/126) [#127](https://github.com/datagouv/csv-detective/pull/127) [#128](https://github.com/datagouv/csv-detective/pull/128)
10
10
 
11
11
  ## 0.8.0 (2025-05-20)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: csv_detective
3
- Version: 0.8.1.dev1500
3
+ Version: 0.8.1.dev1509
4
4
  Summary: Detect tabular files column content
5
5
  Home-page: https://github.com/datagouv/csv_detective
6
6
  Author: Etalab
@@ -143,25 +143,25 @@ csv_detective/output/profile.py,sha256=B8YU541T_YPDezJGh4dkHckOShiwHSrZd9GS8jbmz
143
143
  csv_detective/output/schema.py,sha256=ZDBWDOD8IYp7rcB0_n8l9JXGIhOQ6bTZHFWfTmnNNEQ,13480
144
144
  csv_detective/output/utils.py,sha256=HbmvCCCmFo7NJxhD_UsJIveuw-rrfhrvYckv1CJn_10,2301
145
145
  csv_detective/parsing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
146
- csv_detective/parsing/columns.py,sha256=e0xVmeXNvSC3su5HTFSNClgkz8PlFkoHmNwRYdS57mk,5670
146
+ csv_detective/parsing/columns.py,sha256=VzgG9Nwph5C_fLW_TuQC5BZVlPmOyjrH7Plvm_c8kWc,5675
147
147
  csv_detective/parsing/compression.py,sha256=Fnw5tj-PpBNI8NYsWj5gD-DUoWcVLnsVpiKm9MpxmIA,350
148
148
  csv_detective/parsing/csv.py,sha256=11mibDnJhIjykXLGZvA5ZEU5U7KgxIrbyO6BNv6jlro,1626
149
149
  csv_detective/parsing/excel.py,sha256=AslE2S1e67o8yTIAIhp-lAnJ6-XqeBBRz1-VMFqhZBM,7055
150
150
  csv_detective/parsing/load.py,sha256=u6fbGFZsL2GwPQRzhAXgt32JpUur7vbQdErREHxNJ-w,3661
151
151
  csv_detective/parsing/text.py,sha256=_TprGi0gHZlRsafizI3dqQhBehZW4BazqxmypMcAZ-o,1824
152
- csv_detective-0.8.1.dev1500.data/data/share/csv_detective/CHANGELOG.md,sha256=oia4cDcjux7TfUIfy5uRUTtTy48s_XxtmKiCgETseJI,8975
153
- csv_detective-0.8.1.dev1500.data/data/share/csv_detective/LICENSE,sha256=A1dQrzxyxRHRih02KwibWj1khQyF7GeA6SqdOU87Gk4,1088
154
- csv_detective-0.8.1.dev1500.data/data/share/csv_detective/README.md,sha256=gKLFmC8kuCCywS9eAhMak_JNriUWWNOsBKleAu5TIEY,8501
155
- csv_detective-0.8.1.dev1500.dist-info/licenses/LICENSE,sha256=A1dQrzxyxRHRih02KwibWj1khQyF7GeA6SqdOU87Gk4,1088
152
+ csv_detective-0.8.1.dev1509.data/data/share/csv_detective/CHANGELOG.md,sha256=em97ZkXiZcpRQnOj7zCgZRtGL6sbaQvyPN6C1UvT4Dk,9034
153
+ csv_detective-0.8.1.dev1509.data/data/share/csv_detective/LICENSE,sha256=A1dQrzxyxRHRih02KwibWj1khQyF7GeA6SqdOU87Gk4,1088
154
+ csv_detective-0.8.1.dev1509.data/data/share/csv_detective/README.md,sha256=gKLFmC8kuCCywS9eAhMak_JNriUWWNOsBKleAu5TIEY,8501
155
+ csv_detective-0.8.1.dev1509.dist-info/licenses/LICENSE,sha256=A1dQrzxyxRHRih02KwibWj1khQyF7GeA6SqdOU87Gk4,1088
156
156
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
157
157
  tests/test_example.py,sha256=JeHxSK0IVDcSrOhSZlNGSQv4JAc_r6mzvJM8PfmLTMw,2018
158
158
  tests/test_fields.py,sha256=d2tNvjtal6ZbO646x1GDbp_CGgp-EIcdg2SgMG72J6E,10270
159
- tests/test_file.py,sha256=FWVtYHlD5uU7tPeYsqlQg6O4lpU8Ct35vddkbzhvvjA,8508
159
+ tests/test_file.py,sha256=0bHV9wx9mSRoav_DVF19g694yohb1p0bw7rtcBeKG-8,8451
160
160
  tests/test_labels.py,sha256=Nkr645bUewrj8hjNDKr67FQ6Sy_TID6f3E5Kfkl231M,464
161
161
  tests/test_structure.py,sha256=bv-tjgXohvQAxwmxzH0BynFpK2TyPjcxvtIAmIRlZmA,1393
162
162
  tests/test_validation.py,sha256=CTGonR6htxcWF9WH8MxumDD8cF45Y-G4hm94SM4lFjU,3246
163
- csv_detective-0.8.1.dev1500.dist-info/METADATA,sha256=jHSw0ajgp-2BhtGeneNUCWHPEDXcdvRrvdGYiOy4v7k,10443
164
- csv_detective-0.8.1.dev1500.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
165
- csv_detective-0.8.1.dev1500.dist-info/entry_points.txt,sha256=JjweTReFqKJmuvkegzlew2j3D5pZzfxvbEGOtGVGmaY,56
166
- csv_detective-0.8.1.dev1500.dist-info/top_level.txt,sha256=M0Nv646VHo-49zWjPkwo2C48UmtfddV8_9mEZeIxy8Q,20
167
- csv_detective-0.8.1.dev1500.dist-info/RECORD,,
163
+ csv_detective-0.8.1.dev1509.dist-info/METADATA,sha256=V_xchinM2b_RyUVCxSmEB4UA66Q0IdIjkMfSi2bwf6E,10443
164
+ csv_detective-0.8.1.dev1509.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
165
+ csv_detective-0.8.1.dev1509.dist-info/entry_points.txt,sha256=JjweTReFqKJmuvkegzlew2j3D5pZzfxvbEGOtGVGmaY,56
166
+ csv_detective-0.8.1.dev1509.dist-info/top_level.txt,sha256=M0Nv646VHo-49zWjPkwo2C48UmtfddV8_9mEZeIxy8Q,20
167
+ csv_detective-0.8.1.dev1509.dist-info/RECORD,,
tests/test_file.py CHANGED
@@ -7,12 +7,11 @@ from csv_detective import routine
7
7
 
8
8
 
9
9
  @pytest.mark.parametrize(
10
- "reduce_max_rows_analysis",
11
- (True, False),
10
+ "max_rows_analysis",
11
+ (100, int(1e5)),
12
12
  )
13
- def test_columns_output_on_file(reduce_max_rows_analysis):
14
- patched = 100 if reduce_max_rows_analysis else 1e5
15
- with patch("csv_detective.detection.formats.MAX_ROWS_ANALYSIS", patched):
13
+ def test_columns_output_on_file(max_rows_analysis):
14
+ with patch("csv_detective.detection.formats.MAX_ROWS_ANALYSIS", max_rows_analysis):
16
15
  output = routine(
17
16
  file_path="tests/data/a_test_file.csv",
18
17
  num_rows=-1,