gbif的python客户端
pygbif的Python项目详细描述
==
*r:`r gbif`,` ropensci/rgbif<;https://github.com/ropensci/rgbif>;`
代码块::console
development version
…代码块::console
[sudo]pip install git+git://github.com/sckott/pygbif.git egg=pygbif
`pygbif`被划分为每个主要api方法组的模块。
*注册表-数据集、节点、安装、网络,组织
*物种-分类名称
*出现次数-出现次数数据,包括下载API
*地图-地图,从GBIF获取光栅地图作为PNG或MVT
您可以根据需要导入整个库或每个模块。
此外还有一个Utils模块,目前只有一种方法:`wkt_rewind`
registry module
==
>registry module api:
*`organizations`
*`nodes`
*`networks`
*`installations`
*`datasets`
*`dataset\metrics`
*`dataset\u suggest`
*`dataset\search`
用法:
…代码块::python
*`名称查找`
*`名称分析器`
>示例用法:
…代码块::python
*` count-basisofrecord`
*`count-year`
*`count-dataset`
*`count-count-count-count-count-count-count-count-count-count-count-count-count-count-count-count-count-counts`
*`download-meta`
*`download-list`
*`download-get`
示例用法:
代码块::python
occ.download('decimallatitude>;50')
occ.download目录(user="sckott",limit=5)
occ.download_Meta(key="0000099-140929101555934")
occ.download_Get("0000066-140928181241064")
maps module
==
*`map`
示例用法:
。代码块::python
from pygbif import maps
out=maps.map(taxonkey=212,year=1998,bin="hex",
hexpertile=30,style="classic noborder.poly")
out.response
out.path
out.img
out.plot()
图片::https://github.com/sckott/pygbif/raw/master/gbif-map.png
:宽度:25%
:比例:25%
utils模块
==
*`wkt-rewind`
示例用法:
代码块::python
x='多边形(144.6 13.6 13.2、144.6 13.6、144.9 13.6、144.9 13.6、144.6 13.6 13.6、144.6 13.6 13.6、144.6 13.6 13.6、144.9 13.6 13.2、144.6 13.2、144.6 13.2))''
===========
=================
=>>>/>*`罗伯特forkel<;https://github.com/xrotwang>;`
*`jan legind<;https://github.com/jlegind>;`
*`stijn van hoey<;https://github.com/stijnnahoy>;`
*`peter desmet<;https://github.com/peterdesmet>;`
====
*许可证:麻省理工学院e`license file<;license>;` `
*请注意,此项目发布时附带了一个`contributor code of conduct<;conduct.md>;`。通过参与本项目,您同意遵守其条款。
。| pypi图像::https://img.shields.io/pypi/v/pygbif.svg
:目标:https://pypi.python.org/pypi/pygbif
|文档图片:https://readthedocs.org/projects/pygbif/badge/?版本=最新
:目标:http://pygbif.rtfd.org/
…|特拉维斯图片::https://travis ci.org/sckott/pygbif.svg
:目标:https://travis ci.org/sckott/pygbif
…|覆盖范围图像::https://coveralls.io/repos/sckott/pygbif/badge.svg?branch=master&service=github
:目标:https://coveralls.io/github/sckott/pygbif?branch=master
<0.3.0(2019-01-25)
----
-pygbif现在才是python 3:issue:`19`
-使用maps获得maps模块。使用gbif maps api的map方法:issue:`41`:issue:`49`
-使用一种方法获得新模块utils` wkt_u倒带`:问题:`46`感谢@aubreymore的启发
-修复注册表中的错误。安装:在参数'identifertyp'中键入错误而不是'identifertype':问题:`48`感谢@data biodity aq
-从changelog链接到github问题下载测试:问题:`47`
-更彻底的文档:问题:`25`
0.2.0(2016-10-18)
----
-下载方法大大改进:问题:`16`:问题:`27`谢谢@jlegind@stijnnanhoey@peterdesmet!
-现在在"geometry"参数中支持多多边形:问题:`35`
-修复了"occurrences.get"和"occurrences.get"的文档,`引用。获取使用GBIF中不再存在的引用项的"片段"和演示:问题:`39`
-将"组织"方法添加到"注册表"模块:问题:`12`
-添加其余数据集方法:`registry.dataset\u search`(包括faceting支持:问题:`37`)和` registry.dataset\u suggest`,分别用于`/dataset/search`和`/dataset/suggest`路由:issue:`40`
-添加了`/species/search`和`/species`路由的`/species/search`和`/species`方法的剩余部分:`species.name\u lookup`(包括faceting支持:issue:`38`)和` species.name\u usage`,分别是:问题:增加了更多的测试来覆盖新的方法,改变了物种,名称建议返回从gbif收到的数据结构。我们过去常常分析分类数据,但为了简单和快速,现在由用户决定。
-`species.name\u suggest`,`occurrences.download\list`,`registry.organizations`,`registry.nodes`,`registry.networks`,and`registry.installations`中的"start"参数,更改为"offset"以匹配gbif api并匹配"pygbif"其余部分的用法
0.1.5.4(2016-10-01)
---------
-添加了许多新的"occurrence.search"参数,包括"reportated"、"kingdomkey"、"phylumkey"、"classkey"、"orderkey"、"familykey"、"genuskey",` subgenuskey`,`estrimentmeans`,`facet`,`facetmincount`,`facetmultisect`,并且支持通过`**kwargs`:issue:`30`:issue:`34`
-修复了`**kwargs`中的`**kwargs`.search`以便可以正确地分析方面参数并正确地收集`requests` get请求选项:issue:`36`
-将`spellcheck`参数添加到`occurrence.search`中与"q"参数一起,可选择拼写检查全文搜索:问题:`31`
0.1.4(2016-06-04)
---------
-在整个文档中添加变量类型
-将"出现次数"的默认"限制"值更改为300。搜索方法
-`tox'现在包括在内,via@xrotwang:issue:`20`
-添加更多注册表方法:issue:`11`
-开始出现下载方法:issue:`16`
-添加更多名称方法:issue:`18`
-所有请求现在都发送带有'requests'和'pygbif'版本的用户代理头:issue:`13`
-修复`出现次数。下载获取:issue:`23`
-修复了"出现"的错误示例。get`:问题:`22`
-2和3的通用固定车轮:问题:`10`
-大量改进文档,autodoc方法现在
0.1.1(2015-11-03)
—————————————————————————————————————————————————————————————————————————————————————————————————————————————————