busybar-python-sdk
HTTP API for BUSY Bar web server
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 25.0.0
- Package version: 0.0.1
- Generator version: 7.25.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.10+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/nuxnik/busybar-python-sdk.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/nuxnik/busybar-python-sdk.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 | 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 | 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
- AccountBackend
- AccountInfo
- AccountLink
- AccountStatus
- AnimationElement
- AudioVolumeInfo
- AutoupdateSettings
- BleStatusResponse
- BusyBarSettings
- BusyProfile
- BusyProfileSlot
- BusyProfileTimerSettings
- BusySnapshot
- BusySnapshotInfinite
- BusySnapshotInterval
- BusySnapshotNotStarted
- BusySnapshotSimple
- BusySnapshotSnapshot
- BusyTimerInfiniteSettings
- BusyTimerIntervalSettings
- BusyTimerSimpleSettings
- ConnectRequestConfig
- ConnectRequestConfigIpConfig
- CountdownElement
- DisplayBrightnessInfo
- DisplayElement
- DisplayElements
- DisplayElementsElementsInner
- DumpLog200Response
- Error
- FileUpload
- GetUpdateChangelog200Response
- HttpAccessInfo
- ImageElement
- 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
Documentation For Authorization
Authentication schemes defined for the API:
ApiKeyAuth
- Type: API key
- API key parameter name: X-API-Token
- Location: HTTP header
Author
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file busybar_python_sdk-0.0.1.tar.gz.
File metadata
- Download URL: busybar_python_sdk-0.0.1.tar.gz
- Upload date:
- Size: 142.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcc20b66725e12f1b7dccaba4c421a6e579e93d99fa88b7215db44aa48c9aaf0
|
|
| MD5 |
c2e081653eba0e28512f58ffdf27527c
|
|
| BLAKE2b-256 |
60bfd686912932194027fb68fbac65a3cedbc11a77c6cdc9763f206027ae1b76
|
File details
Details for the file busybar_python_sdk-0.0.1-py3-none-any.whl.
File metadata
- Download URL: busybar_python_sdk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 301.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e45c4c9d9b32f26912eb1bce96ee0742c444ba4af92bb3817faf600878c5782f
|
|
| MD5 |
2229c981c3dc2ac2cec6987abe587d69
|
|
| BLAKE2b-256 |
14fb594f8acc6131a07f11f0f48fba2ba14667991824bf0023d0547cbd4c7ba2
|