Skip to main content

A community driven Python library for working with BillingPlatform APIs.

Project description

billingplatform-py

Welcome! This is a community-driven Python library for interacting with BillingPlatform APIs! This project aims to provide a comprehensive and easy-to-use interface for developers working with BillingPlatform.

Installation

You can install the library using pip:

pip install billingplatform

Usage

While still under active development towards version 1.0, you can start using the library for its current functionality. Here's a basic example:

from billingplatform import BillingPlatform

# Initialize the API client (creates the session)
# Just in case it has to be said, don't hardcode your credentials in production code ;-)
bp = BillingPlatform(base_url="https://sandbox.billingplatform.com/myorg", username="myuser", password="mypassword")

# Fetch a list of accounts
try:
    response: dict = bp.query(sql="SELECT Id, Name, Status FROM ACCOUNT WHERE 1=1")
    accounts: list[dict] = response.get("queryResponse", []) # Strip out data from response

    for account in accounts:
        print(account)
except Exception as e:
    print(f"An error occurred: {e}")

Please note: The available methods and their functionalities are still being expanded. Refer to the documentation, source code, or tests for the most up-to-date usage examples.

Contributions

This is a community-driven project, and we welcome contributions! Whether you're fixing a bug, adding a new feature, improving documentation, or suggesting enhancements, your input is valuable.

If you encounter any issues or have suggestions, please don't hesitate to open an issue on our GitHub Issues page and fork the repository and create a pull request.

We're excited to have you as part of our community as we work towards a robust and complete version 1.0

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

billingplatform-0.3.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

billingplatform-0.3.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file billingplatform-0.3.0.tar.gz.

File metadata

  • Download URL: billingplatform-0.3.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for billingplatform-0.3.0.tar.gz
Algorithm Hash digest
SHA256 89a900fc74bfac024fbd1c7ad975572bb3d608c131918fce8af0042437eccef5
MD5 eec368e7a3c167c318c1e54fce5bd48d
BLAKE2b-256 0f198579af209f06de56b267e494a6c407514ba200ffea58c8748b22b5abbfc6

See more details on using hashes here.

File details

Details for the file billingplatform-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for billingplatform-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc29d35d28b8b517dd52b9b90d70fdd540a3b45c979b58e4453c7a5548736191
MD5 5f43995dfce396a3430376080fe4ceb8
BLAKE2b-256 ff614cb9a2938f767bfb18ec76e4edec96b66aaacd81fda0cb73aeefb7b25d62

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