csv-detective 0.8.1.dev1362__py3-none-any.whl → 0.8.1.dev1380__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 (61) hide show
  1. csv_detective/detect_labels/FR/geo/adresse/__init__.py +9 -34
  2. csv_detective/detect_labels/FR/geo/code_commune_insee/__init__.py +11 -36
  3. csv_detective/detect_labels/FR/geo/code_departement/__init__.py +11 -29
  4. csv_detective/detect_labels/FR/geo/code_fantoir/__init__.py +8 -29
  5. csv_detective/detect_labels/FR/geo/code_postal/__init__.py +10 -35
  6. csv_detective/detect_labels/FR/geo/code_region/__init__.py +10 -29
  7. csv_detective/detect_labels/FR/geo/commune/__init__.py +8 -29
  8. csv_detective/detect_labels/FR/geo/departement/__init__.py +16 -41
  9. csv_detective/detect_labels/FR/geo/insee_canton/__init__.py +9 -29
  10. csv_detective/detect_labels/FR/geo/latitude_l93/__init__.py +24 -48
  11. csv_detective/detect_labels/FR/geo/latitude_wgs_fr_metropole/__init__.py +24 -49
  12. csv_detective/detect_labels/FR/geo/longitude_l93/__init__.py +15 -38
  13. csv_detective/detect_labels/FR/geo/longitude_wgs_fr_metropole/__init__.py +14 -38
  14. csv_detective/detect_labels/FR/geo/pays/__init__.py +14 -39
  15. csv_detective/detect_labels/FR/geo/region/__init__.py +14 -39
  16. csv_detective/detect_labels/FR/other/code_csp_insee/__init__.py +4 -29
  17. csv_detective/detect_labels/FR/other/code_rna/__init__.py +7 -32
  18. csv_detective/detect_labels/FR/other/code_waldec/__init__.py +4 -29
  19. csv_detective/detect_labels/FR/other/csp_insee/__init__.py +6 -30
  20. csv_detective/detect_labels/FR/other/date_fr/__init__.py +5 -29
  21. csv_detective/detect_labels/FR/other/insee_ape700/__init__.py +9 -34
  22. csv_detective/detect_labels/FR/other/sexe/__init__.py +4 -29
  23. csv_detective/detect_labels/FR/other/siren/__init__.py +10 -35
  24. csv_detective/detect_labels/FR/other/siret/__init__.py +9 -34
  25. csv_detective/detect_labels/FR/other/tel_fr/__init__.py +14 -38
  26. csv_detective/detect_labels/FR/other/uai/__init__.py +17 -42
  27. csv_detective/detect_labels/FR/temp/jour_de_la_semaine/__init__.py +10 -35
  28. csv_detective/detect_labels/FR/temp/mois_de_annee/__init__.py +4 -29
  29. csv_detective/detect_labels/geo/iso_country_code_alpha2/__init__.py +10 -35
  30. csv_detective/detect_labels/geo/iso_country_code_alpha3/__init__.py +10 -35
  31. csv_detective/detect_labels/geo/iso_country_code_numeric/__init__.py +10 -35
  32. csv_detective/detect_labels/geo/json_geojson/__init__.py +11 -36
  33. csv_detective/detect_labels/geo/latitude_wgs/__init__.py +24 -49
  34. csv_detective/detect_labels/geo/latlon_wgs/__init__.py +37 -61
  35. csv_detective/detect_labels/geo/longitude_wgs/__init__.py +14 -38
  36. csv_detective/detect_labels/other/booleen/__init__.py +4 -30
  37. csv_detective/detect_labels/other/email/__init__.py +14 -39
  38. csv_detective/detect_labels/other/float/__init__.py +4 -29
  39. csv_detective/detect_labels/other/int/__init__.py +4 -29
  40. csv_detective/detect_labels/other/money/__init__.py +5 -8
  41. csv_detective/detect_labels/other/mongo_object_id/__init__.py +3 -28
  42. csv_detective/detect_labels/other/twitter/__init__.py +4 -29
  43. csv_detective/detect_labels/other/url/__init__.py +17 -42
  44. csv_detective/detect_labels/other/uuid/__init__.py +4 -29
  45. csv_detective/detect_labels/temp/date/__init__.py +22 -47
  46. csv_detective/detect_labels/temp/datetime_iso/__init__.py +14 -39
  47. csv_detective/detect_labels/temp/datetime_rfc822/__init__.py +13 -38
  48. csv_detective/detect_labels/temp/year/__init__.py +13 -38
  49. csv_detective/parsing/text.py +42 -20
  50. csv_detective/utils.py +0 -4
  51. {csv_detective-0.8.1.dev1362.data → csv_detective-0.8.1.dev1380.data}/data/share/csv_detective/CHANGELOG.md +1 -1
  52. {csv_detective-0.8.1.dev1362.dist-info → csv_detective-0.8.1.dev1380.dist-info}/METADATA +1 -1
  53. {csv_detective-0.8.1.dev1362.dist-info → csv_detective-0.8.1.dev1380.dist-info}/RECORD +60 -61
  54. {csv_detective-0.8.1.dev1362.dist-info → csv_detective-0.8.1.dev1380.dist-info}/WHEEL +1 -1
  55. tests/test_labels.py +18 -2
  56. csv_detective/detect_labels/other/money/check_col_name.py +0 -8
  57. {csv_detective-0.8.1.dev1362.data → csv_detective-0.8.1.dev1380.data}/data/share/csv_detective/LICENSE.AGPL.txt +0 -0
  58. {csv_detective-0.8.1.dev1362.data → csv_detective-0.8.1.dev1380.data}/data/share/csv_detective/README.md +0 -0
  59. {csv_detective-0.8.1.dev1362.dist-info → csv_detective-0.8.1.dev1380.dist-info}/entry_points.txt +0 -0
  60. {csv_detective-0.8.1.dev1362.dist-info → csv_detective-0.8.1.dev1380.dist-info}/licenses/LICENSE.AGPL.txt +0 -0
  61. {csv_detective-0.8.1.dev1362.dist-info → csv_detective-0.8.1.dev1380.dist-info}/top_level.txt +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Current (in progress)
4
4
 
5
- - Nothing yet
5
+ - Refactor label testing [#119](https://github.com/datagouv/csv-detective/pull/119)
6
6
 
7
7
  ## 0.8.0 (2025-05-20)
8
8
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: csv_detective
3
- Version: 0.8.1.dev1362
3
+ Version: 0.8.1.dev1380
4
4
  Summary: Detect CSV column content
5
5
  Home-page: https://github.com/etalab/csv_detective
6
6
  Author: Etalab
@@ -3,7 +3,7 @@ csv_detective/cli.py,sha256=itooHtpyfC6DUsL_DchPKe1xo7m0MYJIp1L4R8eqoTk,1401
3
3
  csv_detective/explore_csv.py,sha256=IT1-9TbS78p6oeDpQ5T6DQ93xQbobcscyBQb6nh86H4,9082
4
4
  csv_detective/load_tests.py,sha256=GILvfkd4OVI-72mA4nzbPlZqgcXZ4wznOhGfZ1ucWkM,2385
5
5
  csv_detective/s3_utils.py,sha256=1cIVdQUYY2ovErbMwp72Gqtqx2bkB8nfVhn-QaOFTT0,1451
6
- csv_detective/utils.py,sha256=8cBKgWifWF7BG_uMfLmxtV45p6PZ4b50NjWXKoAAZ4s,1002
6
+ csv_detective/utils.py,sha256=CfR4XztO9KdBecjAX0MfclcRgtB1siv4tQrbCAXyOls,927
7
7
  csv_detective/validate.py,sha256=4e7f8bNXPU9GqNx4QXXiaoINyotozbL52JB6psVAjyY,2631
8
8
  csv_detective/detect_fields/__init__.py,sha256=7Tz0Niaz0BboA3YVsp_6WPA6ywciwDN4-lOy_Ie_0Y8,976
9
9
  csv_detective/detect_fields/FR/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -74,60 +74,59 @@ csv_detective/detect_fields/temp/year/__init__.py,sha256=RjsiIHoplnI4Odi5587TzRh
74
74
  csv_detective/detect_labels/__init__.py,sha256=BJjWlwTnnDe9nomABDUreu9EMu6IFG3T47d7YCJZbRc,878
75
75
  csv_detective/detect_labels/FR/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
76
  csv_detective/detect_labels/FR/geo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
77
- csv_detective/detect_labels/FR/geo/adresse/__init__.py,sha256=ISgpkhy6KwOmKqCt6w_RpxZ7zm5gx2D3mp2UE9D6Pjw,1033
78
- csv_detective/detect_labels/FR/geo/code_commune_insee/__init__.py,sha256=_QKJX7Og8cL1AYBLjIbvULsy-XJ017G0ZXk7H_GOqdI,1067
79
- csv_detective/detect_labels/FR/geo/code_departement/__init__.py,sha256=_lU5bXG8hODduVxVyXegZjRR_mxWM3SXfwb6stJbOrU,995
80
- csv_detective/detect_labels/FR/geo/code_fantoir/__init__.py,sha256=qIFLhkj3vr0lfBHtDwYNhGqLgdzN0w7LRFJByt0pEts,919
81
- csv_detective/detect_labels/FR/geo/code_postal/__init__.py,sha256=TUquZFf6cuTIvjvox8ReIiOqzJnepCZcLX21KNtWwyo,1040
82
- csv_detective/detect_labels/FR/geo/code_region/__init__.py,sha256=6I9DpXNMBYJ1bTqAiheFhnMo2vbrz51PdZttrbinGVA,982
83
- csv_detective/detect_labels/FR/geo/commune/__init__.py,sha256=WQl7z3h0428A-4H5ytry0XseAjE7hKLVh2YvCFvqfuM,918
84
- csv_detective/detect_labels/FR/geo/departement/__init__.py,sha256=qnCjAkBGwsKsfLtvW_EgG-9eK_SBgyFrBKE9Q0A7wxI,1199
85
- csv_detective/detect_labels/FR/geo/insee_canton/__init__.py,sha256=dLJPbSuOQETbl1IBeme5H4KXtDlfPBe5lIfczR4ek48,927
86
- csv_detective/detect_labels/FR/geo/latitude_l93/__init__.py,sha256=fJrd8pIewZqAkNNfERWD39kK3oxzYy-Paxce66c3UnY,1356
87
- csv_detective/detect_labels/FR/geo/latitude_wgs_fr_metropole/__init__.py,sha256=xRrXcUUlk7XqHuHbTXUToM3n90_kLXQxdSzMkcc9jIc,1351
88
- csv_detective/detect_labels/FR/geo/longitude_l93/__init__.py,sha256=1uFQv436tkosABNVU_htAJcggJ6QRlF70-aBgHJHc8A,1109
89
- csv_detective/detect_labels/FR/geo/longitude_wgs_fr_metropole/__init__.py,sha256=dOhUJy_vukt9xFnY2CG4wg1q9vHBUa00mbsu4YSN6xY,1114
90
- csv_detective/detect_labels/FR/geo/pays/__init__.py,sha256=-k5shWSQnLpDvRWKuGFqt5ScbNyBO__vL-4UrL_hRjQ,1139
91
- csv_detective/detect_labels/FR/geo/region/__init__.py,sha256=uQKqMZvG4bs0eafvRHV2RwtbwFJ9vCFQNE2Ep23eHq0,1134
77
+ csv_detective/detect_labels/FR/geo/adresse/__init__.py,sha256=fNWFW-Wo3n6azDBfmi0J0qnzP-p2StLxCc9eNiE9NNE,346
78
+ csv_detective/detect_labels/FR/geo/code_commune_insee/__init__.py,sha256=Cr9eyNnP1bLcOx0BlF9ZGZkQDTVuSFjPxvkoZJGs-Eg,379
79
+ csv_detective/detect_labels/FR/geo/code_departement/__init__.py,sha256=Uzufy44ERqIX8wol6tEZg1SrNUcYAWl4AMsWVnL4SLM,355
80
+ csv_detective/detect_labels/FR/geo/code_fantoir/__init__.py,sha256=TUUj3XNlMEK7fl_R5BWBSXYGr_2xzMqIhRTb_GDcnqY,262
81
+ csv_detective/detect_labels/FR/geo/code_postal/__init__.py,sha256=qGGujM5sDqkNZcoVLRRZCh9H9cid9dx2T8jcJsbo3cs,353
82
+ csv_detective/detect_labels/FR/geo/code_region/__init__.py,sha256=gAy0TxV6qL7_SfthSSulouvYJn3C70xMYuqABP61euA,334
83
+ csv_detective/detect_labels/FR/geo/commune/__init__.py,sha256=eTyTtKe1NHTvgaB4jMywIqYRATU2A-E-Tq3m0KDMr6w,261
84
+ csv_detective/detect_labels/FR/geo/departement/__init__.py,sha256=IJy_aKEocrTN39dxK2fE_PoDM4OR9W2rHsR4cULHw9g,512
85
+ csv_detective/detect_labels/FR/geo/insee_canton/__init__.py,sha256=H8iuLwn_x3ctxOL5pi8REqKO5Z3wL4rSDohbSdnnpIM,278
86
+ csv_detective/detect_labels/FR/geo/latitude_l93/__init__.py,sha256=_KjSU6XFeX3Tll5Nb2nnTEhXJXA4-WxqoTov926TGlU,666
87
+ csv_detective/detect_labels/FR/geo/latitude_wgs_fr_metropole/__init__.py,sha256=ME_KjniqDSdAwXP7XnKXyr5IA75KrGSLIhvPNfsux6E,664
88
+ csv_detective/detect_labels/FR/geo/longitude_l93/__init__.py,sha256=jnbtGriHroGKoOmsmCVGJf6sJXzsVkKH21Qf0aamgkk,428
89
+ csv_detective/detect_labels/FR/geo/longitude_wgs_fr_metropole/__init__.py,sha256=jnbtGriHroGKoOmsmCVGJf6sJXzsVkKH21Qf0aamgkk,428
90
+ csv_detective/detect_labels/FR/geo/pays/__init__.py,sha256=GW5wEO0g-YXKXerdtyt4VOVg8kKXUsMb7EPf8nKEbH0,452
91
+ csv_detective/detect_labels/FR/geo/region/__init__.py,sha256=P0eVE46w5GAbTgeGnvJgZynQt7EY_Bi_NZ1gmYxP6io,447
92
92
  csv_detective/detect_labels/FR/other/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
93
- csv_detective/detect_labels/FR/other/code_csp_insee/__init__.py,sha256=OIOih96ohL50BXgkopAV6NTXQsp5hP78YC46g_r-hKs,909
94
- csv_detective/detect_labels/FR/other/code_rna/__init__.py,sha256=Nih32b26tuJs2f_x-XZ-cjD4nobgBhXsMALsQDlz2NM,994
95
- csv_detective/detect_labels/FR/other/code_waldec/__init__.py,sha256=JcvDvLHlxddehJHEJNAAu3ZmjcJ__6qa4t440CFtKq0,904
96
- csv_detective/detect_labels/FR/other/csp_insee/__init__.py,sha256=XgcgdjcLA1OdPktRPSPzlXePaK8GYR6SF1DCKSoZ6RA,1013
97
- csv_detective/detect_labels/FR/other/date_fr/__init__.py,sha256=FoWbiIxDHIcoQmyWMayqmnRedd0I_RuC_0SIhWIXzww,945
98
- csv_detective/detect_labels/FR/other/insee_ape700/__init__.py,sha256=TnZocEWxNwqcX5Y-c45dW9BCEWUMbwFlqM2p0XRTNWU,1094
99
- csv_detective/detect_labels/FR/other/sexe/__init__.py,sha256=rn035P9h8PsZ-Fu-v71DxcA_6HH9vmJ8lH-hSPmsflg,926
100
- csv_detective/detect_labels/FR/other/siren/__init__.py,sha256=utC1MWILaja5dkNfg3T2-0gXgHxOpIi74L2SaS5Z2PE,1073
101
- csv_detective/detect_labels/FR/other/siret/__init__.py,sha256=zl45o9AtUgAjsH9WZsdU9nDbEXUEOxuRcAX2JOxUe4U,1010
102
- csv_detective/detect_labels/FR/other/tel_fr/__init__.py,sha256=BeHgQwLDrFABECzDYfuAKmXhAFGqTK9mrjk2w3aecNY,1113
103
- csv_detective/detect_labels/FR/other/uai/__init__.py,sha256=XYs7d5CipvJcvL1OEIvqKNg1Ubb9nI2x54KG_jW8Sx8,1286
93
+ csv_detective/detect_labels/FR/other/code_csp_insee/__init__.py,sha256=8nl4UCONRg_x5FtdmTGvPnXS8J1ASWCUGr0Ziv32Ngw,221
94
+ csv_detective/detect_labels/FR/other/code_rna/__init__.py,sha256=I7CliSnzWJzAxNlVmbUjMsXThNQe336RzNuBWOXINkc,307
95
+ csv_detective/detect_labels/FR/other/code_waldec/__init__.py,sha256=soWkoyVsSn2E26Sem8Y7u6gyZc7tqzjMJ9VO3aXfLzQ,216
96
+ csv_detective/detect_labels/FR/other/csp_insee/__init__.py,sha256=AI9nqj3zm6_vycAXsXZdsBD7ceNzMzGQL7xZnDZ8nhw,327
97
+ csv_detective/detect_labels/FR/other/date_fr/__init__.py,sha256=4Crk045ZD_tVovI7C-IqjKFz23Ej5-hrFkhZK4OilqA,258
98
+ csv_detective/detect_labels/FR/other/insee_ape700/__init__.py,sha256=N7LzmtNwZERgrwMy3EFHaVBpdiwkt2_9Tt7XVJLff6U,406
99
+ csv_detective/detect_labels/FR/other/sexe/__init__.py,sha256=ZWhc8S9L1X2fFh2g5Ja-LuhsfHg_lALKrur6yDnGDPk,238
100
+ csv_detective/detect_labels/FR/other/siren/__init__.py,sha256=g7Y7IvW9VKO528z1MSPxfFtRB7kQXSiG7QQ-VZRfFEk,386
101
+ csv_detective/detect_labels/FR/other/siret/__init__.py,sha256=-gvdxUnv3LRfje60ljC4F3B2c1LBcWfV3zZbV3VJZ08,323
102
+ csv_detective/detect_labels/FR/other/tel_fr/__init__.py,sha256=pg2nwqw2lphUMUeuuh_8NPi54TPmQFP3c8Dl9yGOxbI,427
103
+ csv_detective/detect_labels/FR/other/uai/__init__.py,sha256=5L6JowK9y6y9uZNg6hWzknMSzh0SurkwQeTINNKTdYY,599
104
104
  csv_detective/detect_labels/FR/temp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
105
- csv_detective/detect_labels/FR/temp/jour_de_la_semaine/__init__.py,sha256=Ezpf-7lsk389VKdKMZvZ00rMqq070uSVVb8oko06KGw,1044
106
- csv_detective/detect_labels/FR/temp/mois_de_annee/__init__.py,sha256=5GytrQmPCmr-vndjcAS5cQWOO4RPvrfQh8KqH9qhrCc,904
105
+ csv_detective/detect_labels/FR/temp/jour_de_la_semaine/__init__.py,sha256=Vmv7Hp6LxR-bh3aXOBCHYzJVyCHtGoiWzJ40xnfTvdA,357
106
+ csv_detective/detect_labels/FR/temp/mois_de_annee/__init__.py,sha256=M4ANAy40vq328DRdB6LudjO9G9duSh7e-RqFr6axXO0,225
107
107
  csv_detective/detect_labels/geo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
108
- csv_detective/detect_labels/geo/iso_country_code_alpha2/__init__.py,sha256=CUtYIsh08LjNoa-BJkxrYvHuwJBG--u1AK5BN4RDpL4,1035
109
- csv_detective/detect_labels/geo/iso_country_code_alpha3/__init__.py,sha256=CUtYIsh08LjNoa-BJkxrYvHuwJBG--u1AK5BN4RDpL4,1035
110
- csv_detective/detect_labels/geo/iso_country_code_numeric/__init__.py,sha256=CUtYIsh08LjNoa-BJkxrYvHuwJBG--u1AK5BN4RDpL4,1035
111
- csv_detective/detect_labels/geo/json_geojson/__init__.py,sha256=3scv7fZ5cxu5MR8RR-AF4KmGhkZT--CYcFg22IibhkY,1042
112
- csv_detective/detect_labels/geo/latitude_wgs/__init__.py,sha256=xRrXcUUlk7XqHuHbTXUToM3n90_kLXQxdSzMkcc9jIc,1351
113
- csv_detective/detect_labels/geo/latlon_wgs/__init__.py,sha256=yL8Fp4DcwOm0f5_5CbSZwbvGD1p3LOkRS7hxz778O7g,1675
114
- csv_detective/detect_labels/geo/longitude_wgs/__init__.py,sha256=yHhVPefvqgl8Q1fEdstoxDeGyJNkJ-2b1S5cwdF4HTI,1115
108
+ csv_detective/detect_labels/geo/iso_country_code_alpha2/__init__.py,sha256=biUZP8gAsVpjXLTx1WeS19qR4ia0pzpi6R69wJgu4B0,348
109
+ csv_detective/detect_labels/geo/iso_country_code_alpha3/__init__.py,sha256=biUZP8gAsVpjXLTx1WeS19qR4ia0pzpi6R69wJgu4B0,348
110
+ csv_detective/detect_labels/geo/iso_country_code_numeric/__init__.py,sha256=biUZP8gAsVpjXLTx1WeS19qR4ia0pzpi6R69wJgu4B0,348
111
+ csv_detective/detect_labels/geo/json_geojson/__init__.py,sha256=On8VOCDD0EspZra6fTQCXH4MYao2xmRu-o7xWcab7Jg,355
112
+ csv_detective/detect_labels/geo/latitude_wgs/__init__.py,sha256=ME_KjniqDSdAwXP7XnKXyr5IA75KrGSLIhvPNfsux6E,664
113
+ csv_detective/detect_labels/geo/latlon_wgs/__init__.py,sha256=dbWX1LKpoev7zwWthw9vlwGQp6CSlgYrTBnPpvyNC-A,989
114
+ csv_detective/detect_labels/geo/longitude_wgs/__init__.py,sha256=_8IV2FLtrOjzhQNsk-fsgc9-jbAgzKDVMr4tXu2P-s4,429
115
115
  csv_detective/detect_labels/other/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
116
- csv_detective/detect_labels/other/booleen/__init__.py,sha256=0AvbuPVr7corJLDOu-wNS9BOy6J8XzOPIouS9MyFKHA,957
117
- csv_detective/detect_labels/other/email/__init__.py,sha256=0VXS8hWILdGRWugx9hEz5yEAnlaoJ6jYX3znkzjlDYE,1118
118
- csv_detective/detect_labels/other/float/__init__.py,sha256=FD8NlVSZ0TARGKKKCkWYRT9vYwDXpQe7X4V7VPJNUrw,896
119
- csv_detective/detect_labels/other/int/__init__.py,sha256=I8ff6zX1tsk4JtNWs0V0Vam-BtdiKiGyUkUvIysfbUY,903
120
- csv_detective/detect_labels/other/money/__init__.py,sha256=kBEGuUy6kYkOI3vC_a7waBciG2ipyV9bhC330U8WaoI,279
121
- csv_detective/detect_labels/other/money/check_col_name.py,sha256=zgp5eUnf3XRQuxgdEGfxPfUnniO8Pzw19uK0ICr2pf8,414
122
- csv_detective/detect_labels/other/mongo_object_id/__init__.py,sha256=gyuizUcsQwdwKVmnaGJbauc01SkqhgaXtsq_vWlwsXs,897
123
- csv_detective/detect_labels/other/twitter/__init__.py,sha256=MGuWhcmZFDcBz16v-g8By_k-RF3UimU7qb8QTAAs8PA,929
124
- csv_detective/detect_labels/other/url/__init__.py,sha256=NSMvRhtNJgyVr2AQpkI1O-UWdBiovq62WHEmMb3WlOM,1172
125
- csv_detective/detect_labels/other/uuid/__init__.py,sha256=ePXGCdVfKus67jvdeq5MZA1CA2j47PKjHhWnrsyCAi8,901
116
+ csv_detective/detect_labels/other/booleen/__init__.py,sha256=BZwnfR-Zcv8dqscLrBKhttgwm4Dqq16M0PaGirxYWio,214
117
+ csv_detective/detect_labels/other/email/__init__.py,sha256=Poagn45-eC2a_Wdk5Qs6d2BgYdncCQKZp2yEB50IuNw,431
118
+ csv_detective/detect_labels/other/float/__init__.py,sha256=X0axZN2GAfC_y01zRfIyvOfRsOy2KNQcQ-mlQAKxqT4,216
119
+ csv_detective/detect_labels/other/int/__init__.py,sha256=_1AY7thEBCcgSBQQ2YbY4YaPaxGRQ71BtmaFaX088ig,215
120
+ csv_detective/detect_labels/other/money/__init__.py,sha256=1JRArDZ5r6gtyuKijH_fuuVFVc0f3MN5gPyAf4GPqzs,249
121
+ csv_detective/detect_labels/other/mongo_object_id/__init__.py,sha256=1eoJpaK0mP8Jjh9ljwvG7yG_05fxmAyYoZDdbOVbfw4,209
122
+ csv_detective/detect_labels/other/twitter/__init__.py,sha256=96WhOB6nOutzSFOC5ZJYFSlhHDJRn2SkT4nYNj8E6ww,241
123
+ csv_detective/detect_labels/other/url/__init__.py,sha256=4Ajpdp8W0jS9aHZAAMyUlgefjSgpB7Y6ci29KNkwAoI,485
124
+ csv_detective/detect_labels/other/uuid/__init__.py,sha256=kXVb4oMy-Zv-OYmAIEoNFrBA20l9hbUTdvTfjeMmhjk,213
126
125
  csv_detective/detect_labels/temp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
127
- csv_detective/detect_labels/temp/date/__init__.py,sha256=oI77XxATeJLk27r8Cdg1DmSNYtLl5Se4zay3eG12eJ0,1292
128
- csv_detective/detect_labels/temp/datetime_iso/__init__.py,sha256=C8ZgzfZWVw6nebMuySpED2HRUho8W4rLxv6qDNpJvas,1127
129
- csv_detective/detect_labels/temp/datetime_rfc822/__init__.py,sha256=WPSWNPgDPAHBMT-Nv0X-6u3yTQfcsaab2NNiG2-8qgk,1145
130
- csv_detective/detect_labels/temp/year/__init__.py,sha256=AGkHXXvo_oG9di9p9Glae-c8TIPJ0319isnNKOzBCjk,1120
126
+ csv_detective/detect_labels/temp/date/__init__.py,sha256=w0eeZIseAmPwL4OvCWzZXbxGOIXYRKiZUhEtgHiBXd0,604
127
+ csv_detective/detect_labels/temp/datetime_iso/__init__.py,sha256=d0laZNzHx-kSARs9Re8TZ11GNs99aMz6gXc72CJ6ul4,440
128
+ csv_detective/detect_labels/temp/datetime_rfc822/__init__.py,sha256=53ysj7QgsxXwG1le3zfSJd1oaTTf-Er3jBeYi_A4F9g,458
129
+ csv_detective/detect_labels/temp/year/__init__.py,sha256=7uWaCZY7dOG7nolW46IgBWmcu8K-9jPED-pOlMlErfo,433
131
130
  csv_detective/detection/columns.py,sha256=vfE-DKESA6J9Rfsl-a8tjgZfE21VmzArO5TrbzL0KmE,2905
132
131
  csv_detective/detection/encoding.py,sha256=tpjJEMNM_2TcLXDzn1lNQPnSRnsWYjs83tQ8jNwTj4E,973
133
132
  csv_detective/detection/engine.py,sha256=HiIrU-l9EO5Fbc2Vh8W_Uy5-dpKcQQzlxCqMuWc09LY,1530
@@ -147,20 +146,20 @@ csv_detective/parsing/compression.py,sha256=Fnw5tj-PpBNI8NYsWj5gD-DUoWcVLnsVpiKm
147
146
  csv_detective/parsing/csv.py,sha256=11mibDnJhIjykXLGZvA5ZEU5U7KgxIrbyO6BNv6jlro,1626
148
147
  csv_detective/parsing/excel.py,sha256=AslE2S1e67o8yTIAIhp-lAnJ6-XqeBBRz1-VMFqhZBM,7055
149
148
  csv_detective/parsing/load.py,sha256=u6fbGFZsL2GwPQRzhAXgt32JpUur7vbQdErREHxNJ-w,3661
150
- csv_detective/parsing/text.py,sha256=rsfk66BCmdpsCOd0kDJ8tmqMsEWd-OeBkEisWc4Ej9k,1246
151
- csv_detective-0.8.1.dev1362.data/data/share/csv_detective/CHANGELOG.md,sha256=798lqRkhkIMWZgj8UWholpCJ719DOF_bB0hD8y6HM-g,8291
152
- csv_detective-0.8.1.dev1362.data/data/share/csv_detective/LICENSE.AGPL.txt,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
153
- csv_detective-0.8.1.dev1362.data/data/share/csv_detective/README.md,sha256=Qr8xRXc-dxQ-tdXCpCTCKp1Uliqq84r0UOlPRNuGCpI,9506
154
- csv_detective-0.8.1.dev1362.dist-info/licenses/LICENSE.AGPL.txt,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
149
+ csv_detective/parsing/text.py,sha256=_TprGi0gHZlRsafizI3dqQhBehZW4BazqxmypMcAZ-o,1824
150
+ csv_detective-0.8.1.dev1380.data/data/share/csv_detective/CHANGELOG.md,sha256=rPCHesCnCZgVSjdXkzEtDCgkkA__aKmvJWko_SvD4gs,8361
151
+ csv_detective-0.8.1.dev1380.data/data/share/csv_detective/LICENSE.AGPL.txt,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
152
+ csv_detective-0.8.1.dev1380.data/data/share/csv_detective/README.md,sha256=Qr8xRXc-dxQ-tdXCpCTCKp1Uliqq84r0UOlPRNuGCpI,9506
153
+ csv_detective-0.8.1.dev1380.dist-info/licenses/LICENSE.AGPL.txt,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
155
154
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
156
155
  tests/test_example.py,sha256=JeHxSK0IVDcSrOhSZlNGSQv4JAc_r6mzvJM8PfmLTMw,2018
157
156
  tests/test_fields.py,sha256=E6kEsp6_W56WW6FXWUl7hggsJv-vsKuOaJ9JLoFmrUw,9964
158
157
  tests/test_file.py,sha256=9APE1d43lQ8Dk8lwJFNUK_YekYYsQ0ae2_fgpcPE9mk,8116
159
- tests/test_labels.py,sha256=6MOKrGznkwU5fjZ_3oiB6Scmb480Eu-9geBJs0UDLds,159
158
+ tests/test_labels.py,sha256=Nkr645bUewrj8hjNDKr67FQ6Sy_TID6f3E5Kfkl231M,464
160
159
  tests/test_structure.py,sha256=bv-tjgXohvQAxwmxzH0BynFpK2TyPjcxvtIAmIRlZmA,1393
161
160
  tests/test_validation.py,sha256=CTGonR6htxcWF9WH8MxumDD8cF45Y-G4hm94SM4lFjU,3246
162
- csv_detective-0.8.1.dev1362.dist-info/METADATA,sha256=Vk1SkLg14wAGFzxtutlVEFt5q9G__rpclVVR7rvtJOo,1386
163
- csv_detective-0.8.1.dev1362.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
164
- csv_detective-0.8.1.dev1362.dist-info/entry_points.txt,sha256=JjweTReFqKJmuvkegzlew2j3D5pZzfxvbEGOtGVGmaY,56
165
- csv_detective-0.8.1.dev1362.dist-info/top_level.txt,sha256=M0Nv646VHo-49zWjPkwo2C48UmtfddV8_9mEZeIxy8Q,20
166
- csv_detective-0.8.1.dev1362.dist-info/RECORD,,
161
+ csv_detective-0.8.1.dev1380.dist-info/METADATA,sha256=_892qUzBNdUnGSDIZbXDWVSi-3s4OvgGhxsBkizXWYQ,1386
162
+ csv_detective-0.8.1.dev1380.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
163
+ csv_detective-0.8.1.dev1380.dist-info/entry_points.txt,sha256=JjweTReFqKJmuvkegzlew2j3D5pZzfxvbEGOtGVGmaY,56
164
+ csv_detective-0.8.1.dev1380.dist-info/top_level.txt,sha256=M0Nv646VHo-49zWjPkwo2C48UmtfddV8_9mEZeIxy8Q,20
165
+ csv_detective-0.8.1.dev1380.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.7.1)
2
+ Generator: setuptools (80.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
tests/test_labels.py CHANGED
@@ -1,7 +1,23 @@
1
- from csv_detective.detect_labels.other import money
1
+ import pytest
2
+
3
+ from csv_detective.detect_labels import latitude_wgs, money
2
4
 
3
5
 
4
6
  # money labels
5
7
  def test_money_labels():
6
8
  header = "Montant total"
7
- assert money._is(header) == 1.0
9
+ assert money._is(header) == 0.5
10
+
11
+
12
+ @pytest.mark.parametrize(
13
+ "params", [
14
+ ("latitude", 1.0),
15
+ ("lat", 1.0),
16
+ ("coord_lat", 0.5),
17
+ ("y", 1.0),
18
+ ("nb_cycles", 0.0),
19
+ ]
20
+ )
21
+ def test_latitude(params):
22
+ header, expected = params
23
+ assert expected == latitude_wgs._is(header)
@@ -1,8 +0,0 @@
1
- def is_col_name_related_to_money(name):
2
- # TODO : make this a little bit more clever (spacy ?)
3
- col_name_related_to_money = False
4
- money_themes = ['budget', 'salaire', 'euro', 'euros', 'prêt', 'montant']
5
- # TODO attention 'européeen' est détecté OK
6
- for theme in money_themes:
7
- col_name_related_to_money = col_name_related_to_money or (theme in name)
8
- return col_name_related_to_money