PyOData: OData for Pythonistas

Python agnostic implementation of OData client library.

Supported features

  • OData V2

Basic usage

The only thing you need to do is to import the pyodata Python module and provide an object implementing interface compatible with Session from the library Requests.

import pyodata
import requests

HTTP_LIB = requests.Session()

northwind = pyodata.Client(SERVICE_URL, HTTP_LIB)

for customer in northwind.entity_sets.Customers.get_entities().execute():
    print(customer.CustomerID, customer.CompanyName)