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.1.3.tar.gz
(19.7 kB
view details)
Built Distribution
fathomnet-1.1.3-py3-none-any.whl
(26.6 kB
view details)
File details
Details for the file fathomnet-1.1.3.tar.gz
.
File metadata
- Download URL: fathomnet-1.1.3.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d32056446313778f529599ba0d42c053ce8c3dc95c45e21a019ebcc997fbeca |
|
MD5 | 7f9ff6dc5f974c9262a506c28ad53fd6 |
|
BLAKE2b-256 | 19e07b7f9825f8836e0062f8b969c17ec1219b8938344ce5b17fa8068f54b1bd |
File details
Details for the file fathomnet-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: fathomnet-1.1.3-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4368e8a8e92ed406847641d7880e1778621cbb7fed65fd7dc218e96bf6df3ccb |
|
MD5 | 571cf46316d76c684ac2724e32c8091b |
|
BLAKE2b-256 | 7d3c01d5d2fb128f21fd1a538c553b96e526f4d726f9486feb201194b5e6a39e |