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.
# 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 = pyapi.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.
# 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 = pyapi.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.1.tar.gz
(2.3 kB
view details)
Built Distributions
File details
Details for the file pythapi-0.0.1.tar.gz
.
File metadata
- Download URL: pythapi-0.0.1.tar.gz
- Upload date:
- Size: 2.3 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 | 958998cfb0c19083728a6ff0830ab176798c50f613d64b90f1790a6ac94309bf |
|
MD5 | 1c174367bcb2f807e257b849655c42e0 |
|
BLAKE2b-256 | 6957728ac3590b1e8012a7be3778f9be7b6dfc305fc249d7be59994ad12632ea |
File details
Details for the file pythapi-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pythapi-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 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 | 02a2428b01f04b8e9d5ef41ec7d805f34e383ee86516507fb35ccdfbc36a60aa |
|
MD5 | c151d4a64bcc029c9e7b20392d86e593 |
|
BLAKE2b-256 | c3bb7505f1e9817f5a89d671ab2983702d07c9f5130b394c0a2907a7ef9d6156 |
File details
Details for the file pythapi-0.0.1-py2-none-any.whl
.
File metadata
- Download URL: pythapi-0.0.1-py2-none-any.whl
- Upload date:
- Size: 3.6 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 | f108f7e14c7505363bf5fbced8b7abedbe3768626f086080f9f5937cfe471706 |
|
MD5 | e78ede7e87cabe131c7dcbdfe633244b |
|
BLAKE2b-256 | ded227b2b95277f0fdd041379314bb76b340fcc398b7edae20c69d91223cd739 |