FathomNet Python client
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', 'Abraliopsis (Boreabraliopsis) felis', 'Abyssocucumis abyssorum', 'Acanthamunnopsis', ...]
>>> 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.0.2.tar.gz
(13.4 kB
view details)
Built Distribution
fathomnet-0.0.2-py3-none-any.whl
(14.2 kB
view details)
File details
Details for the file fathomnet-0.0.2.tar.gz
.
File metadata
- Download URL: fathomnet-0.0.2.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.6.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf72e3ae53d38ea692973df1724b3ad06ba1d439925cc63199d430c526e92ee7 |
|
MD5 | d8bb7000b49f42ccc86f48adfec4b110 |
|
BLAKE2b-256 | 28216b5aa945bea2561a58f62cf3f72865854f32c4190f06f4696fa6aa607673 |
File details
Details for the file fathomnet-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: fathomnet-0.0.2-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.6.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6100486472a880f5baeaf28d74e164a04746b65b206d34135f1ae786470afeb |
|
MD5 | eac514f08330dc988afbb8f834b696c4 |
|
BLAKE2b-256 | cf2bb491ea1f7885555cf1a5f04979e8de8cdff58bb938c598356c8d56063249 |