Skip to main content

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.

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

Uploaded Source

Built Distribution

fathomnet-0.4.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fathomnet-0.4.1.tar.gz
  • Upload date:
  • Size: 32.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.5 Linux/5.13.0-28-generic

File hashes

Hashes for fathomnet-0.4.1.tar.gz
Algorithm Hash digest
SHA256 afa4e4e9815e206a29d5b7c40e6425c6e7a07282d0cf4432d42a1b381a587b74
MD5 110a6e89a7d405e569a678a8f706220e
BLAKE2b-256 f2f9c70535061ece6a6e2a99b6d4bde9c131e1fbd691590db651868bd35a8a6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fathomnet-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.5 Linux/5.13.0-28-generic

File hashes

Hashes for fathomnet-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c32655ada8008e32f19ff469f5da6d7927658b7ad2367eee90056e42b61eedd
MD5 61a4771c75dfdd285897f19b9cab1edf
BLAKE2b-256 d0f18c841336a0a77d1ae471f2d11efe9f7c7b3573700ca856462530e4bd753b

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