PyOData: OData for Pythonistas

https://badge.fury.io/py/pyodata.svg https://img.shields.io/pypi/pyversions/pyodata.svg https://img.shields.io/pypi/l/pyodata.svg

Python agnostic implementation of OData client library.

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

SERVICE_URL = 'http://services.odata.org/V2/Northwind/Northwind.svc/'
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)