csv-detective 0.10.3.dev7__py3-none-any.whl → 0.10.2549__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.
Files changed (109) hide show
  1. csv_detective/detection/__init__.py +0 -0
  2. csv_detective/detection/columns.py +0 -0
  3. csv_detective/detection/encoding.py +0 -0
  4. csv_detective/detection/engine.py +0 -0
  5. csv_detective/detection/formats.py +38 -11
  6. csv_detective/detection/headers.py +14 -12
  7. csv_detective/detection/rows.py +1 -1
  8. csv_detective/detection/separator.py +0 -0
  9. csv_detective/detection/variables.py +0 -0
  10. csv_detective/explore_csv.py +6 -18
  11. csv_detective/format.py +5 -12
  12. csv_detective/formats/__init__.py +0 -0
  13. csv_detective/formats/adresse.py +9 -9
  14. csv_detective/formats/binary.py +1 -2
  15. csv_detective/formats/booleen.py +2 -3
  16. csv_detective/formats/code_commune_insee.py +10 -12
  17. csv_detective/formats/code_csp_insee.py +1 -1
  18. csv_detective/formats/code_departement.py +7 -8
  19. csv_detective/formats/code_fantoir.py +5 -6
  20. csv_detective/formats/code_import.py +1 -1
  21. csv_detective/formats/code_postal.py +9 -10
  22. csv_detective/formats/code_region.py +6 -7
  23. csv_detective/formats/code_rna.py +6 -7
  24. csv_detective/formats/code_waldec.py +1 -1
  25. csv_detective/formats/commune.py +5 -5
  26. csv_detective/formats/csp_insee.py +5 -6
  27. csv_detective/formats/data/insee_ape700.txt +1 -1
  28. csv_detective/formats/data/iso_country_code_alpha2.txt +397 -153
  29. csv_detective/formats/data/iso_country_code_alpha3.txt +132 -132
  30. csv_detective/formats/data/iso_country_code_numeric.txt +94 -94
  31. csv_detective/formats/date.py +18 -28
  32. csv_detective/formats/date_fr.py +1 -1
  33. csv_detective/formats/datetime_aware.py +2 -7
  34. csv_detective/formats/datetime_naive.py +0 -3
  35. csv_detective/formats/datetime_rfc822.py +0 -1
  36. csv_detective/formats/departement.py +15 -15
  37. csv_detective/formats/email.py +13 -13
  38. csv_detective/formats/float.py +1 -2
  39. csv_detective/formats/geojson.py +10 -10
  40. csv_detective/formats/insee_ape700.py +8 -10
  41. csv_detective/formats/insee_canton.py +6 -6
  42. csv_detective/formats/int.py +1 -2
  43. csv_detective/formats/iso_country_code_alpha2.py +14 -14
  44. csv_detective/formats/iso_country_code_alpha3.py +13 -6
  45. csv_detective/formats/iso_country_code_numeric.py +9 -2
  46. csv_detective/formats/jour_de_la_semaine.py +12 -11
  47. csv_detective/formats/json.py +0 -6
  48. csv_detective/formats/latitude_l93.py +22 -8
  49. csv_detective/formats/latitude_wgs.py +29 -31
  50. csv_detective/formats/latitude_wgs_fr_metropole.py +30 -7
  51. csv_detective/formats/latlon_wgs.py +28 -30
  52. csv_detective/formats/longitude_l93.py +13 -8
  53. csv_detective/formats/longitude_wgs.py +19 -34
  54. csv_detective/formats/longitude_wgs_fr_metropole.py +19 -6
  55. csv_detective/formats/lonlat_wgs.py +11 -12
  56. csv_detective/formats/mois_de_lannee.py +1 -1
  57. csv_detective/formats/money.py +1 -1
  58. csv_detective/formats/mongo_object_id.py +1 -1
  59. csv_detective/formats/pays.py +13 -11
  60. csv_detective/formats/percent.py +1 -1
  61. csv_detective/formats/region.py +13 -13
  62. csv_detective/formats/sexe.py +1 -1
  63. csv_detective/formats/siren.py +10 -9
  64. csv_detective/formats/siret.py +9 -9
  65. csv_detective/formats/tel_fr.py +13 -7
  66. csv_detective/formats/uai.py +18 -17
  67. csv_detective/formats/url.py +16 -16
  68. csv_detective/formats/username.py +1 -1
  69. csv_detective/formats/uuid.py +1 -1
  70. csv_detective/formats/year.py +12 -7
  71. csv_detective/output/__init__.py +0 -0
  72. csv_detective/output/dataframe.py +3 -8
  73. csv_detective/output/example.py +0 -0
  74. csv_detective/output/profile.py +2 -6
  75. csv_detective/output/schema.py +0 -0
  76. csv_detective/output/utils.py +0 -0
  77. csv_detective/parsing/__init__.py +0 -0
  78. csv_detective/parsing/columns.py +1 -1
  79. csv_detective/parsing/compression.py +0 -0
  80. csv_detective/parsing/csv.py +0 -0
  81. csv_detective/parsing/excel.py +1 -1
  82. csv_detective/parsing/load.py +12 -11
  83. csv_detective/parsing/text.py +12 -13
  84. csv_detective/validate.py +36 -71
  85. {csv_detective-0.10.3.dev7.dist-info → csv_detective-0.10.2549.dist-info}/METADATA +18 -15
  86. csv_detective-0.10.2549.dist-info/RECORD +92 -0
  87. csv_detective-0.10.2549.dist-info/WHEEL +4 -0
  88. {csv_detective-0.10.3.dev7.dist-info → csv_detective-0.10.2549.dist-info}/entry_points.txt +1 -0
  89. csv_detective-0.10.3.dev7.dist-info/RECORD +0 -111
  90. csv_detective-0.10.3.dev7.dist-info/WHEEL +0 -5
  91. csv_detective-0.10.3.dev7.dist-info/licenses/LICENSE +0 -21
  92. csv_detective-0.10.3.dev7.dist-info/top_level.txt +0 -3
  93. tests/__init__.py +0 -0
  94. tests/data/a_test_file.csv +0 -407
  95. tests/data/a_test_file.json +0 -394
  96. tests/data/b_test_file.csv +0 -7
  97. tests/data/c_test_file.csv +0 -2
  98. tests/data/csv_file +0 -7
  99. tests/data/file.csv.gz +0 -0
  100. tests/data/file.ods +0 -0
  101. tests/data/file.xls +0 -0
  102. tests/data/file.xlsx +0 -0
  103. tests/data/xlsx_file +0 -0
  104. tests/test_example.py +0 -67
  105. tests/test_fields.py +0 -175
  106. tests/test_file.py +0 -468
  107. tests/test_labels.py +0 -26
  108. tests/test_structure.py +0 -45
  109. tests/test_validation.py +0 -163
@@ -1,251 +1,495 @@
1
- AD
2
- AE
3
1
  AF
4
- AG
5
- AI
2
+ ZA
3
+ AX
6
4
  AL
7
- AM
8
- AN
5
+ DZ
6
+ DE
7
+ AD
9
8
  AO
9
+ AI
10
10
  AQ
11
+ AG
12
+ SA
11
13
  AR
12
- AS
13
- AT
14
- AU
14
+ AM
15
15
  AW
16
- AX
16
+ AU
17
+ AT
17
18
  AZ
18
- BA
19
- BB
19
+ BS
20
+ BH
20
21
  BD
22
+ BB
23
+ BY
21
24
  BE
22
- BF
23
- BG
24
- BH
25
- BI
25
+ BZ
26
26
  BJ
27
- BL
28
27
  BM
29
- BN
28
+ BT
30
29
  BO
31
30
  BQ
32
- BR
33
- BS
34
- BT
35
- BV
31
+ BA
36
32
  BW
37
- BY
38
- BZ
33
+ BV
34
+ BR
35
+ BN
36
+ BG
37
+ BF
38
+ BI
39
+ KY
40
+ KH
41
+ CM
39
42
  CA
40
- CC
41
- CD
43
+ CV
42
44
  CF
43
- CG
44
- CH
45
- CI
46
- CK
47
45
  CL
48
- CM
49
46
  CN
47
+ CX
48
+ CY
49
+ CC
50
50
  CO
51
+ KM
52
+ CG
53
+ CD
54
+ CK
55
+ KR
56
+ KP
51
57
  CR
58
+ CI
59
+ HR
52
60
  CU
53
- CV
54
- CW
55
- CX
56
- CY
57
- CZ
58
- DE
59
- DJ
61
+ CW
60
62
  DK
61
- DM
63
+ DJ
62
64
  DO
63
- DZ
64
- EC
65
- EE
65
+ DM
66
66
  EG
67
- EH
67
+ SV
68
+ AE
69
+ EC
68
70
  ER
69
71
  ES
72
+ EE
73
+ US
70
74
  ET
71
- FI
72
- FJ
73
75
  FK
74
- FM
75
76
  FO
77
+ FJ
78
+ FI
76
79
  FR
77
80
  GA
78
- GB
79
- GD
81
+ GM
80
82
  GE
81
- GF
82
- GG
83
+ GS
83
84
  GH
84
85
  GI
86
+ GR
87
+ GD
85
88
  GL
86
- GM
87
- GN
88
89
  GP
89
- GQ
90
- GR
91
- GS
92
- GT
93
90
  GU
91
+ GT
92
+ GG
93
+ GN
94
94
  GW
95
+ GQ
95
96
  GY
96
- HK
97
+ GF
98
+ HT
97
99
  HM
98
100
  HN
99
- HR
100
- HT
101
+ HK
101
102
  HU
102
- ID
103
- IE
104
- IL
105
103
  IM
104
+ UM
105
+ VG
106
+ VI
106
107
  IN
107
- IO
108
- IQ
108
+ ID
109
109
  IR
110
+ IQ
111
+ IE
110
112
  IS
113
+ IL
111
114
  IT
112
- JE
113
115
  JM
114
- JO
115
116
  JP
117
+ JE
118
+ JO
119
+ KZ
116
120
  KE
117
121
  KG
118
- KH
119
122
  KI
120
- KM
121
- KN
122
- KP
123
- KR
124
- KW
125
- KY
126
- KZ
123
+ KW
127
124
  LA
125
+ LS
126
+ LV
128
127
  LB
129
- LC
130
- LI
131
- LK
132
128
  LR
133
- LS
129
+ LY
130
+ LI
134
131
  LT
135
132
  LU
136
- LV
137
- LY
138
- MA
139
- MC
140
- MD
141
- ME
142
- MF
143
- MG
144
- MH
133
+ MO
145
134
  MK
135
+ MG
136
+ MY
137
+ MW
138
+ MV
146
139
  ML
147
- MM
148
- MN
149
- MO
140
+ MT
150
141
  MP
142
+ MA
143
+ MH
151
144
  MQ
152
- MR
153
- MS
154
- MT
155
145
  MU
156
- MV
157
- MW
146
+ MR
147
+ YT
158
148
  MX
159
- MY
149
+ FM
150
+ MD
151
+ MC
152
+ MN
153
+ ME
154
+ MS
160
155
  MZ
156
+ MM
161
157
  NA
162
- NC
158
+ NR
159
+ NP
160
+ NI
163
161
  NE
164
- NF
165
162
  NG
166
- NI
167
- NL
168
- NO
169
- NP
170
- NR
171
163
  NU
164
+ NF
165
+ NO
166
+ NC
172
167
  NZ
168
+ IO
173
169
  OM
170
+ UG
171
+ UZ
172
+ PK
173
+ PW
174
+ PS
174
175
  PA
175
- PE
176
- PF
177
176
  PG
177
+ PY
178
+ NL
179
+ PE
178
180
  PH
179
- PK
180
- PL
181
- PM
182
181
  PN
182
+ PL
183
+ PF
183
184
  PR
184
- PS
185
185
  PT
186
- PW
187
- PY
188
186
  QA
189
187
  RE
190
188
  RO
191
- RS
189
+ GB
192
190
  RU
193
- RW
194
- SA
191
+ RW
192
+ EH
193
+ BL
194
+ SH
195
+ LC
196
+ KN
197
+ SM
198
+ MF
199
+ SX
200
+ PM
201
+ VA
202
+ VC
195
203
  SB
204
+ WS
205
+ AS
206
+ ST
207
+ SN
208
+ RS
196
209
  SC
197
- SD
198
- SE
210
+ SL
199
211
  SG
200
- SH
201
- SI
202
- SJ
203
212
  SK
204
- SL
205
- SM
206
- SN
213
+ SI
207
214
  SO
215
+ SD
216
+ LK
217
+ SE
218
+ CH
208
219
  SR
209
- SS
210
- ST
211
- SV
212
- SX
213
- SY
220
+ SJ
214
221
  SZ
215
- TC
222
+ SY
223
+ TJ
224
+ TW
225
+ TZ
216
226
  TD
227
+ CZ
217
228
  TF
218
- TG
219
229
  TH
220
- TJ
221
- TK
222
230
  TL
223
- TM
224
- TN
231
+ TG
232
+ TK
225
233
  TO
226
- TR
227
234
  TT
228
- TV
229
- TW
230
- TZ
235
+ TN
236
+ TM
237
+ TC
238
+ TR
239
+ TV
231
240
  UA
232
- UG
233
- UM
234
- US
235
241
  UY
236
- UZ
237
- VA
238
- VC
242
+ VU
239
243
  VE
240
- VG
241
- VI
242
244
  VN
243
- VU
244
- WF
245
- WS
246
- XK
247
- YE
248
- YT
249
- ZA
245
+ WF
246
+ YE
250
247
  ZM
251
- ZW
248
+ ZW
249
+ AFG
250
+ ALA
251
+ ALB
252
+ DZA
253
+ ASM
254
+ AND
255
+ AGO
256
+ AIA
257
+ ATA
258
+ ATG
259
+ ARG
260
+ ARM
261
+ ABW
262
+ AUS
263
+ AUT
264
+ AZE
265
+ BHS
266
+ BHR
267
+ BGD
268
+ BRB
269
+ BLR
270
+ BEL
271
+ BLZ
272
+ BEN
273
+ BMU
274
+ BTN
275
+ BOL
276
+ BIH
277
+ BWA
278
+ BVT
279
+ BRA
280
+ VGB
281
+ IOT
282
+ BRN
283
+ BGR
284
+ BFA
285
+ BDI
286
+ KHM
287
+ CMR
288
+ CAN
289
+ CPV
290
+ CYM
291
+ CAF
292
+ TCD
293
+ CHL
294
+ CHN
295
+ HKG
296
+ MAC
297
+ CXR
298
+ CCK
299
+ COL
300
+ COM
301
+ COG
302
+ COD
303
+ COK
304
+ CRI
305
+ CIV
306
+ HRV
307
+ CUB
308
+ CYP
309
+ CZE
310
+ DNK
311
+ DJI
312
+ DMA
313
+ DOM
314
+ ECU
315
+ EGY
316
+ SLV
317
+ GNQ
318
+ ERI
319
+ EST
320
+ ETH
321
+ FLK
322
+ FRO
323
+ FJI
324
+ FIN
325
+ FRA
326
+ GUF
327
+ PYF
328
+ ATF
329
+ GAB
330
+ GMB
331
+ GEO
332
+ DEU
333
+ GHA
334
+ GIB
335
+ GRC
336
+ GRL
337
+ GRD
338
+ GLP
339
+ GUM
340
+ GTM
341
+ GGY
342
+ GIN
343
+ GNB
344
+ GUY
345
+ HTI
346
+ HMD
347
+ VAT
348
+ HND
349
+ HUN
350
+ ISL
351
+ IND
352
+ IDN
353
+ IRN
354
+ IRQ
355
+ IRL
356
+ IMN
357
+ ISR
358
+ ITA
359
+ JAM
360
+ JPN
361
+ JEY
362
+ JOR
363
+ KAZ
364
+ KEN
365
+ KIR
366
+ PRK
367
+ KOR
368
+ KWT
369
+ KGZ
370
+ LAO
371
+ LVA
372
+ LBN
373
+ LSO
374
+ LBR
375
+ LBY
376
+ LIE
377
+ LTU
378
+ LUX
379
+ MKD
380
+ MDG
381
+ MWI
382
+ MYS
383
+ MDV
384
+ MLI
385
+ MLT
386
+ MHL
387
+ MTQ
388
+ MRT
389
+ MUS
390
+ MYT
391
+ MEX
392
+ FSM
393
+ MDA
394
+ MCO
395
+ MNG
396
+ MNE
397
+ MSR
398
+ MAR
399
+ MOZ
400
+ MMR
401
+ NAM
402
+ NRU
403
+ NPL
404
+ NLD
405
+ NCL
406
+ NZL
407
+ NIC
408
+ NER
409
+ NGA
410
+ NIU
411
+ NFK
412
+ MNP
413
+ NOR
414
+ OMN
415
+ PAK
416
+ PLW
417
+ PSE
418
+ PAN
419
+ PNG
420
+ PRY
421
+ PER
422
+ PHL
423
+ PCN
424
+ POL
425
+ PRT
426
+ PRI
427
+ QAT
428
+ REU
429
+ ROU
430
+ RUS
431
+ RWA
432
+ BLM
433
+ SHN
434
+ KNA
435
+ LCA
436
+ MAF
437
+ SXM
438
+ SPM
439
+ VCT
440
+ WSM
441
+ SMR
442
+ STP
443
+ SAU
444
+ SEN
445
+ SRB
446
+ SYC
447
+ SLE
448
+ SGP
449
+ SVK
450
+ SVN
451
+ SLB
452
+ SOM
453
+ ZAF
454
+ SGS
455
+ SSD
456
+ ESP
457
+ LKA
458
+ SDN
459
+ SUR
460
+ SJM
461
+ SWZ
462
+ SWE
463
+ CHE
464
+ SYR
465
+ TWN
466
+ TJK
467
+ TZA
468
+ THA
469
+ TLS
470
+ TGO
471
+ TKL
472
+ TON
473
+ TTO
474
+ TUN
475
+ TUR
476
+ TKM
477
+ TCA
478
+ TUV
479
+ UGA
480
+ UKR
481
+ ARE
482
+ GBR
483
+ USA
484
+ UMI
485
+ URY
486
+ UZB
487
+ VUT
488
+ VEN
489
+ VNM
490
+ VIR
491
+ WLF
492
+ ESH
493
+ YEM
494
+ ZMB
495
+ ZWE