Skip to main content

BBClient

BBClient provides command interface for bitbake server.

The typical use case is as follows. You can do it via shell or python easily.

  • Get recipe variable value
  • Get layer info
  • Get image recipes
  • Get all the packages
  • Start a task of packages

For example, see below.
Please note that before using bbclient in shell, you have to initialize env by oe-init-build-env.

# Please note that before using bbclient in shell, you have to initialize env by oe-init-build-env.
$ source oe-init-build-env
$ bbclient find_best_provider gcc
[null, null, null, "/PATH/TO/POKY/meta/recipes-devtools/gcc/gcc_12.1.bb"]

You can do the same with python.

# get recipe file path for specified package
ret: List[str] = client.find_best_provider("gcc")
target_recipe_file_path: str = ret[3]

# parse the recipe file
data_store_index: int = client.parse_recipe_file(target_recipe_file_path)

# get variable in the recipe file
ret: Any = client.data_store_connector_cmd(data_store_index, "getVar", "PN")

System Requirements

  • python: 3.7 or later
  • yocto: dunfell or kirkstone or main

Please note that this command(and also bitbake) doesn't support dunfell with python3.10.
This is because collections.Iterable has not been removed, so dunfell with python3.10 will cause exception.

Installation

pip3 install bbclient

Document

Note For using with shell, we have not documented yet. Please see $bbclient --help.

Metadata

Release files for bbclient 0.8.0

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

Source distribution (sdist)

Source distribution for bbclient 0.8.0
File Size Uploaded Provenance Actions
bbclient-0.8.0.tar.gz 29.8 kB Without provenance Details for bbclient-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bbclient 0.8.0
File Interpreter ABI Platform Actions
bbclient-0.8.0-py3-none-any.whl Python 3 none any Details for bbclient-0.8.0-py3-none-any.whl

Total release size: 77.3 kB

Release files / bbclient-0.8.0.tar.gz

Download URL bbclient-0.8.0.tar.gz
Size 29.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0c441749003ae59cb40b22f8979556ce429528c5fc358c65acb6c9eb387eb758
BLAKE2b-256 checksum
How to use checksums
8bd68a83736f47fbb21f94821cc5c77b2045b35f9338f42558e29f2fee8d70e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.4

Release files / bbclient-0.8.0-py3-none-any.whl

Download URL bbclient-0.8.0-py3-none-any.whl
Size 47.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b51084e218b62fb61c23527265dabeb0b553ed1e91e6afabba659113eabfd12b
BLAKE2b-256 checksum
How to use checksums
edfcf533af2b7e30ee191eac0abc8cf7b9c0218b949e47cfcc271dfcfaaaf796
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.4

Security for bbclient 0.8.0

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