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.1.tar.gz
(16.2 kB
view details)
Built Distribution
fathomnet-0.5.1-py3-none-any.whl
(21.1 kB
view details)
File details
Details for the file fathomnet-0.5.1.tar.gz
.
File metadata
- Download URL: fathomnet-0.5.1.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-37-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d74ee761fd22c4a05d122ffad8b9701f41ffdbb4aa862622b700fef22c1341e |
|
MD5 | 09cce0e55154a74b84c4f5abfa0c7eff |
|
BLAKE2b-256 | 6cd7f956e72160536f3e56f2452e6b2214142aa007f3c033a6346d98fa379b5d |
File details
Details for the file fathomnet-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: fathomnet-0.5.1-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.8.10 Linux/5.13.0-37-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c280ebe5b35a065cbe8cf6f8f8549fa7e8fb4fc3c6285e95d364d8b0c2b04743 |
|
MD5 | e41944db3ed2b053bf2b0458c600deb3 |
|
BLAKE2b-256 | 42919ce33651c8deff33c57049f10648654593f99edb8861b6f13bbd3bab0d24 |