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
- Host: GitHub
- URL: https://github.com/pyeve/eve-requests
- Owner: pyeve
- License: other
- Created: 2018-08-30T09:13:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-10T15:38:32.000Z (over 7 years ago)
- Last Synced: 2025-06-24T10:50:07.082Z (7 months ago)
- Language: Python
- Homepage: http://python-eve.org
- Size: 67.4 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
- Authors: AUTHORS
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