Skip to main content
Restypy
=======

Pythonic REST client

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

Restypy uses the awesome 'requests' library under the hood

NOTE
====

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.

Examples
========

.. highlight:: python

from restypy import API
github = API('https://api.github.com')
# GET : https://api.github.com/users/simula67/events
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('http://httpbin.org')
print httpbin.post(method='post', data={'test': 'hi'}).text

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.6.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file restypy-0.6.tar.gz.

File metadata

  • Download URL: restypy-0.6.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for restypy-0.6.tar.gz
Algorithm Hash digest
SHA256 0112ffa6b4c308c538312650291391bef3e2fcf1f0c842701d56940d9d48de99
MD5 94714ac7dc3f364400ce8695f97edf10
BLAKE2b-256 6638759b2a21f58c8ac7dbf4d335be5d8dc679430d12ead56752661398ab8f29

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7

1 file

This release

0.6 This release

1 file

0.5

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page