1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
.. PyOData documentation master file, created by
sphinx-quickstart on Sat Jun 15 16:52:02 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
PyOData: OData for Pythonistas
==============================
.. image:: https://badge.fury.io/py/pyodata.svg
:target: https://pypi.org/project/pyodata/
.. image:: https://img.shields.io/pypi/pyversions/pyodata.svg
:target: https://pypi.org/project/pyodata/
.. image:: https://img.shields.io/pypi/l/pyodata.svg
:target: https://pypi.org/project/pyodata/
Python agnostic implementation of OData client library.
Supported features
------------------
- OData V2
Basic usage
-----------
.. _Requests: https://2.python-requests.org/en/master/
.. _Session: https://2.python-requests.org/en/master/user/advanced/#session-objects
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_.
.. code-block:: python
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/updating.rst
usage/deleting.rst
usage/function_imports.rst
usage/metadata.rst
usage/advanced.rst
usage/urls.rst
|