Skip to main content

A minimal, typed Python client for the BingBong API.

Project description

bingbong_api

A minimal, typed Python client for the (placeholder) BingBong API.

Note: This is a scaffold intended to be customized for the real BingBong API.

Installation

# From the project root
pip install -e .

Configuration

The client requires an API key. You can provide it in one of three ways:

  1. Pass api_key="..." to BingBongClient(...)
  2. Set the environment variable BINGBONG_API_KEY
  3. Store it in a .env file (see .env.example) and load it via your preferred method (e.g., python-dotenv)

If the key is missing, an exception with a clear, professional message is raised.

Usage

from bingbong_api import BingBongClient

client = BingBongClient()  # reads BINGBONG_API_KEY from env if not provided
res = client.get_placeholder(resource="status")
print(res.status_code, res.json())

echo = client.post_placeholder(resource="echo", json={"hello": "world"})
print(echo.status_code, echo.json())

Customization

  • Update base_url to the actual BingBong API origin.
  • Replace get_placeholder / post_placeholder with concrete endpoints.
  • Add pydantic or dataclasses to model request/response payloads if you want stronger typing.

License

MIT

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

bingbong_api-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

bingbong_api-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file bingbong_api-0.1.0.tar.gz.

File metadata

  • Download URL: bingbong_api-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for bingbong_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3f7fe4c9ec5c78a96af3598734aa4d330013ba54c3e5b6dcd8f441a89df2dfd5
MD5 337dcf976d999c81e7e5ad80f9e91b0f
BLAKE2b-256 487ab976cc4fb14a8e0c309fb08a35ea05577fe7151f6c042ea404d6673b72c6

See more details on using hashes here.

File details

Details for the file bingbong_api-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bingbong_api-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for bingbong_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe49db3bdc3c765539b69d791e35b2450080f4f87c11e7ced8ccd48d5280ed6c
MD5 a5b603c5be895158a4f3a7ad3fe589c1
BLAKE2b-256 da91747cca5ca6a15f0d6ecc52e8c25a458b185efe7ff93386a4d0eb468ea6a9

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