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.7.1.tar.gz
(55.2 kB
view details)
Built Distribution
fathomnet-1.7.1-py3-none-any.whl
(28.7 kB
view details)
File details
Details for the file fathomnet-1.7.1.tar.gz
.
File metadata
- Download URL: fathomnet-1.7.1.tar.gz
- Upload date:
- Size: 55.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ac05c1269658f0e8911d236302a95dd2dd224737deac8bbc29f595d198ad92e |
|
MD5 | 8455707185f82f9ddd04aa51f09a640c |
|
BLAKE2b-256 | 1b22bd0836813e4e832730b4e9a90edc2b81c2b24b59ae36e98a7470baf95c36 |
File details
Details for the file fathomnet-1.7.1-py3-none-any.whl
.
File metadata
- Download URL: fathomnet-1.7.1-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39121988f54eb658637b11f93aa6c1528345a01c3189d33478423ae2397ed242 |
|
MD5 | b862c10608d1caba1ae1b5bc1b44fff9 |
|
BLAKE2b-256 | 6b6856bd89422bdbcc39b627a11cb5d41cd232a7534075314cfe3f37c73e5e6f |