Skip to main content

Apps

Core App Classes

reachy_mini.ReachyMiniApp

Source

Base class for Reachy Mini applications.

Methods

run

Source

Run the main logic of the app.

Parameters:

NameTypeDescription
reachy_miniReachyMiniThe Reachy Mini instance to interact with.
stop_eventthreading.EventAn event that can be set to stop the app gracefully.

stop

Source

Stop the app gracefully.


wrapped_run

Source

Wrap the run method with Reachy Mini context management.


reachy_mini.apps.manager.AppManager

Source

Manager for Reachy Mini apps.

Methods

close

Source

Clean up the AppManager, stopping any running app.


current_app_status

Source

Get the current status of the app.


install_new_app

Source

Install a new app by name.


is_app_running

Source

Check if an app is currently running or stopping.


list_all_available_apps

Source

List available apps (parallel async).


list_available_apps

Source

List available apps for given source kind.


remove_app

Source

Remove an installed app by name.


restart_current_app

Source

Restart the current app.


start_app

Source

Start the app as a subprocess, raises RuntimeError if an app is already running.


stop_current_app

Source

Stop the current app subprocess.


update_app

Source

Update an installed app by reinstalling it from HuggingFace.

This preserves the original source info and reinstalls to get the latest version.

Parameters:

NameTypeDescription
app_namestrName of the app to update.
loggerlogging.LoggerLogger for progress output.

App Management

reachy_mini.apps.manager.AppState

Source

Status of a running app.


reachy_mini.apps.manager.AppStatus

Source

Status of an app.


reachy_mini.apps.manager.RunningApp

Source

Information about a running app.


App Information

reachy_mini.apps.AppInfo

Source

Metadata about an app.


reachy_mini.apps.SourceKind

Source

Kinds of app source.


App Assistant

Assistant Functions

reachy_mini.apps.assistant.validate_app_name

Source

Validate the app name.


reachy_mini.apps.assistant.is_git_repo

Source

Check if the given path is inside a git repository.


reachy_mini.apps.assistant.validate_location

Source

Validate the location where to create the app project.


reachy_mini.apps.assistant.validate_location_and_git_repo

Source

Validate the location where to create the app project, ensuring it's not in a git repo.


reachy_mini.apps.assistant.create_cli

Source

Create a new Reachy Mini app project using a CLI.


reachy_mini.apps.assistant.create

Source

Create a new Reachy Mini app project with the given name at the specified path.

Parameters:

NameTypeDescription
consoleConsoleThe console object for printing messages.
app_namestrThe name of the app to create.
app_pathPathThe directory where the app project will be created.

Returns:

TypeDescription
PathThe path to the created app project.

reachy_mini.apps.assistant.install_app_with_progress

Source

Install the app in a temporary virtual environment with a progress spinner.


reachy_mini.apps.assistant.check

Source

Check an existing Reachy Mini app project.

Parameters:

NameTypeDescription
consoleConsoleThe console object for printing messages.
app_pathstrLocal path to the app to check.

reachy_mini.apps.assistant.request_app_addition

Source

Request to add the new app to the official Reachy Mini app store.


reachy_mini.apps.assistant.try_to_push

Source

Try to push changes to the remote repository.


reachy_mini.apps.assistant.publish

Source

Publish the app to the Reachy Mini app store.

Parameters:

NameTypeDescription
consoleConsoleThe console object for printing messages.
app_pathstrLocal path to the app to publish.
commit_messagestrCommit message for the app publish.
officialboolRequest to publish the app as an official Reachy Mini app.
no_checkboolDon't run checks before publishing the app.
privatebool | NoneIf True, make private. If False, make public. If None, prompt.

App Sources

reachy_mini.apps.sources.hf_auth.save_hf_token

Source

Save a HuggingFace access token securely.

Validates the token against the Hugging Face API and, if valid, stores it using the standard Hugging Face authentication mechanism for reuse across sessions.

Parameters:

NameTypeDescription
tokenstrThe HuggingFace access token to save.

Returns:

TypeDescription
dictA dict containing: "status" ("success" or "error"), "username" (the associated Hugging Face username if successful), and "message" (an error description if unsuccessful).

reachy_mini.apps.sources.hf_auth.get_hf_token

Source

Get stored HuggingFace token.

Returns:

TypeDescription
str | NoneThe stored token, or None if no token is stored.

reachy_mini.apps.sources.hf_auth.delete_hf_token

Source

Delete stored HuggingFace token(s).

note

logout() without arguments logs out from all saved access tokens.


reachy_mini.apps.sources.hf_auth.check_token_status

Source

Check if a token is stored and valid.

Returns:

TypeDescription
dictStatus dict with is_logged_in and username.

reachy_mini.apps.sources.hf_space.list_available_apps

Source

List apps available on Hugging Face Spaces.


reachy_mini.apps.sources.hf_space.list_all_apps

Source

List all apps available on Hugging Face Spaces (including unofficial ones).


reachy_mini.apps.sources.local_common_venv.get_app_site_packages

Source

Public API to get the site-packages directory for a given app's venv.

info
  • For separate venvs: returns the app's venv site-packages
  • For shared environment (SDK mode): returns the current environment's site-packages

reachy_mini.apps.sources.local_common_venv.get_app_python

Source

Get the Python executable path for an app (cross-platform).

info
  • For separate venvs: returns the app's venv Python
  • For shared environment: returns the current Python interpreter

reachy_mini.apps.sources.local_common_venv.list_available_apps

Source

List apps available from entry points or separate venvs.


reachy_mini.apps.sources.local_common_venv.install_package

Source

Install a package given an AppInfo object, streaming logs.

Parameters:

NameTypeDescription
appAppInfoAppInfo with package details.
loggerlogging.LoggerLogger for progress output.
wireless_versionboolWhether running on wireless version.
desktop_app_daemonboolWhether running as desktop app daemon.
force_reinstallboolIf True, force reinstall even if already installed (for updates).

reachy_mini.apps.sources.local_common_venv.get_app_module

Source

Get the module name for an app without loading it (for subprocess execution).


reachy_mini.apps.sources.local_common_venv.uninstall_package

Source

Uninstall a package given an app name.


App Utilities

reachy_mini.apps.utils.running_command

Source

Run a shell command and stream its output to the provided logger.

Loading Comments...