Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!


Project description

[![Coverage Status](](
[![PyPI version](](
[![Build Status](](

This is a Python class that queries the API of 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')

## 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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygleif, version 0.3.2
Filename, size File type Python version Upload date Hashes
Filename, size pygleif-0.3.2.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page