Skip to content

Python class to query the API of GLEIF.org. On PyPi. Can also parse XML files downloaded from GLEIF.org.

License

Notifications You must be signed in to change notification settings

OrangeCardinal/pygleif

 
 

Repository files navigation

Coverage Status PyPI version Build Status

This is a Python class that queries the API of GLEIF.org to return data about a specific entity (corporation.) It can also parse the XML-files provided by GLEIF.

Usage if you query the API:

from pygleif import GLEIF

data = GLEIF('8RS0AKOLN987042F2V04')
print(data.registration.initial_registration_date)

1. How to use

Usage if you use the XML files:

from pygleif import GLEIFParseRelationshipRecord

# XML is the content (converted to text) of a <RelationshipRecord>
data = GLEIFParseRelationshipRecord(XML)
print(data.raw.Relationship.StartNode.NodeID.text) #  Uses BeautifulSoup to convert to object

There are also some examples available in the sources' example folder.

About

Python class to query the API of GLEIF.org. On PyPi. Can also parse XML files downloaded from GLEIF.org.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%