Skip to main content

Unicboard billing api is available on PyPI:

Requires:

Python >=3.6

install:

python -m pip unicboard_billing_api

usage:

from unicboard_billing_sdk import BillingApiSdk

Api = BillingApiSdk(
    api_billing_url="unicboard url",
    api_token="yours token",
) 

get list devices

devices = Api.get_device_list_info() # default limit = 1000

devices = Api.get_device_list_info(limit: int, offset: int) #  for custom limit/offset

list_device_id = [device.id for device in devices] 
list_device_mac = [device.data_gateway_network_device.mac for device in devices]

get device by device_id

device = Api.get_device_info(UUID(device_id))

get device by device_id

devices_values = Api.get_device_value(
    devices_id=list_device_id,
    period_from: datetime,
    period_to: Optional[datetime],  # default now
)

Metadata

Release files for billing-api 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for billing-api 0.0.3
File Size Uploaded Provenance Actions
billing-api-0.0.3.tar.gz 4.2 kB Without provenance Details for billing-api-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for billing-api 0.0.3
File Interpreter ABI Platform Actions
billing_api-0.0.3-py3-none-any.whl Python 3 none any Details for billing_api-0.0.3-py3-none-any.whl

Total release size: 9.4 kB

Release files / billing-api-0.0.3.tar.gz

Download URL billing-api-0.0.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ee965fac094f38968ba091dce92624867c479e101d2c3a5ad07db2ad30a7d990
BLAKE2b-256 checksum
How to use checksums
c4a55eb7e37368b9d97da59997761bef239b3d3d41139473e4022bd883f89601
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release files / billing_api-0.0.3-py3-none-any.whl

Download URL billing_api-0.0.3-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e487d18512cf61d472b5bb3e39de705735ac88b7b428de8b8cde6d086bfcdf6
BLAKE2b-256 checksum
How to use checksums
8692837a1cf4e17ecbc57b5a2ea3de5794194cab0f1751bfb116dd62436f0971
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Security for billing-api 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page