Python agnostic implementation of OData client library.
- OData V2
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)
.. toctree:: :maxdepth: 2 usage/initialization.rst usage/querying.rst usage/creating.rst usage/deleting.rst usage/function_imports.rst usage/metadata.rst usage/advanced.rst