# Habref-api-module
[![pytest](https://github.com/PnX-SI/Habref-api-module/actions/workflows/pytest.yml/badge.svg)](https://github.com/PnX-SI/Habref-api-module/actions/workflows/pytest.yml)
[![codecov](https://codecov.io/gh/PnX-SI/Habref-api-module/branch/master/graph/badge.svg?token=YM6Q6SO4EI)](https://codecov.io/gh/PnX-SI/Habref-api-module)
API d'interrogation d'Habref : référentiel des typologies d’habitats et de végétation pour la France (https://inpn.mnhn.fr/telechargement/referentiels/habitats).
## Technologies
- Python 3
- Flask
- SQLAlchemy
## Installation
- Créer un virtualenv et l'activer :
```
virtualenv -p /usr/bin/python3 venv
source venv/bin/acticate
```
- Installer le module :
```
pip install https://github.com/PnX-SI/Habref-api-module/archive/<X.Y.Z>.zip
```
- Installer le schéma de base de données :
Le module est fourni avec une commande pour installer la base de données. Cette commande télécharge le référentiel Habref et créé un schéma de base de données nommé ``ref_habitats``.
```
# Depuis le virtualenv
install_habref_schema <database uri>
# Exemple :
# install_habref_schema "postgresql://geonatadmin:monpassachanger@localhost:5432/geonature2db"
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
pypn_habref_api-0.3.0.tar.gz (33个子文件)
pypn_habref_api-0.3.0
MANIFEST.in 103B
PKG-INFO 2KB
pyproject.toml 179B
requirements.in 152B
LICENSE 34KB
src
pypn_habref_api.egg-info
PKG-INFO 2KB
requires.txt 181B
not-zip-safe 1B
SOURCES.txt 1KB
entry_points.txt 60B
top_level.txt 16B
dependency_links.txt 1B
pypn_habref_api
models.py 4KB
data
habref.sql 11KB
data_inpn_habref.sql 3KB
__init__.py 0B
tests
conftest.py 235B
__init__.py 0B
test_habref.py 348B
__init__.py 472B
migrations
versions
62e63cd6135d_create_ref_habitats_schema.py 486B
__init__.py 0B
46e91e738845_insert_inpn_data_in_ref_habitats_schema.py 2KB
805442837a68_correction_on_habref_data.py 1KB
__init__.py 0B
env.py 3KB
env.py 664B
schemas.py 428B
routes.py 5KB
setup.cfg 38B
VERSION 6B
setup.py 1KB
README.md 1KB
共 33 条
- 1
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0