Skip to main content

A micro framework for API calls

Project description

pythapi

pythapi is a micro framework written in Python to perform API calls. Currently it is a work in progress and all contributation are welcome.

Contributing

Up to the challenge making this micro framework even better? Fork the repository and checkout the devel branch for local development.

Ready for a merge? Create a merge request from your devel branche to the original devel branche.

Installation

pythapi is distributed through pypi and can be install using pip for python 2 and 3.

pip install pythapi
pip3 install pythapi

Getting started example

import urllib3
import pythapi

# Disable certificate warnings and connect to destination API host
urllib3.disable_warnings()

# Specify the destination host and the base URL.
apiEndpoint = pythapi.Connect('localhost', '/base/api/url')

# Get all users
# This will perform a GET request using the URL https://localhost/base/api/url/users
apiEndpoint.get(/users)

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

pythapi-0.0.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distributions

pythapi-0.0.2-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

pythapi-0.0.2-py2-none-any.whl (5.0 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page