From c0e6fa6c8b377c24c3810c1af9af399c27db6253 Mon Sep 17 00:00:00 2001 From: Alica Burlot Date: Wed, 20 Nov 2024 16:32:10 +0100 Subject: [PATCH] import cartiflette.client as cartiflette --- python-package/cartiflette/README.md | 4 ++-- python-package/cartiflette/cartiflette/__init__.py | 3 +++ python-package/cartiflette/pyproject.toml | 2 +- python-package/cartiflette/tests/test_client.py | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/python-package/cartiflette/README.md b/python-package/cartiflette/README.md index b797438..07efca9 100644 --- a/python-package/cartiflette/README.md +++ b/python-package/cartiflette/README.md @@ -25,7 +25,7 @@ Plus d'exemples sont disponibles dans la [documentation interactive](https://ins Exemple de récupération du fonds de carte des départements avec les DROM rapprochés de la France métropolitaine ``` python -from cartiflette.client import carti_download +from cartiflette import carti_download data = carti_download( values = ["France"], @@ -43,7 +43,7 @@ Si besoin de passer par un proxy, il faut déclarer http_proxy et https_proxy en ``` python import os -from cartiflette.client import carti_download +from cartiflette import carti_download os.environ["http_proxy"] = yourproxy os.environ["https_proxy"] = yourproxy diff --git a/python-package/cartiflette/cartiflette/__init__.py b/python-package/cartiflette/cartiflette/__init__.py index 953014e..82cd736 100644 --- a/python-package/cartiflette/cartiflette/__init__.py +++ b/python-package/cartiflette/cartiflette/__init__.py @@ -1,5 +1,8 @@ from importlib.metadata import version from .config import _config +from .client import carti_download __version__ = version(__package__) + +__all__ = ["carti_download"] diff --git a/python-package/cartiflette/pyproject.toml b/python-package/cartiflette/pyproject.toml index d54ad97..3fc2d0d 100644 --- a/python-package/cartiflette/pyproject.toml +++ b/python-package/cartiflette/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cartiflette" -version = "0.1.5" +version = "0.1.6" description = "Tools to easily retrieve French borders for geographic data analytics" authors = ["Lino Galiana ", "Thomas Grandjean ", "Alica Burlot "] license = "OPEN LICENCE 2.0/LICENCE OUVERTE 2.0" diff --git a/python-package/cartiflette/tests/test_client.py b/python-package/cartiflette/tests/test_client.py index 45bfd91..52936d3 100644 --- a/python-package/cartiflette/tests/test_client.py +++ b/python-package/cartiflette/tests/test_client.py @@ -8,7 +8,7 @@ import geopandas as gpd -from cartiflette.client import carti_download +from cartiflette import carti_download def test_carti_download():