busybar-python-sdk
HTTP API for BUSY Bar web server
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 27.5.1
- Package version: 27.5.1
- Generator version: 7.27.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.11+
Packaging uses standard [project] metadata and [dependency-groups] (PEP 621/735).
Install the package with python -m pip install .; install development dependencies
with Poetry 2.2 or newer using poetry install, or pip 25.1 or newer using
python -m pip install --group dev. The latter installs the group, not the package.
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import busybar_python_sdk
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import busybar_python_sdk
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import busybar_python_sdk
from busybar_python_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = busybar_python_sdk.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with busybar_python_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = busybar_python_sdk.AccountApi(api_client)
try:
# Get MQTT configuration
api_response = api_instance.get_account_backend()
print("The response of AccountApi->get_account_backend:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->get_account_backend: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountApi | get_account_backend | GET /api/account/backend | Get MQTT configuration |
| AccountApi | get_account_info | GET /api/account/info | Get linked account info |
| AccountApi | get_account_status | GET /api/account/status | Get MQTT status info |
| AccountApi | link_account | POST /api/account/link | Link device to account |
| AccountApi | set_account_backend | PUT /api/account/backend | Set MQTT configuration |
| AccountApi | unlink_account | DELETE /api/account | Unlink device from account |
| AssetsApi | clear_display | DELETE /api/display/draw | Clear display |
| AssetsApi | delete_app_assets | DELETE /api/assets/upload | Delete app assets |
| AssetsApi | draw_on_display | POST /api/display/draw | Draw on display |
| AssetsApi | play_audio | POST /api/audio/play | Play audio file |
| AssetsApi | stop_audio | DELETE /api/audio/play | Stop audio playback |
| AssetsApi | upload_asset_with_app_id | POST /api/assets/upload | Upload asset file with app ID |
| BLEApi | api_ble_disable_post | POST /api/ble/disable | Disable BLE |
| BLEApi | api_ble_enable_post | POST /api/ble/enable | Enable BLE |
| BLEApi | api_ble_pairing_delete | DELETE /api/ble/pairing | Remove pairing |
| BLEApi | api_ble_status_get | GET /api/ble/status | |
| BusyApi | get_busy_profile | GET /api/busy/profiles/{slot} | Get BUSY timer profile |
| BusyApi | get_busy_snapshot | GET /api/busy/snapshot | Get BUSY timer snapshot |
| BusyApi | set_busy_profile | PUT /api/busy/profiles/{slot} | Set BUSY timer profile |
| BusyApi | set_busy_snapshot | PUT /api/busy/snapshot | Set BUSY timer snapshot |
| InputApi | set_input_key | POST /api/input | Send input event |
| SettingsApi | api_name_get | GET /api/name | Get current device name |
| SettingsApi | api_name_post | POST /api/name | Set new device name |
| SettingsApi | create_access_token | POST /api/access/tokens | Create a new access token |
| SettingsApi | delete_all_access_tokens | DELETE /api/access/tokens | Revoke all access tokens |
| SettingsApi | get_access_tokens | GET /api/access/tokens | List all access tokens |
| SettingsApi | get_audio_volume | GET /api/audio/volume | Get audio volume |
| SettingsApi | get_display_brightness | GET /api/display/brightness | Get display brightness |
| SettingsApi | get_http_access | GET /api/access | Get HTTP API access over Wi-Fi configuration |
| SettingsApi | revoke_access_token | DELETE /api/access/tokens/{short_id} | Revoke an access token |
| SettingsApi | set_audio_volume | POST /api/audio/volume | Set audio volume |
| SettingsApi | set_display_brightness | POST /api/display/brightness | Set display brightness |
| SettingsApi | set_http_access | POST /api/access | Set HTTP API access over Wi-Fi configuration |
| SmartHomeApi | api_smart_home_pairing_delete | DELETE /api/smart_home/pairing | Erase all smart home links |
| SmartHomeApi | api_smart_home_switch_get | GET /api/smart_home/switch | Get state of emulated smart home switch |
| SmartHomeApi | api_smart_home_switch_post | POST /api/smart_home/switch | Set state of emulated smart home switch |
| SmartHomeApi | get_smart_home_commissioning_status | GET /api/smart_home/pairing | Smart home commissioning status |
| SmartHomeApi | start_smart_home_pairing | POST /api/smart_home/pairing | Link device to a smart home |
| StorageApi | create_storage_dir | POST /api/storage/mkdir | Create a directory on internal storage |
| StorageApi | get_storage_status | GET /api/storage/status | Show storage usage |
| StorageApi | list_storage_files | GET /api/storage/list | List files on internal storage |
| StorageApi | read_storage_file | GET /api/storage/read | Download file from internal storage |
| StorageApi | remove_storage_file | DELETE /api/storage/remove | Remove a file on internal storage |
| StorageApi | rename_storage_file | POST /api/storage/rename | Rename/move a file |
| StorageApi | write_storage_file | POST /api/storage/write | Upload file to internal storage |
| StreamingApi | api_screen_get | GET /api/screen | Get single frame for requested screen |
| StreamingApi | connect_web_socket | GET /api/status/ws | Device status streaming WebSocket endpoint |
| SystemApi | dump_log | POST /api/log_dump | Dump captured log |
| SystemApi | get_status | GET /api/status | Get device status |
| SystemApi | get_status_device | GET /api/status/device | Get device info |
| SystemApi | get_status_firmware | GET /api/status/firmware | Get firmware info |
| SystemApi | get_status_power | GET /api/status/power | Get power status |
| SystemApi | get_status_system | GET /api/status/system | Get system status |
| SystemApi | get_transport | GET /api/transport | Get device network connection info |
| SystemApi | get_version | GET /api/version | Get API version information |
| TimeApi | get_time | GET /api/time | Get current timestamp with timezone |
| TimeApi | get_time_timezone | GET /api/time/timezone | Get timezone |
| TimeApi | get_time_tzlist | GET /api/time/tzlist | Get list of supported time zones |
| TimeApi | set_time_timestamp | POST /api/time/timestamp | Set current timestamp |
| TimeApi | set_time_timezone | POST /api/time/timezone | Set timezone |
| UpdaterApi | abort_firmware_download | POST /api/update/abort_download | Abort ongoing firmware download |
| UpdaterApi | check_firmware_update | POST /api/update/check | Start firmware update check |
| UpdaterApi | get_autoupdate_settings | GET /api/update/autoupdate | Get autoupdate settings |
| UpdaterApi | get_firmware_update_status | GET /api/update/status | Get firmware update status |
| UpdaterApi | get_update_changelog | GET /api/update/changelog | Get update changelog |
| UpdaterApi | install_firmware_update | POST /api/update/install | Install firmware update |
| UpdaterApi | set_autoupdate_settings | POST /api/update/autoupdate | Set autoupdate settings |
| UpdaterApi | update_firmware | POST /api/update | Update firmware |
| WiFiApi | api_wifi_connect_post | POST /api/wifi/connect | |
| WiFiApi | api_wifi_disconnect_post | POST /api/wifi/disconnect | |
| WiFiApi | api_wifi_status_get | GET /api/wifi/status | |
| WiFiApi | get_wifi_networks | GET /api/wifi/networks |
Documentation For Models
- AccessToken
- AccessTokensCreateRequest
- AccessTokensInfo
- AccountBackend
- AccountInfo
- AccountLink
- AccountStatus
- AnimationElement
- AudioVolumeInfo
- AutoupdateSettings
- BleStatusResponse
- BusyBarSettings
- BusyProfile
- BusyProfileSlot
- BusyProfileTimerSettings
- BusySnapshot
- BusySnapshotInfinite
- BusySnapshotInterval
- BusySnapshotNotStarted
- BusySnapshotSimple
- BusySnapshotSnapshot
- BusyTimerInfiniteSettings
- BusyTimerIntervalSettings
- BusyTimerSimpleSettings
- ConnectRequestConfig
- ConnectRequestConfigIpConfig
- CountdownElement
- DeletionParameters
- DisplayBrightnessInfo
- DisplayElement
- DisplayElements
- DisplayElementsElementsInner
- DumpLog200Response
- Error
- FileUpload
- GetUpdateChangelog200Response
- HttpAccessInfo
- ImageElement
- InstallFirmwareUpdate400Response
- InstallFirmwareUpdate409Response
- InstallFirmwareUpdate503Response
- NameInfo
- Network
- NetworkInterfaceInfo
- NetworkResponse
- PlayAudio
- RectangleElement
- SmartHomePairingInfo
- SmartHomePairingInfoLatestPairingStatus
- SmartHomePairingPayload
- SmartHomeSwitchState
- Status
- StatusDevice
- StatusFirmware
- StatusPower
- StatusResponse
- StatusResponseIpConfig
- StatusSystem
- StorageDirElement
- StorageFileElement
- StorageList
- StorageListElement
- StorageStatus
- SuccessResponse
- TextElement
- TimestampInfo
- TimezoneInfo
- TimezoneListResponse
- UpdateStatus
- UpdateStatusCheck
- UpdateStatusInstall
- UpdateStatusInstallDownload
- VersionInfo
- WifiIpMethod
- WifiIpType
- WifiSecurityMethod
- XpmBitmapElement
Documentation For Authorization
Authentication schemes defined for the API:
ApiKeyAuth
- Type: API key
- API key parameter name: X-API-Token
- Location: HTTP header
Author
Request headers
Header names are compared case-insensitively in all Python client libraries.
Request headers are copied; supplying _headers does not change the caller's dict
or the client's shared defaults. The public _headers argument retains its dict
validation and existing value serialization. Pydantic can coerce mappings such as HTTPX Headers to a dict,
combining repeated fields into a single value; _headers does not provide a
repeated-field or list-of-pairs API.
Precedence, from lowest to highest:
_headers(within one dict, the last inserted case variant wins).- Explicit OpenAPI header parameters and generated
Content-Type(or_content_type). GeneratedAcceptis added only when neither_headersnor explicit header parameters contain anAcceptcase variant. ApiClient.default_headers(including headers set withset_default_header).- The client's
cookiesetting, forCookie. - Authentication headers. A non-empty
_request_authreplaces configured authentication for that call;{}retains configured authentication. Cookie authentication appends to the selectedCookievalue.
This retains the existing precedence for identically spelled names and extends it
to case variants. To override a generated content type, use _content_type;
client defaults still take precedence over it. The winning header's spelling and
value are retained for replacements. Cookie authentication uses the canonical
Cookie spelling and appends its value. Values containing legitimate
comma-separated lists are not split or deduplicated. This does not remove
duplicate values inside a header or change the handling of repeated fields
supplied directly to the transport.
Metadata
Release files for busybar_python_sdk 27.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| busybar_python_sdk-27.5.1.tar.gz | 150.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| busybar_python_sdk-27.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 468.6 kB
Release files / busybar_python_sdk-27.5.1.tar.gz
| Download URL | busybar_python_sdk-27.5.1.tar.gz |
|---|---|
| Size | 150.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c92196ecbc7513cb77985779ed8106b9051a739b212d118720d9b70d323cf79d
|
|
BLAKE2b-256 checksum How to use checksums |
f7d4d47e2505747d8baa4eb20978de3a2d98866372571a1624af6dcf048a7f99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.11
|
Release files / busybar_python_sdk-27.5.1-py3-none-any.whl
| Download URL | busybar_python_sdk-27.5.1-py3-none-any.whl |
|---|---|
| Size | 317.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f4423292576616287cd6648623ee007304047afe6b4b753c0e929a62bc0ea0a
|
|
BLAKE2b-256 checksum How to use checksums |
87f48136131e826d077d4406b1d5c0c8083173a6d53f44dbaba445f24a9c3ef7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.11
|
Security for busybar_python_sdk 27.5.1
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.