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
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
Built Distributions
File details
Details for the file pythapi-0.0.2.tar.gz
.
File metadata
- Download URL: pythapi-0.0.2.tar.gz
- Upload date:
- Size: 3.5 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 | 2f24ba1fbdb14736a38fa64372a6185fbc0e37572d8ec8fdfcdb3e112f9bd893 |
|
MD5 | 17ab10ef0e5319b13a8e8f39e58d4a57 |
|
BLAKE2b-256 | ada0ec28148c42ddba17ba3f53b79ef032f7c6d215fc4658a682db9f709c1985 |
File details
Details for the file pythapi-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pythapi-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.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 | 01d032183cda2b1cba784432e0955cc991ea40491df2a76c071b69662c847af4 |
|
MD5 | ac41e434709a36e46c8998a3f521f71e |
|
BLAKE2b-256 | 97c8afa1e7be97bdf36bb4a28a0967b1304319f2c1ce7b2b28aef226378027b0 |
File details
Details for the file pythapi-0.0.2-py2-none-any.whl
.
File metadata
- Download URL: pythapi-0.0.2-py2-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2
- 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 | 463d3bba355fa1f3427a1047411a7f4533fb73e2336484e7d7f2fb57e18d5596 |
|
MD5 | 440396737c1c6f5d1478bb39441a2b74 |
|
BLAKE2b-256 | 293009797d450a9f18138b786a722c9155a59f520370d99da1793fa64225c66e |