Commit 2817d45b authored by Christophe Benz's avatar Christophe Benz

Update hostname

parent 6d698947
......@@ -34,7 +34,7 @@ import requests
default_api_base_url = os.environ.get('API_URL') or 'https://api.db.nomics.world/v22/'
default_max_nb_series = 50
default_editor_api_base_url = os.environ.get('EDITOR_API_URL') or 'https://editor.dbnomics.org/api/v1/'
default_editor_api_base_url = os.environ.get('EDITOR_API_URL') or 'https://editor.nomics.world/api/v1/'
editor_apply_endpoint_nb_series_per_post = 100
log = logging.getLogger(__name__)
......@@ -81,7 +81,7 @@ def fetch_series(provider_code=None, dataset_code=None, series_code=None, dimens
If `max_nb_series` is `None`, a default value of 50 series will be used.
If `filters` is not `None`, apply those filters using the Time Series Editor API (Cf https://editor.dbnomics.org/filters)
If `filters` is not `None`, apply those filters using the Time Series Editor API (Cf https://editor.nomics.world/filters)
Return a Python Pandas `DataFrame`.
......@@ -175,7 +175,7 @@ def fetch_series_by_api_link(api_link, max_nb_series=None,
"API link" URLs can be found on DBnomics web site (https://db.nomics.world/) on dataset or series pages
using "Download" buttons.
If `filters` is not `None`, apply those filters using the Time Series Editor API (Cf https://editor.dbnomics.org/filters)
If `filters` is not `None`, apply those filters using the Time Series Editor API (Cf https://editor.nomics.world/filters)
Example:
fetch_series(api_link="https://api.db.nomics.world/v22/series?provider_code=AMECO&dataset_code=ZUTN")
......
......@@ -1753,9 +1753,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The `dbnomics` Python package can interact with the [Time Series Editor](https://editor.dbnomics.org/) to transform time series by applying filters to them. Available filters are listed on the [filters page](https://editor.dbnomics.org/filters).\n",
"The `dbnomics` Python package can interact with the [Time Series Editor](https://editor.nomics.world/) to transform time series by applying filters to them. Available filters are listed on the [filters page](https://editor.nomics.world/filters).\n",
"\n",
"The Time Series Editor is usable via a web interface ([example with AMECO/ZUTN/EA19.1.0.0.0.ZUTN](https://editor.dbnomics.org/series?source=dbnomics&series_id=AMECO/ZUTN/EA19.1.0.0.0.ZUTN)) but you can call it directly from Python.\n",
"The Time Series Editor is usable via a web interface ([example with AMECO/ZUTN/EA19.1.0.0.0.ZUTN](https://editor.nomics.world/series?source=dbnomics&series_id=AMECO/ZUTN/EA19.1.0.0.0.ZUTN)) but you can call it directly from Python.\n",
"\n",
"You can chain many filters.\n",
"\n",
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment