Skip to content

Commit

Permalink
import cartiflette.client as cartiflette
Browse files Browse the repository at this point in the history
  • Loading branch information
B-Alica committed Nov 20, 2024
1 parent 3143055 commit c0e6fa6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python-package/cartiflette/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions python-package/cartiflette/cartiflette/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from importlib.metadata import version

from .config import _config
from .client import carti_download

__version__ = version(__package__)

__all__ = ["carti_download"]
2 changes: 1 addition & 1 deletion python-package/cartiflette/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>", "Thomas Grandjean <[email protected]>", "Alica Burlot <[email protected]>"]
license = "OPEN LICENCE 2.0/LICENCE OUVERTE 2.0"
Expand Down
2 changes: 1 addition & 1 deletion python-package/cartiflette/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import geopandas as gpd

from cartiflette.client import carti_download
from cartiflette import carti_download


def test_carti_download():
Expand Down

0 comments on commit c0e6fa6

Please sign in to comment.