Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple API Wrapper

Project Description

Simple API Wrapper


Recently noticed a pattern and repeated pieces of code in Python API wrappers for simple requests and polling. A separate Python package will minimize code duplication and encourage de-coupling of logic from the API request functions.


At the command line:

$ easy_install apiwrapper

Or, if you have virtualenvwrapper installed:

$ mkvirtualenv apiwrapper
$ pip install apiwrapper

Getting started with a simple request

# as a helper class
from apiwrapper import APIWrapper

my_api = APIWrapper()
url = ''
resp = my_api.make_request(url=url)

# as a parent class
class GithubAPI(APIWrapper):
    def get_repos(self, username):
        Uses `make_request` method
        url = "{username}/repos".format(username=username)
        return self.make_request(url, method='get', headers=None, data=None, callback=None)

More features including polling

Read the docs:

Or use apiwrapper/ as a reference. Implementation is straightforward.


0.1.0 (2015-01-11)

  • First release on PyPI.
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
apiwrapper-0.1.8-py2.py3-none-any.whl (7.2 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Feb 9, 2017
apiwrapper-0.1.8.tar.gz (18.0 kB) Copy SHA256 Checksum SHA256 Source Feb 9, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting