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
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
jkapis-0.0.2.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77091f5bb84228bf96f77e125fc72ab1e752cc742a6da91eed3ce0ae672b7846
|
|
| MD5 |
6aec5e8568f482b3a1d3c24e8041e35a
|
|
| BLAKE2b-256 |
101b4169777013ad59b97f74700cee9443a079fab630f71c135c0e0aa3523319
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b638398a228a05fbc8fb01c6cabc2c3d5dd27f27c797ddb1f6efc14ed51f618
|
|
| MD5 |
c919c688e57eb6937515604a1a5c790b
|
|
| BLAKE2b-256 |
40417bad7884895296732cdd03a79155543b3157555198ade46767365e17f5b5
|