跳转到主要内容

理解网-py是一个客户端API,帮助科学家、研究人员和开发者与理解网数据交互。

项目描述

理解网-py

理解网-py是一个客户端API,帮助科学家、研究人员和开发者与理解网数据交互。

>>> from fathomnet.api import boundingboxes
>>> boundingboxes.find_concepts()
['2G Robotics structured light laser', '55-gallon drum', ...]
>>> from fathomnet.api import images
>>> images.find_by_concept('Nanomia')
[
    AImageDTO(
        id=2274942, 
        uuid='cdbfca66-284f-48ac-a36f-7b2ac2b43533', 
        url='https://fathomnet.org/static/m3/framegrabs/MiniROV/images/0056/02_18_37_20.png', 
        ...
    ),
    ...
]
>>> from fathomnet.api import taxa
>>> taxa.find_children('mbari', 'Bathochordaeus')
[
    Taxa(name='Bathochordaeus stygius', rank='species'), 
    Taxa(name='Bathochordaeus charon', rank='species'), 
    Taxa(name='Bathochordaeus mcnutti', rank='species')
]
>>> from fathomnet.api import xapikey
>>> xapikey.auth('NuCLjlNUlgHchtgDB01Sp1fABJVcWR')  # your API key here
AuthHeader(
    type='Bearer', 
    token='eyJhbGciOiJI...'
)

理解网-py API提供与理解网REST API的原生Python交互,抽象出底层的HTTP请求。

CI/CD Documentation Status Tutorial

安装理解网-py

理解网-py在PyPI上可用

$ python -m pip install fathomnet

API参考文档可在Read the Docs找到

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分发

fathomnet-1.6.1.tar.gz (21.3 kB 查看哈希值)

上传时间 源码

构建分发

fathomnet-1.6.1-py3-none-any.whl (28.5 kB 查看哈希值)

上传时间 Python 3