csv-detective 0.7.4.dev969__py3-none-any.whl → 0.7.5.dev1009__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.
- csv_detective/__init__.py +1 -1
- csv_detective/detect_fields/FR/geo/code_commune_insee/__init__.py +6 -2
- csv_detective/detect_fields/FR/geo/code_departement/__init__.py +10 -2
- csv_detective/detect_fields/FR/geo/code_fantoir/__init__.py +3 -1
- csv_detective/detect_fields/FR/geo/code_postal/__init__.py +6 -1
- csv_detective/detect_fields/FR/geo/code_region/__init__.py +4 -2
- csv_detective/detect_fields/FR/geo/commune/__init__.py +10 -2
- csv_detective/detect_fields/FR/geo/departement/__init__.py +10 -2
- csv_detective/detect_fields/FR/geo/insee_canton/__init__.py +9 -2
- csv_detective/detect_fields/FR/geo/latitude_l93/__init__.py +5 -5
- csv_detective/detect_fields/FR/geo/longitude_l93/__init__.py +5 -5
- csv_detective/detect_fields/FR/geo/pays/__init__.py +10 -2
- csv_detective/detect_fields/FR/geo/region/__init__.py +42 -2
- csv_detective/detect_fields/FR/other/code_rna/__init__.py +3 -1
- {csv_detective-0.7.4.dev969.data → csv_detective-0.7.5.dev1009.data}/data/share/csv_detective/CHANGELOG.md +4 -0
- {csv_detective-0.7.4.dev969.dist-info → csv_detective-0.7.5.dev1009.dist-info}/METADATA +2 -2
- {csv_detective-0.7.4.dev969.dist-info → csv_detective-0.7.5.dev1009.dist-info}/RECORD +24 -24
- tests/test_fields.py +4 -4
- {csv_detective-0.7.4.dev969.data → csv_detective-0.7.5.dev1009.data}/data/share/csv_detective/LICENSE.AGPL.txt +0 -0
- {csv_detective-0.7.4.dev969.data → csv_detective-0.7.5.dev1009.data}/data/share/csv_detective/README.md +0 -0
- {csv_detective-0.7.4.dev969.dist-info → csv_detective-0.7.5.dev1009.dist-info}/LICENSE.AGPL.txt +0 -0
- {csv_detective-0.7.4.dev969.dist-info → csv_detective-0.7.5.dev1009.dist-info}/WHEEL +0 -0
- {csv_detective-0.7.4.dev969.dist-info → csv_detective-0.7.5.dev1009.dist-info}/entry_points.txt +0 -0
- {csv_detective-0.7.4.dev969.dist-info → csv_detective-0.7.5.dev1009.dist-info}/top_level.txt +0 -0
csv_detective/__init__.py
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
from frformat import CodeCommuneInsee
|
|
1
|
+
from frformat import CodeCommuneInsee, Millesime
|
|
2
2
|
|
|
3
3
|
PROPORTION = 0.75
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
_code_commune_insee = CodeCommuneInsee(Millesime.LATEST)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def _is(val):
|
|
9
|
+
return _code_commune_insee.is_valid(val)
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
from frformat import NumeroDepartement
|
|
1
|
+
from frformat import NumeroDepartement, Options, Millesime
|
|
2
2
|
|
|
3
3
|
PROPORTION = 1
|
|
4
4
|
|
|
5
|
+
_options = Options(
|
|
6
|
+
ignore_case=True,
|
|
7
|
+
ignore_accents=True,
|
|
8
|
+
replace_non_alphanumeric_with_space=True,
|
|
9
|
+
ignore_extra_whitespace=True
|
|
10
|
+
)
|
|
11
|
+
_numero_departement = NumeroDepartement(Millesime.LATEST, _options)
|
|
12
|
+
|
|
5
13
|
|
|
6
14
|
def _is(val):
|
|
7
|
-
return isinstance(val, str) and
|
|
15
|
+
return isinstance(val, str) and _numero_departement.is_valid(val)
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
from frformat import CodeRegion
|
|
1
|
+
from frformat import CodeRegion, Millesime
|
|
2
2
|
|
|
3
3
|
PROPORTION = 1
|
|
4
4
|
|
|
5
|
+
_code_region = CodeRegion(Millesime.LATEST)
|
|
6
|
+
|
|
5
7
|
|
|
6
8
|
def _is(val):
|
|
7
9
|
'''Renvoie True si val peut être un code_région, False sinon'''
|
|
8
|
-
return isinstance(val, str) and
|
|
10
|
+
return isinstance(val, str) and _code_region.is_valid(val)
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
from frformat import Commune
|
|
1
|
+
from frformat import Commune, Options, Millesime
|
|
2
2
|
|
|
3
3
|
PROPORTION = 0.9
|
|
4
4
|
|
|
5
|
+
_options = Options(
|
|
6
|
+
ignore_case=True,
|
|
7
|
+
ignore_accents=True,
|
|
8
|
+
replace_non_alphanumeric_with_space=True,
|
|
9
|
+
ignore_extra_whitespace=True
|
|
10
|
+
)
|
|
11
|
+
_commune = Commune(Millesime.LATEST, _options)
|
|
12
|
+
|
|
5
13
|
|
|
6
14
|
def _is(val):
|
|
7
15
|
"""Match avec le nom des communes"""
|
|
8
|
-
return isinstance(val, str) and
|
|
16
|
+
return isinstance(val, str) and _commune.is_valid(val)
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
from frformat import Departement
|
|
1
|
+
from frformat import Departement, Options, Millesime
|
|
2
2
|
|
|
3
3
|
PROPORTION = 0.9
|
|
4
4
|
|
|
5
|
+
_options = Options(
|
|
6
|
+
ignore_case=True,
|
|
7
|
+
ignore_accents=True,
|
|
8
|
+
replace_non_alphanumeric_with_space=True,
|
|
9
|
+
ignore_extra_whitespace=True
|
|
10
|
+
)
|
|
11
|
+
_departement = Departement(Millesime.LATEST, _options)
|
|
12
|
+
|
|
5
13
|
|
|
6
14
|
def _is(val):
|
|
7
15
|
"""Match avec le nom des departements"""
|
|
8
|
-
return isinstance(val, str) and
|
|
16
|
+
return isinstance(val, str) and _departement.is_valid(val)
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
from frformat import Canton
|
|
1
|
+
from frformat import Canton, Options, Millesime
|
|
2
2
|
|
|
3
3
|
PROPORTION = 0.9
|
|
4
|
+
_options = Options(
|
|
5
|
+
ignore_case=True,
|
|
6
|
+
ignore_accents=True,
|
|
7
|
+
replace_non_alphanumeric_with_space=True,
|
|
8
|
+
ignore_extra_whitespace=True
|
|
9
|
+
)
|
|
10
|
+
_canton = Canton(Millesime.LATEST, _options)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
def _is(val):
|
|
7
14
|
"""Match avec le nom des cantons"""
|
|
8
|
-
return isinstance(val, str) and
|
|
15
|
+
return isinstance(val, str) and _canton.is_valid(val)
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
from frformat import LatitudeL93
|
|
2
2
|
from csv_detective.detect_fields.other.float import _is as is_float
|
|
3
|
+
|
|
3
4
|
from csv_detective.detect_fields.other.float import float_casting
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
PROPORTION = 0.9
|
|
7
8
|
|
|
9
|
+
_latitudel93 = LatitudeL93()
|
|
10
|
+
|
|
8
11
|
|
|
9
12
|
def _is(val):
|
|
10
13
|
try:
|
|
11
|
-
if isinstance(val, (
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
elif isinstance(val, str) and is_float(val):
|
|
15
|
-
return LatitudeL93.is_valid(float_casting(val))
|
|
14
|
+
if isinstance(val, str) and is_float(val):
|
|
15
|
+
return _latitudel93.is_valid(float_casting(val))
|
|
16
16
|
|
|
17
17
|
return False
|
|
18
18
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
from frformat import LongitudeL93
|
|
2
2
|
from csv_detective.detect_fields.other.float import _is as is_float
|
|
3
|
+
|
|
3
4
|
from csv_detective.detect_fields.other.float import float_casting
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
PROPORTION = 0.9
|
|
7
8
|
|
|
9
|
+
_longitudel93 = LongitudeL93()
|
|
10
|
+
|
|
8
11
|
|
|
9
12
|
def _is(val):
|
|
10
13
|
try:
|
|
11
|
-
if isinstance(val, (
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
elif isinstance(val, str) and is_float(val):
|
|
15
|
-
return LongitudeL93.is_valid(float_casting(val))
|
|
14
|
+
if isinstance(val, str) and is_float(val):
|
|
15
|
+
return _longitudel93.is_valid(float_casting(val))
|
|
16
16
|
|
|
17
17
|
return False
|
|
18
18
|
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
from frformat import Pays
|
|
1
|
+
from frformat import Pays, Options, Millesime
|
|
2
2
|
|
|
3
3
|
PROPORTION = 0.6
|
|
4
4
|
|
|
5
|
+
_options = Options(
|
|
6
|
+
ignore_case=True,
|
|
7
|
+
ignore_accents=True,
|
|
8
|
+
replace_non_alphanumeric_with_space=True,
|
|
9
|
+
ignore_extra_whitespace=True
|
|
10
|
+
)
|
|
11
|
+
_pays = Pays(Millesime.LATEST, _options)
|
|
12
|
+
|
|
5
13
|
|
|
6
14
|
def _is(val):
|
|
7
15
|
"""Match avec le nom des pays"""
|
|
8
|
-
return isinstance(val, str) and
|
|
16
|
+
return isinstance(val, str) and _pays.is_valid(val)
|
|
@@ -1,8 +1,48 @@
|
|
|
1
|
-
from frformat import Region
|
|
1
|
+
from frformat import Region, Options, Millesime
|
|
2
2
|
|
|
3
3
|
PROPORTION = 1
|
|
4
4
|
|
|
5
|
+
_extra_valid_values_set = frozenset({
|
|
6
|
+
"alsace",
|
|
7
|
+
"aquitaine",
|
|
8
|
+
"ara",
|
|
9
|
+
"aura",
|
|
10
|
+
"auvergne",
|
|
11
|
+
"auvergne et rhone alpes",
|
|
12
|
+
"basse normandie",
|
|
13
|
+
"bfc",
|
|
14
|
+
"bourgogne",
|
|
15
|
+
"bourgogne et franche comte",
|
|
16
|
+
"centre",
|
|
17
|
+
"champagne ardenne",
|
|
18
|
+
"franche comte",
|
|
19
|
+
"ge",
|
|
20
|
+
"haute normandie",
|
|
21
|
+
"hdf",
|
|
22
|
+
"languedoc roussillon",
|
|
23
|
+
"limousin",
|
|
24
|
+
"lorraine",
|
|
25
|
+
"midi pyrenees",
|
|
26
|
+
"nord pas de calais",
|
|
27
|
+
"npdc",
|
|
28
|
+
"paca",
|
|
29
|
+
"picardie",
|
|
30
|
+
"poitou charentes",
|
|
31
|
+
"reunion",
|
|
32
|
+
"rhone alpes",
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
_options = Options(
|
|
37
|
+
ignore_case=True,
|
|
38
|
+
ignore_accents=True,
|
|
39
|
+
replace_non_alphanumeric_with_space=True,
|
|
40
|
+
ignore_extra_whitespace=True,
|
|
41
|
+
extra_valid_values=_extra_valid_values_set
|
|
42
|
+
)
|
|
43
|
+
_region = Region(Millesime.LATEST, _options)
|
|
44
|
+
|
|
5
45
|
|
|
6
46
|
def _is(val):
|
|
7
47
|
"""Match avec le nom des regions"""
|
|
8
|
-
return isinstance(val, str) and
|
|
48
|
+
return isinstance(val, str) and _region.is_valid(val)
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Current (in progress)
|
|
4
4
|
|
|
5
|
+
- Nothing yet
|
|
6
|
+
|
|
7
|
+
## 0.7.4 (2024-11-15)
|
|
8
|
+
|
|
5
9
|
- Enable calling main functions from base [#97](https://github.com/datagouv/csv-detective/pull/97)
|
|
6
10
|
- Better detection of ints and floats [#94](https://github.com/datagouv/csv-detective/pull/94)
|
|
7
11
|
- Better handle NaN values [#96](https://github.com/datagouv/csv-detective/pull/96)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: csv_detective
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.5.dev1009
|
|
4
4
|
Summary: Detect CSV column content
|
|
5
5
|
Home-page: https://github.com/etalab/csv_detective
|
|
6
6
|
Author: Etalab
|
|
@@ -26,5 +26,5 @@ Requires-Dist: odfpy==1.4.1
|
|
|
26
26
|
Requires-Dist: requests==2.32.3
|
|
27
27
|
Requires-Dist: responses==0.25.0
|
|
28
28
|
Requires-Dist: python-magic==0.4.27
|
|
29
|
-
Requires-Dist: frformat==0.
|
|
29
|
+
Requires-Dist: frformat==0.4.0
|
|
30
30
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
csv_detective/__init__.py,sha256=
|
|
1
|
+
csv_detective/__init__.py,sha256=giVhs0g13y4U2H0WiVBLcrvytcMxQ1LiCd2i03XITwQ,83
|
|
2
2
|
csv_detective/cli.py,sha256=Ua7SE1wMH2uFUsTmfumh4nJk7O06okpMd2gvjUDO1II,1048
|
|
3
3
|
csv_detective/detection.py,sha256=AuXlPOZfzqznZY2ybAAgaXIq6qVITYd3MXf2CoigI3I,22097
|
|
4
4
|
csv_detective/explore_csv.py,sha256=X5yZS3WCUsafUMcs5tOnDTeMGzMnfr0iB9vEDx7xiqg,16977
|
|
@@ -10,24 +10,24 @@ csv_detective/detect_fields/__init__.py,sha256=CchNbi1vrgIGh_uBexXZTzfjBETDY0kQL
|
|
|
10
10
|
csv_detective/detect_fields/FR/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
csv_detective/detect_fields/FR/geo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
csv_detective/detect_fields/FR/geo/adresse/__init__.py,sha256=e5JqMNOPxx0Ivju3zAHCGMopZroCpR4vr3DJKlQhMz4,1675
|
|
13
|
-
csv_detective/detect_fields/FR/geo/code_commune_insee/__init__.py,sha256=
|
|
14
|
-
csv_detective/detect_fields/FR/geo/code_departement/__init__.py,sha256=
|
|
15
|
-
csv_detective/detect_fields/FR/geo/code_fantoir/__init__.py,sha256=
|
|
16
|
-
csv_detective/detect_fields/FR/geo/code_postal/__init__.py,sha256=
|
|
17
|
-
csv_detective/detect_fields/FR/geo/code_region/__init__.py,sha256=
|
|
18
|
-
csv_detective/detect_fields/FR/geo/commune/__init__.py,sha256=
|
|
19
|
-
csv_detective/detect_fields/FR/geo/departement/__init__.py,sha256=
|
|
20
|
-
csv_detective/detect_fields/FR/geo/insee_canton/__init__.py,sha256=
|
|
21
|
-
csv_detective/detect_fields/FR/geo/latitude_l93/__init__.py,sha256=
|
|
13
|
+
csv_detective/detect_fields/FR/geo/code_commune_insee/__init__.py,sha256=tfHdqUnCQ0cv-fBo3Cy--8UNXzgjld4kseI5eQ_sR4E,187
|
|
14
|
+
csv_detective/detect_fields/FR/geo/code_departement/__init__.py,sha256=unr-Y4zquKSM5PVUiQGnOm-zQvaN8qd3v_XHf0W2VH8,378
|
|
15
|
+
csv_detective/detect_fields/FR/geo/code_fantoir/__init__.py,sha256=27bCkZP5w7tpsKUdOIXuiAG90DTdw066CWg3G5HtsKE,160
|
|
16
|
+
csv_detective/detect_fields/FR/geo/code_postal/__init__.py,sha256=e1SdnW8zVSxrRMm-CeK9tlkLzORP2C6KOInTWnB7h3o,134
|
|
17
|
+
csv_detective/detect_fields/FR/geo/code_region/__init__.py,sha256=y-TPljkf-W209tp7V0RnJ34936XxB6FA2-XPYK3DV8I,253
|
|
18
|
+
csv_detective/detect_fields/FR/geo/commune/__init__.py,sha256=tZ4d1BQd9Xow0SWBcmuGlnX-RKHDzCstdY9AsXM6-Nk,379
|
|
19
|
+
csv_detective/detect_fields/FR/geo/departement/__init__.py,sha256=je2zLsPlK_X189bbmKzf4BJSEoFShxMz2eQNXB7hsh0,399
|
|
20
|
+
csv_detective/detect_fields/FR/geo/insee_canton/__init__.py,sha256=3uNN_Iha6dFfm24CluUmkHFg6nj7kRQaXrHDEcLfyjY,373
|
|
21
|
+
csv_detective/detect_fields/FR/geo/latitude_l93/__init__.py,sha256=5v07RJbi12eoPa-e_-q8xlWBew80FPMxsggcMgZQiI8,438
|
|
22
22
|
csv_detective/detect_fields/FR/geo/latitude_wgs_fr_metropole/__init__.py,sha256=WjPHg8s0ND6bOwS-yo6FP1dnwD-6SWg9oH1K0avHsbI,344
|
|
23
|
-
csv_detective/detect_fields/FR/geo/longitude_l93/__init__.py,sha256=
|
|
23
|
+
csv_detective/detect_fields/FR/geo/longitude_l93/__init__.py,sha256=ZwThPSfbRwNHA_anuplxTPYHK-WMduc_np2Xw9XsApM,442
|
|
24
24
|
csv_detective/detect_fields/FR/geo/longitude_wgs_fr_metropole/__init__.py,sha256=d4fLK4IndwllDhsddyTbyRiPfc8O9wT0pLIRI_C3QvQ,344
|
|
25
|
-
csv_detective/detect_fields/FR/geo/pays/__init__.py,sha256=
|
|
26
|
-
csv_detective/detect_fields/FR/geo/region/__init__.py,sha256=
|
|
25
|
+
csv_detective/detect_fields/FR/geo/pays/__init__.py,sha256=2q5T4SmCK6ZFF1mrv7d-q9tOIQKBcROI24y_UYIuvz0,383
|
|
26
|
+
csv_detective/detect_fields/FR/geo/region/__init__.py,sha256=JbFKDd4jAnd9yb7YqP36MoLdO1JFPm1cg60fGXt6ZvI,1074
|
|
27
27
|
csv_detective/detect_fields/FR/other/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
csv_detective/detect_fields/FR/other/code_csp_insee/__init__.py,sha256=X0NT6YbBg9PrxIcBwzUCQuBiv_QdDdqb3CJnrlent28,566
|
|
29
29
|
csv_detective/detect_fields/FR/other/code_csp_insee/code_csp_insee.txt,sha256=rbcjtMP6qTZ7BTU6ZegkiXKCruqY_m9Ep6ZgRabFS_E,2486
|
|
30
|
-
csv_detective/detect_fields/FR/other/code_rna/__init__.py,sha256=
|
|
30
|
+
csv_detective/detect_fields/FR/other/code_rna/__init__.py,sha256=Z0RjMBt1--ZL7Jd1RsHAQCCbTAQk_BnlnTq8VF1o_VA,146
|
|
31
31
|
csv_detective/detect_fields/FR/other/code_waldec/__init__.py,sha256=g9n5sOjRlk4I9YFZjdaTYrXf8ftXRDunGZOUpYhN4fA,295
|
|
32
32
|
csv_detective/detect_fields/FR/other/csp_insee/__init__.py,sha256=XacU_3rwXqtdbw_ULTSnu0OOtx0w_rKlviCrLmNdHjc,496
|
|
33
33
|
csv_detective/detect_fields/FR/other/csp_insee/csp_insee.txt,sha256=kgKaKc-5PHu5U4--ugLjpFyMNtTU9CGdZ9ANU3YAsM4,32879
|
|
@@ -125,17 +125,17 @@ csv_detective/detect_labels/temp/date/__init__.py,sha256=GrIbo64WVM3hi7ShBRKKyKU
|
|
|
125
125
|
csv_detective/detect_labels/temp/datetime_iso/__init__.py,sha256=Ih9l56nBcdmGLyWDavVUWuUUuVZBz9QUDE1hHzADvVg,1157
|
|
126
126
|
csv_detective/detect_labels/temp/datetime_rfc822/__init__.py,sha256=DQ_h4uDW1e6qu2rATEhgGKw6O-vVi7HbDhbEDDCT9uY,1175
|
|
127
127
|
csv_detective/detect_labels/temp/year/__init__.py,sha256=zPF_mvhzhXMAlHPAskS8mhuxjLj2AlKpV4ss8Q4tDms,1150
|
|
128
|
-
csv_detective-0.7.
|
|
129
|
-
csv_detective-0.7.
|
|
130
|
-
csv_detective-0.7.
|
|
128
|
+
csv_detective-0.7.5.dev1009.data/data/share/csv_detective/CHANGELOG.md,sha256=4ABp5UF2L6tPg-eK7Dj6NWgnFnkU74BwhrMzrRGJ2Lw,6585
|
|
129
|
+
csv_detective-0.7.5.dev1009.data/data/share/csv_detective/LICENSE.AGPL.txt,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
130
|
+
csv_detective-0.7.5.dev1009.data/data/share/csv_detective/README.md,sha256=Qr8xRXc-dxQ-tdXCpCTCKp1Uliqq84r0UOlPRNuGCpI,9506
|
|
131
131
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
132
|
-
tests/test_fields.py,sha256=
|
|
132
|
+
tests/test_fields.py,sha256=kXel-hiyQYrJ3OLmwUMg1K3DKbbwBLvUplxZWxpp18I,10605
|
|
133
133
|
tests/test_file.py,sha256=1fEOu3bArGBaarRKAoTXAF3cSIGJfFN3UIwOW6esWRs,6399
|
|
134
134
|
tests/test_labels.py,sha256=6MOKrGznkwU5fjZ_3oiB6Scmb480Eu-9geBJs0UDLds,159
|
|
135
135
|
tests/test_structure.py,sha256=SVsnluVoIIprYw_67I1_gB3cp9m1wlO8C7SpdsLW8cM,1161
|
|
136
|
-
csv_detective-0.7.
|
|
137
|
-
csv_detective-0.7.
|
|
138
|
-
csv_detective-0.7.
|
|
139
|
-
csv_detective-0.7.
|
|
140
|
-
csv_detective-0.7.
|
|
141
|
-
csv_detective-0.7.
|
|
136
|
+
csv_detective-0.7.5.dev1009.dist-info/LICENSE.AGPL.txt,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
137
|
+
csv_detective-0.7.5.dev1009.dist-info/METADATA,sha256=dd1MAjbcCr_c82zoDPcO5zbfB8KLLDd8WdDCMWtchzA,1090
|
|
138
|
+
csv_detective-0.7.5.dev1009.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
|
139
|
+
csv_detective-0.7.5.dev1009.dist-info/entry_points.txt,sha256=JjweTReFqKJmuvkegzlew2j3D5pZzfxvbEGOtGVGmaY,56
|
|
140
|
+
csv_detective-0.7.5.dev1009.dist-info/top_level.txt,sha256=M0Nv646VHo-49zWjPkwo2C48UmtfddV8_9mEZeIxy8Q,20
|
|
141
|
+
csv_detective-0.7.5.dev1009.dist-info/RECORD,,
|
tests/test_fields.py
CHANGED
|
@@ -282,26 +282,26 @@ def test_do_not_match_canton():
|
|
|
282
282
|
|
|
283
283
|
# latitude_l93
|
|
284
284
|
def test_match_latitude_l93():
|
|
285
|
-
vals = [6037008, 7123528.5, "7124528,5"]
|
|
285
|
+
vals = ["6037008", "7123528.5", "7124528,5"]
|
|
286
286
|
for val in vals:
|
|
287
287
|
assert latitude_l93._is(val)
|
|
288
288
|
|
|
289
289
|
|
|
290
290
|
def test_do_not_match_latitude_93():
|
|
291
|
-
vals = [0, -6734529.6, 7245669.8, "3422674,78", "32_34"]
|
|
291
|
+
vals = ["0", "-6734529.6", "7245669.8", "3422674,78", "32_34"]
|
|
292
292
|
for val in vals:
|
|
293
293
|
assert not latitude_l93._is(val)
|
|
294
294
|
|
|
295
295
|
|
|
296
296
|
# longitude_l93
|
|
297
297
|
def test_match_longitude_l93():
|
|
298
|
-
vals = [0, -154, "1265783,45", 34723.4]
|
|
298
|
+
vals = ["0", "-154", "1265783,45", "34723.4"]
|
|
299
299
|
for val in vals:
|
|
300
300
|
assert longitude_l93._is(val)
|
|
301
301
|
|
|
302
302
|
|
|
303
303
|
def test_do_not_match_longitude_93():
|
|
304
|
-
vals = [1456669.8, "-776225", "346_3214"]
|
|
304
|
+
vals = ["1456669.8", "-776225", "346_3214"]
|
|
305
305
|
for val in vals:
|
|
306
306
|
assert not longitude_l93._is(val)
|
|
307
307
|
|
|
File without changes
|
|
File without changes
|
{csv_detective-0.7.4.dev969.dist-info → csv_detective-0.7.5.dev1009.dist-info}/LICENSE.AGPL.txt
RENAMED
|
File without changes
|
|
File without changes
|
{csv_detective-0.7.4.dev969.dist-info → csv_detective-0.7.5.dev1009.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{csv_detective-0.7.4.dev969.dist-info → csv_detective-0.7.5.dev1009.dist-info}/top_level.txt
RENAMED
|
File without changes
|