fathomnet-0.6.0
توضیحات
fathomnet-py is a client-side API to help scientists, researchers, and developers interact with FathomNet data.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fathomnet-0.6.0 |
| نام | fathomnet |
| نسخه کتابخانه | 0.6.0 |
| نگهدارنده | ['Kevin Barnard'] |
| ایمیل نگهدارنده | ['kbarnard@mbari.org'] |
| نویسنده | Kevin Barnard |
| ایمیل نویسنده | kbarnard@mbari.org |
| آدرس صفحه اصلی | https://github.com/fathomnet/fathomnet-py |
| آدرس اینترنتی | https://pypi.org/project/fathomnet/ |
| مجوز | MIT |
# fathomnet-py
**`fathomnet-py`** is a client-side API to help scientists, researchers, and developers interact with [FathomNet](https://fathomnet.org/) data.
```python
>>> 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.
[](https://github.com/fathomnet/fathomnet-py/actions/workflows/tests.yml)
[](https://fathomnet-py.readthedocs.io/en/latest/?badge=latest)
[](https://colab.research.google.com/github/fathomnet/fathomnet-py/blob/main/tutorial.ipynb)
## Installing `fathomnet-py`
`fathomnet-py` is available on PyPI:
```bash
$ python -m pip install fathomnet
```
## API Reference available on [Read the Docs](https://fathomnet-py.readthedocs.io/)
نیازمندی
| مقدار | نام |
|---|---|
| >=0.5.4,<0.6.0 | dataclasses-json |
| >=2.20.0,<3.0.0 | requests |
| >=4.6.0,<5.0.0 | lxml |
| >=0.1.2,<0.2.0 | coco-lib |
| >=3.37.0,<4.0.0 | progressbar2 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl fathomnet-0.6.0:
pip install fathomnet-0.6.0.whl
نصب پکیج tar.gz fathomnet-0.6.0:
pip install fathomnet-0.6.0.tar.gz