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
File details
Details for the file apiclient-gonzalo123-1.0.2.tar.gz
.
File metadata
- Download URL: apiclient-gonzalo123-1.0.2.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87c46d2c4400a0f8067b12cdb0e7a34b7cd1613af5c673817d49b6c69f1bbfff |
|
MD5 | aa2f8f7f1a671e8c4ef45ff6ded484b6 |
|
BLAKE2b-256 | 0e8623c49cada197db50684f340a03685db900db53f33cc236343034196f1ad6 |
File details
Details for the file apiclient_gonzalo123-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: apiclient_gonzalo123-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ceeffe177a5b8502dbd1ff159da66adff11650056a9eaaac0fa66a1d9a50503 |
|
MD5 | a2eaab3a49699cb2f9c70f85e4f02b3f |
|
BLAKE2b-256 | 25f3ec35b44f36a3717e5ca73a1a21a6a25eaaa717cb185cbd98aea0be82c99d |