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-1.2.0.tar.gz
(20.6 kB
view details)
Built Distribution
fathomnet-1.2.0-py3-none-any.whl
(27.6 kB
view details)
File details
Details for the file fathomnet-1.2.0.tar.gz
.
File metadata
- Download URL: fathomnet-1.2.0.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/6.5.0-15-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 340cd79f53e2ec153dd407680af2e1b847ec2b9c284bacffdf318543ed933f99 |
|
MD5 | b99fa32d4f40af5a5a2688135ac46b82 |
|
BLAKE2b-256 | c1fe6650f9db502d9f6784f33638a0dba11c66c344a880eb44dc8d28d35af4ef |
File details
Details for the file fathomnet-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: fathomnet-1.2.0-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/6.5.0-15-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b20ab39aa9ca020baa6434b4fd40bfbcd63a9a450ffb73e6862c10ce3bad121 |
|
MD5 | bf745e8cf8284fe947c535a11d77a15e |
|
BLAKE2b-256 | 779151c31d417480e8c3eb1bce5faf965a85d1ada4a8cabf79bdea0186d4f3e8 |