Skip to main content

A Pythonic Rest API client

Project description


Pythonic REST client

The code interacting with the remote API reads just like standard Python!

Restypy uses the awesome ‘requests’ library under the hood


Since REST APIs may contain URLs that may be invalid method names in Python, you will have to use the path=’1nvalidpath’ workaround to build the path. This approach is shown in the following example.


from restypy import API github = API(’’) # GET : response = github.users(path=’simula67’).events() # Response is a simple ‘requests’ response print response.json() # For HTTP methods other than GET, add a keyword argument ‘method’. Rest of the arguments are passed to ‘requests’ httpbin = API(’’) print’post’, data={‘test’: ‘hi’}).text

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

restypy-0.5.tar.gz (1.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page