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)
```
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
Release history Release notifications | RSS feed
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.0.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file pythapi-0.0.0.tar.gz
.
File metadata
- Download URL: pythapi-0.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8174dd27661617e2972c2d25da89ac5742d42178567416f7fcf4458ad81b2d01 |
|
MD5 | f41642d0330af34d881f8b0124a6ce60 |
|
BLAKE2b-256 | 95514cc4f51ce35be625d0c7ad42284213e8c5ed57e18a6ec46d614b7830944d |
File details
Details for the file pythapi-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: pythapi-0.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c841c0faef57bbdfdc32e03dd33766532ba7eeb9eef72e13a9c1fe010a7c9ab3 |
|
MD5 | ec80fce526a3fab2c3c48da0e31157f2 |
|
BLAKE2b-256 | d8e4ab3a91be7d1aaed4afdb2bfdbe52a6006a5261f165947e20da27e5015a9b |