Install & Compatibility
Where this runs
tested against v1.2.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.9s · import 0.000s · 21MB
18MB installed
● package 18MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ApiClient
✓ from ubai_client import ApiClient
✗ from ubai_client import UbaiClient
Configuration
✓ from ubai_client import Configuration
ApiException
✓ from ubai_client import ApiException
Initialize client with API key and archive a binary file.
from ubai_client import UbaiClient
client = UbaiClient(api_key=os.environ.get('UBAI_API_KEY', ''))
result = client.archive('/path/to/binary')
print(result)
Debug
Known issues
breakingPackage renamed from 'ubai' to 'ubai-client' in v1.0.0. Update imports and requirements.fixReplace 'import ubai' with 'import ubai_client' and update requirements to 'ubai-client>=1.0.0'.
affects: < 1.0.0
gotchaAPI key must be set via environment variable or passed explicitly. Missing key raises UnauthorizedError.fixSet UBAI_API_KEY environment variable or pass api_key kwarg to UbaiClient.
affects: all
deprecatedMethod 'archive_file' renamed to 'archive' in v1.1.0.fixUse 'client.archive()' instead of 'client.archive_file()'.
affects: >= 1.0.0, < 1.1.0
Upgrade
Version history
1.2.1latest on PyPI · released Dec 9, 2025
Audit
Dependencies
requestsrequiredHTTP client for API calls