apiclient
Project description
Custom apiclient
Install
pip install apiclient-gonzalo123
Usage
Init client
from apiclient import ApiClient
client = ApiClient(token='my_secret token', base='http://localhost:8000')
GET Request
data = client.get('/api/route', dict(param1='value1'))
POST Request (with parameters in the url)
data = client.post('/api/route', params=dict(param1='value1'))
POST Request (with parameters in the request body)
data = client.post('/api/route', body=dict(param1='value1'))
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 Distribution
Close
Hashes for apiclient-gonzalo123-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc753201f499fe92a146f0f8218375385b164e59d3adb0a0d606eade572a8f27 |
|
MD5 | b26ca81eca5dbb58776733913b99cc26 |
|
BLAKE2b-256 | 58e60836ed9f31b1b9f864bccd4be7873e56abbd92de06aa570cac705a376a5b |
Close
Hashes for apiclient_gonzalo123-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25ebf624d04294338ec5b9d000c07b4a08110f587510b92366b3d39616fc951 |
|
MD5 | 46bcc8de8ce23783a3ac5ab566a438b8 |
|
BLAKE2b-256 | c79e4f7a088b2fdabc5cc69d729b3ff46bc61756236e9fe670ded763e71e2da2 |