Skip to main content

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', ...]
>>> 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.

tests Documentation Status

Installing fathomnet-py

fathomnet-py is available on PyPI:

$ python -m pip install fathomnet

API Reference available on Read the Docs

Project details


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.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

fathomnet-0.1.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file fathomnet-0.1.0.tar.gz.

File metadata

  • Download URL: fathomnet-0.1.0.tar.gz
  • Upload date:
  • Size: 14.1 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

Hashes for fathomnet-0.1.0.tar.gz
Algorithm Hash digest
SHA256 66fde227ee26dae7a39ce7761593952ad202f62ad57e044b9836dac13b47a927
MD5 2ae6053e8cd136b3189c32c37c84bc1c
BLAKE2b-256 e9bca98acb493c724fe28c089b3c2399e4e0d5e9411a8c50158d8bd70b2f0bc5

See more details on using hashes here.

File details

Details for the file fathomnet-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fathomnet-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 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

Hashes for fathomnet-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0a0edebaf1645a903b85548d856d075bf5eac5c461ff7fe8329c550e085963e
MD5 9f5b22c8cdd8c78b0274d635bb67f852
BLAKE2b-256 bbd9f8aa07ae46ff3c22d1b1d17fb1867ea7fb3faac837770b4ccc1727a92956

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page