Skip to content

presslabs/zipa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

69950f8 · Aug 31, 2021
May 9, 2017
Aug 9, 2016
Aug 31, 2021
Aug 31, 2021
Aug 31, 2021
Aug 9, 2016
Jul 9, 2014
Jul 25, 2014
Jan 26, 2018
Mar 12, 2015
Jul 25, 2014
May 17, 2017
Jul 24, 2014
Nov 21, 2017

Repository files navigation

zipa Build Status

Welcome to zipa

zipa is a magic pythonic REST client. For more information read the docs.

zipa was developed by the awesome engineering team at Presslabs, a Managed WordPress Hosting provider.

For more open-source projects, check Presslabs Code.

Instalation

pip install zipa

Examples

>>> from zipa import api_github_com as gh
>>> for repo in gh.users['tpope'].repos:
...     print(repo.name)

Under the hood zipa transforms your imports into clients. It follows a simple convention: HOSTNAME__PREFIX. For the hostname, single underscores are translated into dots and for the prefix into slashes.

For example: api_twitter_com__v1 becomes https://api.twitter.com/v1. The prefix part is optional.