Skip to main content

apiclient

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apiclient-gonzalo123-1.0.2.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

apiclient_gonzalo123-1.0.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

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

Hashes for apiclient-gonzalo123-1.0.2.tar.gz
Algorithm Hash digest
SHA256 87c46d2c4400a0f8067b12cdb0e7a34b7cd1613af5c673817d49b6c69f1bbfff
MD5 aa2f8f7f1a671e8c4ef45ff6ded484b6
BLAKE2b-256 0e8623c49cada197db50684f340a03685db900db53f33cc236343034196f1ad6

See more details on using hashes here.

File details

Details for the file apiclient_gonzalo123-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for apiclient_gonzalo123-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ceeffe177a5b8502dbd1ff159da66adff11650056a9eaaac0fa66a1d9a50503
MD5 a2eaab3a49699cb2f9c70f85e4f02b3f
BLAKE2b-256 25f3ec35b44f36a3717e5ca73a1a21a6a25eaaa717cb185cbd98aea0be82c99d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page