Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.59 KB

index.rst

File metadata and controls

61 lines (42 loc) · 1.59 KB

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

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)

The User Guide

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