https://github.com/bruvellu/worms.py
Python library to access the World Register of Marine Species (WoRMS)
https://github.com/bruvellu/worms.py
biodiversity marine-biology marine-species taxonomy worms
Last synced: 4 months ago
JSON representation
Python library to access the World Register of Marine Species (WoRMS)
- Host: GitHub
- URL: https://github.com/bruvellu/worms.py
- Owner: bruvellu
- License: mit
- Created: 2017-08-05T22:09:04.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2023-04-07T14:39:04.000Z (about 3 years ago)
- Last Synced: 2024-04-16T01:25:03.678Z (about 2 years ago)
- Topics: biodiversity, marine-biology, marine-species, taxonomy, worms
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# :squid: `worms.py`
Python library to query the [World Register of Marine Species](http://www.marinespecies.org/) (WoRMS).
## Requirements
- [suds](https://pypi.org/project/suds/) (Lightweight SOAP client)
## Basic usage
```
>>> from worms import Aphia
>>> aphia = Aphia()
>>> results = aphia.get_aphia_records('Priapulus caudatus')
>>> print(results[0])
>>>
(AphiaRecord){
AphiaID = 101160
url = "https://www.marinespecies.org/aphia.php?p=taxdetails&id=101160"
scientificname = "Priapulus caudatus"
authority = "Lamarck, 1816"
taxonRankID = 220
rank = "Species"
status = "accepted"
unacceptreason = None
valid_AphiaID = 101160
valid_name = "Priapulus caudatus"
valid_authority = "Lamarck, 1816"
parentNameUsageID = 101095
kingdom = "Animalia"
phylum = "Priapulida"
cls = None
order = "Priapulomorpha"
family = "Priapulidae"
genus = "Priapulus"
citation = "Paulay, G. (2023). World List of Priapulida. Priapulus caudatus Lamarck, 1816. Accessed through: World Register of Marine Species at: https://www.marinespecies.org/aphia.php?p=taxdetails&id=101160 on 2023-03-03"
lsid = "urn:lsid:marinespecies.org:taxname:101160"
isMarine = 1
isBrackish = None
isFreshwater = None
isTerrestrial = None
isExtinct = None
match_type = "like"
modified = "2008-01-04T16:28:44.880Z"
}
```