A client for http://appeau.api.vignevin-epicure.com API
Project description
# Description
Un client Python pour l’API appeau, généré à partir du fichier de description suivant la spec OpenAPI 3.0. Il nécessite une version de python >= 3.8, pour le typage des dictionnaires.
# Build & Install
Pour générer le module, suivre ce lien: https://docs.python.org/fr/3.8/distutils/introduction.html#distutils-simple-example
En synthèse: `shell python setup.py sdist # à la racine, voir https://docs.python.org/fr/3/distutils/sourcedist.html pour les formats d'archive possible ` puis, par défaut dans /dist, et après extraction de l’archive, à la racine: `shell python setup.py install ` # Exemple
`python import sample.login_check_post import sample.api_parcelles_get_collection response = sample.login_check_post.login_check_post(host = 'http://appeau.api.vignevin-epicure.com', body_parameters = {"username": 'vitisexplorer',"password": 'Ajfkmdkp34'}) token = response.json() print(token['token']) parcelles = sample.api_parcelles_get_collection.api_parcelles_get_collection('http://appeau.api.vignevin-epicure.com', headers = {"Authorization": "Bearer " + token['token']}) print(parcelles.json()) `
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for appeau_client-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43cf1a04533fad875a86b9e17ecdb2d0a4137a0d8c75277f19d2ad3e62c4df3e |
|
MD5 | e5ee6d9ee74583d36ff465162163cc6b |
|
BLAKE2b-256 | c2c73f75f751e43b5a573aef1927f7d935c5030572548ceb3525ff5d5375a9f2 |