edb-noumea 0.2.13__tar.gz → 0.2.15__tar.gz
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.
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/PKG-INFO +3 -2
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/README.md +4 -0
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/edb_noumea/details.py +11 -5
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/edb_noumea.egg-info/PKG-INFO +3 -2
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/edb_noumea.egg-info/requires.txt +1 -0
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/edb_noumea.egg-info/top_level.txt +1 -0
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/pyproject.toml +3 -2
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/edb_noumea/__init__.py +0 -0
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/edb_noumea/main.py +0 -0
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/edb_noumea.egg-info/SOURCES.txt +0 -0
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/edb_noumea.egg-info/dependency_links.txt +0 -0
- {edb_noumea-0.2.13 → edb_noumea-0.2.15}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: edb-noumea
|
|
3
|
-
Version: 0.2.
|
|
4
|
-
Summary: Un scraper pour la qualité des eaux de baignade à Nouméa.
|
|
3
|
+
Version: 0.2.15
|
|
4
|
+
Summary: Un scraper pour la qualité des eaux de baignade à Nouméa. (Bug fix release: improved PDF column detection and added jpype1 dependency)
|
|
5
5
|
Project-URL: Homepage, https://github.com/adriens/edb-noumea
|
|
6
6
|
Project-URL: Repository, https://github.com/adriens/edb-noumea
|
|
7
7
|
Requires-Dist: requests
|
|
@@ -9,4 +9,5 @@ Requires-Dist: beautifulsoup4
|
|
|
9
9
|
Requires-Dist: pandas
|
|
10
10
|
Requires-Dist: lxml
|
|
11
11
|
Requires-Dist: tabula-py
|
|
12
|
+
Requires-Dist: jpype1
|
|
12
13
|
Requires-Dist: matplotlib
|
|
@@ -101,13 +101,19 @@ def get_detailed_results():
|
|
|
101
101
|
e_coli_col = next((col for col in df.columns if "Escherichia" in str(col) or "coli" in str(col)), None)
|
|
102
102
|
entero_col = next((col for col in df.columns if "Entérocoques" in str(col)), None)
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
# Dynamically find all required columns
|
|
105
|
+
site_col = next((col for col in df.columns if "Nom du site" in str(col)), None)
|
|
106
|
+
point_prelevement_col = next((col for col in df.columns if "Point de prélèvement" in str(col)), None)
|
|
107
|
+
date_col = next((col for col in df.columns if "Date du prélèvement" in str(col)), None)
|
|
108
|
+
heure_col = next((col for col in df.columns if "Heure du prélèvement" in str(col)), None)
|
|
109
|
+
|
|
110
|
+
# Check if all required columns are found
|
|
111
|
+
if not all([site_col, point_prelevement_col, date_col, heure_col, e_coli_col, entero_col]):
|
|
112
|
+
print(f"❌ Certaines colonnes requises n'ont pas été trouvées. Colonnes disponibles : {list(df.columns)}")
|
|
106
113
|
return None
|
|
107
114
|
|
|
108
|
-
#
|
|
109
|
-
|
|
110
|
-
cleaned_df = df.loc[:, selected_cols].copy()
|
|
115
|
+
# Select and rename columns to internal consistent names
|
|
116
|
+
cleaned_df = df.loc[:, [site_col, point_prelevement_col, date_col, heure_col, e_coli_col, entero_col]].copy()
|
|
111
117
|
cleaned_df.columns = [
|
|
112
118
|
"site",
|
|
113
119
|
"point_de_prelevement",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: edb-noumea
|
|
3
|
-
Version: 0.2.
|
|
4
|
-
Summary: Un scraper pour la qualité des eaux de baignade à Nouméa.
|
|
3
|
+
Version: 0.2.15
|
|
4
|
+
Summary: Un scraper pour la qualité des eaux de baignade à Nouméa. (Bug fix release: improved PDF column detection and added jpype1 dependency)
|
|
5
5
|
Project-URL: Homepage, https://github.com/adriens/edb-noumea
|
|
6
6
|
Project-URL: Repository, https://github.com/adriens/edb-noumea
|
|
7
7
|
Requires-Dist: requests
|
|
@@ -9,4 +9,5 @@ Requires-Dist: beautifulsoup4
|
|
|
9
9
|
Requires-Dist: pandas
|
|
10
10
|
Requires-Dist: lxml
|
|
11
11
|
Requires-Dist: tabula-py
|
|
12
|
+
Requires-Dist: jpype1
|
|
12
13
|
Requires-Dist: matplotlib
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "edb-noumea"
|
|
3
|
-
version = "0.2.
|
|
4
|
-
description = "Un scraper pour la qualité des eaux de baignade à Nouméa."
|
|
3
|
+
version = "0.2.15"
|
|
4
|
+
description = "Un scraper pour la qualité des eaux de baignade à Nouméa. (Bug fix release: improved PDF column detection and added jpype1 dependency)"
|
|
5
5
|
dependencies = [
|
|
6
6
|
"requests",
|
|
7
7
|
"beautifulsoup4",
|
|
8
8
|
"pandas",
|
|
9
9
|
"lxml",
|
|
10
10
|
"tabula-py",
|
|
11
|
+
"jpype1",
|
|
11
12
|
"matplotlib",
|
|
12
13
|
]
|
|
13
14
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|