Home
Softono
zipa

zipa

Open source Apache-2.0 Python
75
Stars
7
Forks
4
Issues
12
Watchers
4 years
Last Commit

About zipa

zipa is a Python REST API client that transforms Python imports into HTTP clients through a simple naming convention. It converts underscores in module names to dots in hostnames and double underscores to URL path prefixes, for example apitwittercomv1 becomes https://api.twitter.com/v1. This allows developers to interact with REST APIs using clean, intuitive Python syntax. Users import a hostname as a module, then access API endpoints as attributes and perform HTTP operations through method calls. The library handles request construction, response parsing, and JSON serialization automatically. zipa is useful for scripting, data fetching, API integration, and rapid prototyping against any RESTful web service without manual request boilerplate.

Platforms

Web Self-hosted

Languages

Python

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.