Skip to main content

No project description provided

Project description

Simple API Manager

Main class is APIManager which have two methods:

  • request_get(endpoint [, headers])
  • request_post(endpoint [, data, headers])

Usage

from api_manager import APIManager

manager = APIManager("EXAMPLE_URL")

response = manager.request_get("ENDPOINT") # returns request.Response object

response_post = manager.request_post("ENDPOINT",
    data={"number":20},
    headers={
        "Content-Type" : "text/json"
}) # returns request.Response object

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

apimanager_dm_2024-0.1.1.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

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

APIManager_DM_2024-0.1.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file apimanager_dm_2024-0.1.1.tar.gz.

File metadata

  • Download URL: apimanager_dm_2024-0.1.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for apimanager_dm_2024-0.1.1.tar.gz
Algorithm Hash digest
SHA256 afcaf1a0de97b2c56ac4fc807a3b2b7045f0f35fc051ec67efd972781e28e19c
MD5 1c95c6a5f656fe4027466cd5ad9e4432
BLAKE2b-256 e7b54a531d2c1ee2389511d86da292c96d099fd3535ef648fbf45b0ef14df2e3

See more details on using hashes here.

File details

Details for the file APIManager_DM_2024-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for APIManager_DM_2024-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa25bd696df44b80740c5c3482b43acf5374d611816fdfc3eb243c86a293f4a8
MD5 29cf6493d7d8d9991e7f5223097375bb
BLAKE2b-256 dca31152ac83d64d0fdb5d481778ebb8b023d5f04a0a81318f82db0a9960f6f7

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