fathomnet-py is a client-side API to help scientists, researchers, and developers interact with FathomNet data.
Project description
fathomnet-py
fathomnet-py
is a client-side API to help scientists, researchers, and developers interact with FathomNet data.
>>> 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...'
)
The fathomnet-py
API offers native Python interaction with the FathomNet REST API, abstracting away the underlying HTTP requests.
Installing fathomnet-py
fathomnet-py
is available on PyPI:
$ python -m pip install fathomnet
API Reference available on Read the Docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fathomnet-0.5.0.tar.gz
(16.2 kB
view details)
Built Distribution
fathomnet-0.5.0-py3-none-any.whl
(21.1 kB
view details)
File details
Details for the file fathomnet-0.5.0.tar.gz
.
File metadata
- Download URL: fathomnet-0.5.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.5 Linux/5.13.0-37-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5496176039832dcb3f0d3db32b1d603c489c8af24f7c60f5fb68588b8e2b2e5 |
|
MD5 | 385f9ac38aa28673e4bd340bc5a846a1 |
|
BLAKE2b-256 | 08bcd691c1b6a92003b1ff82dd3242b8a3584b090cb3facf11db1868961972f7 |
File details
Details for the file fathomnet-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: fathomnet-0.5.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.5 Linux/5.13.0-37-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2b94f1ace8ab4d598f68ae58c284f7d3e9303125c5af51923a8a6e8ae513366 |
|
MD5 | ab0e1d8a623ac3beeae48ddfc0a998ce |
|
BLAKE2b-256 | 34855cfd1a9a558ffafaf78c8c698d8d948a2ec5e6c6dfab3fdcb5e10394872f |