Skip to main content

Custom apiclient

dbutils

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'))

Metadata

Release files for apiclient-gonzalo123 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apiclient-gonzalo123 1.0.2
File Size Uploaded
apiclient-gonzalo123-1.0.2.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apiclient-gonzalo123 1.0.2
File Interpreter ABI Platform
apiclient_gonzalo123-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 kB

Release files / apiclient-gonzalo123-1.0.2.tar.gz

Download URL apiclient-gonzalo123-1.0.2.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
87c46d2c4400a0f8067b12cdb0e7a34b7cd1613af5c673817d49b6c69f1bbfff
BLAKE2b-256 checksum
How to use checksums
0e8623c49cada197db50684f340a03685db900db53f33cc236343034196f1ad6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / apiclient_gonzalo123-1.0.2-py3-none-any.whl

Download URL apiclient_gonzalo123-1.0.2-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ceeffe177a5b8502dbd1ff159da66adff11650056a9eaaac0fa66a1d9a50503
BLAKE2b-256 checksum
How to use checksums
25f3ec35b44f36a3717e5ca73a1a21a6a25eaaa717cb185cbd98aea0be82c99d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page