Skip to main content

A sample Python package

Project description

jkapis

JK APIs - Sample Package

APIInterface

The APIInterface class allows you to interact with multiple APIs using a common interface.

Initialization

from jkapis import APIInterface

api = APIInterface(base_url="https://api.example.com", token="your_token_here")

Methods

  • get(endpoint, params=None): Sends a GET request to the specified endpoint.
  • post(endpoint, data=None): Sends a POST request to the specified endpoint.

Example Usage

# Initialize the API interface
api = APIInterface(base_url="https://api.example.com", token="your_token_here")

# Make a GET request
response = api.get("some/endpoint")
print(response)

# Make a POST request
response = api.post("some/endpoint", data={"key": "value"})
print(response)

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

jkapis-0.0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jkapis-0.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file jkapis-0.0.2.tar.gz.

File metadata

  • Download URL: jkapis-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for jkapis-0.0.2.tar.gz
Algorithm Hash digest
SHA256 77091f5bb84228bf96f77e125fc72ab1e752cc742a6da91eed3ce0ae672b7846
MD5 6aec5e8568f482b3a1d3c24e8041e35a
BLAKE2b-256 101b4169777013ad59b97f74700cee9443a079fab630f71c135c0e0aa3523319

See more details on using hashes here.

File details

Details for the file jkapis-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: jkapis-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for jkapis-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b638398a228a05fbc8fb01c6cabc2c3d5dd27f27c797ddb1f6efc14ed51f618
MD5 c919c688e57eb6937515604a1a5c790b
BLAKE2b-256 40417bad7884895296732cdd03a79155543b3157555198ade46767365e17f5b5

See more details on using hashes here.

Supported by

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