Skip to content

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

License

Notifications You must be signed in to change notification settings

pyeve/eve-requests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eve-Requests

Client SDK for Eve-powered RESTful APIs.

Usage

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages