Skip to content
Python library to access the WoRMS web services.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
worms.py

README.md

worms.py

Python library to access the web services of the WoRMS database.

Code based on itis.py and the python client from WoRMS.

Requirements

  • SUDS (Lightweight SOAP client)

Basic usage

>>> from worms import Aphia
>>> aphia = Aphia()
>>> results = aphia.get_aphia_records('Priapulus caudatus')
>>> print(results)
>>>
    [(AphiaRecord){
       AphiaID = 101160
       url = "http://www.marinespecies.org/aphia.php?p=taxdetails&id=101160"
       scientificname = "Priapulus caudatus"
       authority = "Lamarck, 1816"
       rank = "Species"
       status = "accepted"
       unacceptreason = None
       valid_AphiaID = 101160
       valid_name = "Priapulus caudatus"
       valid_authority = "Lamarck, 1816"
       kingdom = "Animalia"
       phylum = "Cephalorhyncha"
       cls = "Priapulida"
       order = None
       family = "Priapulidae"
       genus = "Priapulus"
       citation = "van der Land, J.; Neuhaus, B. (2008). Priapulus caudatus Lamarck, 1816. Accessed through:  World Register of Marine Species at http://www.marinespecies.org/aphia.php?p=taxdetails&id=101160 on 2017-08-06"
       lsid = "urn:lsid:marinespecies.org:taxname:101160"
       isMarine = 1
       isBrackish = None
       isFreshwater = None
       isTerrestrial = None
       isExtinct = None
       match_type = "like"
       modified = "2008-01-04T17:28:45Z"
     }]
You can’t perform that action at this time.