Commit 6f99cdbe authored by Pauline Maury Laribière's avatar Pauline Maury Laribière
Browse files

Merge branch 'quick_fix' into 'master'

quick fix with constant

See merge request pauline.maury-laribiere/meatadata-auto!2
parents bc5c3716 9372d962
......@@ -26,7 +26,12 @@ In the first part, we describe the API available from everywhere, then we descri
#### Codelists
1. Export a codelist based on an identifier
```
response = get_codelist(identifier, export_format="SDMX-ML", version_format=2.1, annotations=False)
response = get_codelist(
identifier,
export_format="SDMX-ML",
version_format=2.1,
annotations=False
)
```
Parameters:
......@@ -41,6 +46,7 @@ response = get_codelist(identifier, export_format="SDMX-ML", version_format=2.1,
- a pd.DataFrame if export_format was CSV or XLSX
- a dictionnary if export_format was SDMX-ML or SDMX-JSON.
TODO: add language choice
#### Data Structures
1. Get the data structure
......@@ -60,7 +66,13 @@ response = get_data_structure(identifier, language='fr')
1. Export one level of a nomenclature
```
response = get_nomenclature_one_level(identifier, level_number, filters={}, language='fr', annotations=False)
response = get_nomenclature_one_level(
identifier,
level_number,
filters={},
language='fr',
annotations=False
)
```
Parameters:
......@@ -77,7 +89,14 @@ response = get_nomenclature_one_level(identifier, level_number, filters={}, lang
2. Export multiple levels of a nomenclature (from `level_from` to `level_to`)
```
response = get_nomenclature_multiple_levels(identifier, level_from, level_to, filters={}, language='fr', annotations=False)
response = get_nomenclature_multiple_levels(
identifier,
level_from,
level_to,
filters={},
language='fr',
annotations=False
)
```
Parameters:
......
......@@ -26,7 +26,12 @@ In the first part, we describe the API available from everywhere, then we descri
#### Codelists
1. Export a codelist based on an identifier
```
response = get_codelist(identifier, export_format="SDMX-ML", version_format=2.1, annotations=False)
response = get_codelist(
identifier,
export_format="SDMX-ML",
version_format=2.1,
annotations=False
)
```
Parameters:
......@@ -41,7 +46,6 @@ response = get_codelist(identifier, export_format="SDMX-ML", version_format=2.1,
- a pd.DataFrame if export_format was CSV or XLSX
- a dictionnary if export_format was SDMX-ML or SDMX-JSON.
#### Data Structures
1. Get the data structure
```
......@@ -60,7 +64,13 @@ response = get_data_structure(identifier, language='fr')
1. Export one level of a nomenclature
```
response = get_nomenclature_one_level(identifier, level_number, filters={}, language='fr', annotations=False)
response = get_nomenclature_one_level(
identifier,
level_number,
filters={},
language='fr',
annotations=False
)
```
Parameters:
......@@ -77,7 +87,14 @@ response = get_nomenclature_one_level(identifier, level_number, filters={}, lang
2. Export multiple levels of a nomenclature (from `level_from` to `level_to`)
```
response = get_nomenclature_multiple_levels(identifier, level_from, level_to, filters={}, language='fr', annotations=False)
response = get_nomenclature_multiple_levels(
identifier,
level_from,
level_to,
filters={},
language='fr',
annotations=False
)
```
Parameters:
......
......@@ -4,7 +4,6 @@ from typing import Union
import pandas as pd
from fso_metadata.api_class import Api
from fso_metadata.constants import DCAT_URL
from fso_metadata.format_request import dict_to_string
......
......@@ -10,7 +10,7 @@ long_description = (this_directory / "README.md").read_text()
setup(
name="fso_metadata",
packages=["fso_metadata"],
version="0.7",
version="0.8",
license="MIT",
description="FSO metadata access automation. Seamless access to SMS 2.0 APIs in Python.",
long_description=long_description,
......@@ -18,7 +18,7 @@ setup(
author="Pauline Maury Laribière",
author_email="pauline.maury-laribiere@bfs.admin.ch",
url="https://renkulab.io/gitlab/pauline.maury-laribiere/meatadata-auto",
download_url="https://renkulab.io/gitlab/pauline.maury-laribiere/meatadata-auto/-/archive/v_0.7/meatadata-auto-v_0.7.tar.gz",
download_url="https://renkulab.io/gitlab/pauline.maury-laribiere/meatadata-auto/-/archive/v_0.8/meatadata-auto-v_0.8.tar.gz",
keywords=[
"metadata",
"automation",
......
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