An open API service indexing awesome lists of open source software.

https://github.com/pyeve/eve-requests

Client SDK for RESTful web services powered by the Eve REST framework
https://github.com/pyeve/eve-requests

Last synced: 6 months ago
JSON representation

Client SDK for RESTful web services powered by the Eve REST framework

Awesome Lists containing this project

README

          

Eve-Requests
============
Client SDK for Eve-powered RESTful APIs.

Usage
-----

.. code-block:: python

from eve_requests import Client, Settings

settings = Settings()
settings.base_url = "https://eve-demo.herokuapp.com"

# or let the settings auto-configure by downloading and parsing
# the remote OpenAPI specification (needs Eve-Swagger extension
# on the server). Currently raises NotImplemntedError.
#
# settings = Settings.from_url('https://myapi/docs/swagger.json')

client = Client(settings)
json = {"firstname": "john", "lastname": "doe"}

r = client.post("people", json, auth=('user','pw'))

print(r.status_code) # 201
print(r.json()) # { ... }

Current State
-------------
(very) early development. Feedback and contributors welcome.

License
-------
Eve-Requests is a `Nicola Iarocci`_ open source project,
distributed under the `BSD license
`_.

.. _`Nicola Iarocci`: http://nicolaiarocci.com
.. _`funding page`: http://python-eve.org/funding