Metadata-Version: 2.4
Name: apprc-core
Version: 0.39.0
Summary: Configuration, installation, and lifecycle management for Python applications.
Keywords: configuration,dotenv,runtime-config,typer>=0.26.5
Author: markur4
Author-email: markur4 <noreply@hisqu.de>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Dist: filelock>=3.32.7,<4
Requires-Dist: platformdirs>=4,<5
Requires-Dist: python-dotenv
Requires-Dist: pywin32>=311 ; sys_platform == 'win32'
Requires-Dist: typed-settings[dotenv]
Requires-Dist: packaging>=26.2,<27 ; extra == 'distribution'
Requires-Python: >=3.12
Project-URL: Homepage, https://github.com/HisQu/apprc
Project-URL: Repository, https://github.com/HisQu/apprc
Project-URL: Documentation, https://github.com/HisQu/apprc/tree/main/docs
Project-URL: Changelog, https://github.com/HisQu/apprc/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/HisQu/apprc/issues
Provides-Extra: distribution
Description-Content-Type: text/markdown

<!-- README EDITING CONTRACT
Adapt this README in place. Preserve its Buildben presentation, centered header,
badges, graphical abstract, heading hierarchy, spacing, and useful content.
Before editing, read "README maintenance" in docs/Development.md.
-->


<!-- ====================================================================== -->
<!-- --- URLs -->
[`typed-settings`]: https://typed-settings.readthedocs.io/en/stable/
[`python-dotenv`]: https://pypi.org/project/python-dotenv/
[`platformdirs`]: https://pypi.org/project/platformdirs/
[`filelock`]: https://pypi.org/project/filelock/
[Pydantic Settings]: https://docs.pydantic.dev/latest/concepts/pydantic_settings/
[uv]: https://docs.astral.sh/uv/
[PyApp]: https://ofek.dev/pyapp/latest/


<!-- ====================================================================== -->
<!-- == Header -->
<div align="center">


<!-- --- Title -->
<a id="project-overview"></a>
<a id="apprc-application-runtime-config"></a>

# `AppRC`


<!-- --- Badges -->

[![CI](https://github.com/HisQu/apprc/actions/workflows/ci.yml/badge.svg)](https://github.com/HisQu/apprc/actions/workflows/ci.yml)
[![License](https://img.shields.io/pypi/l/apprc)](LICENSE)
[![Python](https://img.shields.io/pypi/pyversions/apprc)](https://pypi.org/project/apprc/)
[![PyPI](https://img.shields.io/pypi/v/apprc)](https://pypi.org/project/apprc/)

[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Pyright](https://img.shields.io/badge/type%20checked-pyright-blue)](https://microsoft.github.io/pyright/)
[![pytest](https://img.shields.io/badge/tested%20with-pytest-0A9EDC)](https://docs.pytest.org/)

</div>


<!-- --- Abstract -->

AppRC provides configuration, installation, and lifecycle management for Python
applications. Declare typed settings, opt into independent resources such as
config or cache, and add the interfaces your users need. When you ship a native
installer, AppRC can also register the command, keep the app's resource locations
across updates, and provide repair and uninstall.


<!-- --- Graphical Abstract -->

<br>

| ![AppRC setting layers, optional workspaces, and application code](https://raw.githubusercontent.com/HisQu/apprc/main/docs/assets/apprc-abstract-configuration-overview.svg) |
|:--:|
| **Fig. 1 - Graphical Abstract:** AppRC resolves typed settings from layered sources, applies optional workspace overrides, and shares one declaration across application code and configuration tools. |

<br>

---


<!-- ====================================================================== -->
<!-- == Reader journeys -->

| Use the SDK | Ship an application | Use an installed application |
| --- | --- | --- |
| [Choose your components](#install-the-apprc-sdk), [load settings](#load-settings), and [connect your existing tools](#works-with-your-existing-application). | [Prepare a release](#ship-an-application), [build its installers](#build-a-release-package), and [check its lifecycle](#verify-installation-update-and-removal). | [Install the application](#choose-an-installation-route), [launch it](#run-the-application), and [manage updates and removal](#maintain-the-application). |

<br>

<!-- ====================================================================== -->
### Table of Contents

1. [`AppRC`](#apprc)
2. [Why AppRC?](#why-apprc)
3. [Installation](#installation)
   1. [Install the AppRC SDK](#install-the-apprc-sdk)
   2. [Install from a Cloned Repository](#install-from-a-cloned-repository)
   3. [Uninstall](#uninstall)
4. [Usage](#usage)
   1. [Load settings](#load-settings)
   2. [Choose application paths](#choose-application-paths)
   3. [Save user settings](#save-user-settings)
   4. [Add terminal commands](#add-terminal-commands)
   5. [Add a Gradio settings page](#add-a-gradio-settings-page)
   6. [Works with your existing application](#works-with-your-existing-application)
5. [Ship an application](#ship-an-application)
   1. [Build a release package](#build-a-release-package)
   2. [Verify installation, update, and removal](#verify-installation-update-and-removal)
   3. [Publish one-line install scripts](#publish-one-line-install-scripts)
6. [Use an installed application](#use-an-installed-application)
   1. [Choose an installation route](#choose-an-installation-route)
   2. [Run the application](#run-the-application)
   3. [Maintain the application](#maintain-the-application)
   4. [Try a preview beside the regular application](#try-a-preview-beside-the-regular-application)
   5. [Review removal and keep configuration](#review-removal-and-keep-configuration)
7. [Documentation](#documentation)

---


<!-- ====================================================================== -->
<br>

# Why AppRC?

[Pydantic Settings], [`typed-settings`], [uv], and [PyApp] provide useful
foundations for configuration, dependency management, and executable delivery.
AppRC links those tools through one application declaration that supplies
settings, resource locations, and installation identity.

| Define once | Reuse across the application |
| --- | --- |
| [Settings and field metadata](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#config-sections-and-fields) | Typed application values, validation, help, settings editors, and source diagnostics. |
| [Application resources](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#application-paths) | Known configuration, appdata, cache, and state locations with explicit ownership. |
| [Installation identity and placement](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#installation) | Installed commands, runtime replacement, inspection, and removal. |

Your application keeps its business logic, data models, and interface. AppRC
provides the configuration and lifecycle operations around them, with explicit
[hooks for application-specific behavior](https://github.com/HisQu/apprc/blob/main/docs/References.md#application-hooks-and-command-dispatch).

<!-- ====================================================================== -->
<br>

# Installation

<br>

<a id="one-line-install"></a>

## Install the AppRC SDK

**Choose what your application needs.** These commands are for application
developers. If you received an application, follow its
[installation instructions](#use-an-installed-application).

The SDK requires Python 3.12 or newer.

| You need | Install | Includes |
| --- | --- | --- |
| Configuration and management APIs | `python -m pip install apprc-core` | Typed settings and noninteractive path and maintenance APIs. |
| Terminal commands and settings editing | `python -m pip install apprc` | The core, Typer integration, prompts, and the Textual editor. |
| An embedded browser settings editor | `python -m pip install apprc-gui` | The core and the Gradio editor. |

Choose paths, saved preferences, workspaces, and managed distribution separately.
A settings-only application needs no managed files; a cache-only application
needs no configuration directory. The [capability model](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#optional-capabilities)
and [example selector](https://github.com/HisQu/apprc/blob/main/docs/EXAMPLES.md#choose-a-setup) show the combinations.

Both `apprc-core` and `apprc` use `import apprc`. The GUI provides
`from apprc_gui import ConfigEditor`. Terminal and GUI distributions depend on
the matching core release and can be used together.

These commands install published SDK releases. This README and the linked
source guides describe `main`; an application's installer includes the
features supplied by the release that built it. See
[release and upgrade guidance](#release-context-and-upgrades).

<br>

## Install from a Cloned Repository

Follow the [development environment](https://github.com/HisQu/apprc/blob/main/docs/Development.md#environment) instructions
for editable installs of the core and optional terminal/GUI distributions.
Ordinary pip installations do not require uv.

<br>

## Uninstall

To remove the SDK packages from the Python environment where you installed them:

```shell
python -m pip uninstall apprc apprc-gui apprc-core
```

Remove only the distributions you no longer need. Keep `apprc-core` when another
installed application depends on it. SDK package removal leaves application
resources in place; an application's
[uninstall workflow](#review-removal-and-keep-configuration) handles its program
and managed resources.


<!-- ====================================================================== -->
<br>

# Usage

<br>

## Load settings

**Give a setting one definition that application code and configuration tools
can share.**

Create an [`AppRC`](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#apprc), register a
[config section](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#config-sections-and-fields), and resolve
typed values. This complete example prints `10`:

```python
import apprc as rc

MyRC = rc.AppRC(app_id="yourapp")

@MyRC.config("client", prefix="YOURAPP_")
class ClientSettings(rc.Config):
    timeout: int = rc.field(
        "YOURAPP_TIMEOUT",
        default=30,
        description="Seconds to wait for a response.",
    )

resolved = MyRC.resolve(environment={"YOURAPP_TIMEOUT": "10"})
settings = resolved.build(ClientSettings)
print(settings.timeout)
```

`resolve()` captures the configuration sources; `build()` converts values and
validates required fields. Resolution leaves files and `os.environ` unchanged.
[Provenance](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#provenance) records where a value came from,
so a surprising setting has an explanation.

Add [dotenv files](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#load-dotenv-files) or
[packaged defaults](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#ship-defaults-with-the-application)
as needed. Related sections can share a
[config bundle](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#pass-several-settings-sections-together),
and [temporary overrides](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#reload-settings-or-use-temporary-overrides)
let one operation use different values without rewriting saved preferences.

<br>

## Choose application paths

**Know where the application's files belong.** Enable `config`, `appdata`,
`cache`, and `state` independently. This complete example declares only a cache:

```python
import apprc as rc

MyRC = rc.AppRC(
    app_id="yourapp",
    paths=rc.Paths(cache=True),
    layout=rc.Layout.native(),
)

paths = MyRC.paths()                   # inspect without creating directories
cache_dir = MyRC.ensure_path("cache")  # initialize and record ownership
```

[`Layout.native()`](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#choose-and-initialize-application-paths)
uses platform user locations; `Layout.single_root(root)` groups enabled
resource directories. Managed [installation](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#installation)
retains the selected placement. Runtime and installation-support locations
remain separate. Optional [workspaces](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#workspaces) select
working directories and configuration overrides without relocating application
resources.

<br>

## Save user settings

**Let users keep their choices between runs.** Declare
`paths=rc.Paths(config=True)` and `user_dotenv=rc.UserDotenv()` to save user
overrides in `apprc.user.env`. Obtain a
[`ConfigManager`](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#configmanager) with `MyRC.manage()` for
inspection, setup, and reviewed edits.

AppRC preserves unrelated dotenv entries and comments when editing settings.
Its editors use the declared types, choices, help, and editability metadata.
Fields marked `restart_required=True` tell users when a saved change needs a
restart. Declared secrets are masked in AppRC displays and saved in private
[secret companion files](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#secret-companions).

Follow the [saved-preference guide](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#save-a-user-preference)
for a complete example, or use [workspace settings](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#select-a-workspace)
when different projects need different overrides.

<br>

## Add terminal commands

Mount configuration and maintenance commands alongside the application's Typer
commands. This integration excerpt assumes your application exposes `MyRC`:

```python
import apprc as rc
import typer
from my_app.config import MyRC

app = typer.Typer(cls=rc.cli.AppRCRootGroup)
rc.cli.mount_app_cli(app, MyRC)
```

The [complete Typer example](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#add-configuration-commands-to-typer)
shows settings edits and inspection. `app paths` and `app doctor` are available;
other commands follow declared capabilities. Opting into installation management
adds editable registration and maintenance; managed installation uses native
setup or an explicit installer delegate. Resource operations require
[application maintenance handlers](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#supply-application-maintenance-operations).

The [command reference](https://github.com/HisQu/apprc/blob/main/docs/References.md#terminal-commands) covers help,
grouping, and runtime options. An optional
[Textual launcher](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#launch-the-optional-textual-application-screen)
provides a management screen.

<br>

## Add a Gradio settings page

**Reuse the same settings declaration in the application's browser interface.**
Embed the editor in your existing Gradio `Blocks`. This excerpt uses a
configuration-enabled `MyRC` from your application:

```python
import gradio as gr
from apprc_gui import ConfigEditor
from my_app.config import MyRC

with gr.Blocks() as page:
    with gr.Tab("Settings"):
        ConfigEditor(MyRC.manage()).render()
```

The application owns the page, server, and launch behavior. For registry-backed
workspaces, pass `workspace_manager=MyRC.workspaces()` to `ConfigEditor`.
The [Gradio guide](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#add-a-gradio-settings-page)
covers the complete integration and initialization behavior.

<br>

## Works with your existing application

| Existing tool or component | How AppRC fits |
| --- | --- |
| **Pydantic models** | Pass resolved settings into existing application or API models through explicit construction or attribute-based validation. |
| **Typer** | [Mount AppRC commands](#add-terminal-commands) alongside application commands. |
| **Textual and Gradio** | Use the [terminal editor](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#inspect-and-edit-settings-in-the-terminal) or [embed Gradio controls](#add-a-gradio-settings-page) driven by the same fields. |
| **Dependencies using AppRC** | [Map dependency settings](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#import-settings-from-a-dependency) into fields owned by the parent application. |
| **Other runtimes and environment-based libraries** | Share dotenv configuration or [explicitly export file-contributed values](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#supply-settings-to-environment-only-code) into the process environment for those components. |

For a project that already uses Pydantic, the following continues the
[settings example](#load-settings). Matching attributes become validated model
values through [Pydantic's public API](https://docs.pydantic.dev/latest/concepts/models/#arbitrary-class-instances):

```python
from pydantic import BaseModel

class ClientOptions(BaseModel):
    timeout: int

options = ClientOptions.model_validate(settings, from_attributes=True)
assert options.timeout == 10
```

This is an explicit value handoff. AppRC's registered settings classes remain
`rc.Config` or `rc.ConfigBase`; the existing Pydantic model keeps its own schema.


<!-- ====================================================================== -->
<br>

# Ship an application

<br>

## Build a release package

The distribution workflow packages a committed project snapshot and `uv.lock`
into a native setup executable. After verifying that executable, the recipient
runs it to prepare the locked runtime and publish the application command.


To add distribution to an existing application:

1. Declare the runtime and command metadata in `pyproject.toml` using the
   [native application declarations](https://github.com/HisQu/apprc/blob/main/docs/Development.md#native-application-frontends).
2. Compose the public [snapshot and native distribution builders](https://github.com/HisQu/apprc/blob/main/docs/References.md#distribution-generation)
   in your application's authored build module, and register its authoring backend.
3. Prepare the [native setup toolchain](https://github.com/HisQu/apprc/blob/main/docs/Development.md#native-setup-toolchain)
   and commit the source and lockfile you want to distribute.
4. Build and check the setup for the chosen targets.

For a configured application whose command is `yourapp`, run these from its checkout:

```shell
uv run --locked yourapp dist build -t
uv run --locked yourapp dist check -t
```

`-t` selects the current platform. Final setup executables and `SHA256SUMS`
appear in ignored `dist/`; build intermediates stay in `.cache/apprc/`.
Follow the [release package guide](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#prepare-a-release-package)
for target requirements and artifact verification. Compiler failures include
Cargo diagnostics in the reported error.

For applications with a static web frontend, prepare the assets during authoring
and include them in the project snapshot. Recipients then use those built
assets without installing the frontend build tools. Dependency acquisition
follows uv and may require network access or private repository credentials.

<br>

## Verify installation, update, and removal

**Check the experience your users will actually receive.** In a checkout with
distribution authoring and installation management enabled, `dist test` guides
you through the selected lifecycle:

| Command | What it exercises |
| --- | --- |
| `yourapp dist test` | Register an editable installation, check it, and uninstall it. |
| `yourapp dist test --managed` | Install a built release, check it, and uninstall it. |
| `yourapp dist test --update-from OLD_SETUP` | Install the supplied older setup, update to the current checked setup, verify, and uninstall. |

Run these through `uv run --locked` in the application checkout. The workflow
performs real installation and removal and writes its report under
`.cache/apprc/dist-test/`. Automated checks and manual observations are recorded
separately. The [validation guide](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#validate-installation-on-your-machine)
explains the prompts, update checks, and reports.

<br>

## Publish one-line install scripts

Publish the setup executables and `SHA256SUMS` as application release assets.
You can also generate **One-line install scripts (OLIS)** for Bash and PowerShell
and host them at a trusted URL. For a public GitHub release:

**Bash**

```bash
RELEASE_PUBLIC=true uv run --locked yourapp dist build --olis-repo OWNER/REPO
```

**PowerShell**

```powershell
$env:RELEASE_PUBLIC = "true"
uv run --locked yourapp dist build --olis-repo OWNER/REPO
```

Private releases use `RELEASE_PUBLIC=false` and require authenticated GitHub
access. Supply the application's release repository with `--olis-repo` or
`RELEASE_REPO_OLIS`. The published script selects, downloads, verifies, and
launches setup from the latest published release. For an analysis tied to a
specific release, share that release's identified setup. See the
[script generation guide](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#generate-one-line-install-scripts).


<!-- ====================================================================== -->
<br>

# Use an installed application

<br>

## Choose an installation route

The application publisher supplies the download, command name, and setup
instructions. Choose the route matching what you received:

| What you have | Route | Result |
| --- | --- | --- |
| A published install command | [One-line installer (OLI)](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#run-a-published-installer) | Download, verify, and run the released setup. |
| A downloaded setup executable | [Released Binary Executable (RBE)](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#run-a-published-installer) | Install the release directly. |
| A development checkout to keep editing | [Editable Source Checkout (eSC)](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#install-from-a-checkout) | Register the checkout's command and reuse its existing environment. |
| A checkout from which to install a release | [Source Build (SB)](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#install-from-a-source-build) | Build or reuse the setup, then install a release. |

Native setup shows the [installed and incoming versions](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#update-an-application)
before reporting its resolved paths, result, and application-supplied next step.
On Windows, a double-clicked setup keeps its result visible until you press Enter.

<br>

## Run the application

Use the installed command or an installed shortcut. The application chooses
what a bare command does, such as opening a browser interface or starting a
local server.

Setup can create a desktop shortcut; editable registration also accepts
`yourapp app install -e --desktop`. If setup changed user PATH, open a new terminal
before using the command. The [launch guide](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#run-the-installed-application)
covers command publication, shortcuts, and Windows application registration.

<br>

## Maintain the application

### Update the application

From an installation that supports updates, stop the application and run:

```shell
yourapp app update
```

The shorter `yourapp update` alias is enabled by default. A host with its own
root `update` command can set `AppRC(update_alias=False)` and keep the nested
`yourapp app update` command.

Managed updates use the publisher's configured release source. You can also
run a newer verified setup. The [update guide](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#update-an-application)
explains release selection, version checks, and the Git/uv workflow for
editable checkouts. Update support depends on the version the application ships.

### Keep the installation's saved placement

Managed setup prepares and validates a replacement runtime before activating it.
Successful activation keeps the saved resource locations. A failed candidate
is not activated; AppRC restores its changes or reports the recovery state.
Application-specific data migrations and external service effects remain the
application's responsibility.


The [installation explanation](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md#activation-repair-and-rollback)
describes activation, recovery, and retained runtimes.

### Inspect before choosing a recovery action

Use `yourapp app paths --json` to inspect placement and `yourapp app doctor --json`
for structured diagnostics. The [inspection and repair guide](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#inspect-or-repair-installation)
explains which recovery action applies. Managed `app repair` rebuilds the
recorded project without selecting a newer source or changing its placement.

<br>

## Try a preview beside the regular application

An opted-in preview has its own application identity, command, registration,
and managed resources. It can run alongside the regular installation.

| Command | Result |
| --- | --- |
| `<setup> --preview` | Install or update the preview and leave it installed. |
| `<setup> --smoke` | Install a fresh preview, verify its runtime, and wait for uninstall to finish. |
| `<preview-command> app uninstall` | Remove the preview through its ordinary uninstall workflow. |

An opted-in checkout also offers these options in `yourapp app install --help`
for a [Source Build](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#install-from-a-source-build).
For applications that run servers, give regular and preview instances different
configurable TCP ports or socket paths. The application also owns its external
service and shared database settings.

Follow the [preview guide](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#install-a-preview-or-run-a-smoke-test)
for shell-specific commands and smoke requirements. Authors should also follow
the [preview identity and endpoint policy](https://github.com/HisQu/apprc/blob/main/docs/Development.md#verify-an-opted-in-preview-identity).

<br>

## Review removal and keep configuration

Stop the application, including running servers. For an installed application
named `yourapp`:

```shell
yourapp app uninstall --keep-config --dry-run
yourapp app uninstall --keep-config
```

The dry run shows **Delete** and **Keep** targets. `--keep-config` retains
configuration, including saved settings and secrets, for a later reinstall.
An update keeps configuration in place. An uninstall that removes configuration
leaves the next install to configure the application again.


Interactive uninstall offers to keep existing configuration. Unattended
`--yes` removes configuration unless `--keep-config` is also supplied.
Appdata, cache, and state remain removal targets. Back up needed application
data outside the listed targets before confirming removal. Editable uninstall
preserves the checkout and development environment by default.

The [removal guide](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#remove-a-managed-program)
defines the retention choices, ownership checks, and explicit repository removal.


<!-- ====================================================================== -->
<br>

# Documentation

### Using the project

- [Documentation](https://github.com/HisQu/apprc/blob/main/docs/README.md): Choose a reader journey and find the right page.
- [How-to user guides](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md): Complete tasks with independent examples.
- [Examples](https://github.com/HisQu/apprc/blob/main/docs/EXAMPLES.md): Choose and run complete application setups.
- [Explanations](https://github.com/HisQu/apprc/blob/main/docs/Explanations.md): Understand components and their relationships.
- [References](https://github.com/HisQu/apprc/blob/main/docs/References.md): Look up APIs, files, commands, and exact behavior.

### Contributing and maintaining

- [Development](https://github.com/HisQu/apprc/blob/main/docs/Development.md): Change, verify, build, and release AppRC.
- [Documentation checks](https://github.com/HisQu/apprc/blob/main/docs/Development.md#documentation-checks) and [README maintenance](https://github.com/HisQu/apprc/blob/main/docs/Development.md#readme-maintenance): Preserve the documentation contracts and Buildben presentation.
- [Changelog](https://github.com/HisQu/apprc/blob/main/CHANGELOG.md): Release history and migration requirements.

<a id="main-dependencies"></a>

### Built on

- **[`typed-settings`]**: Typed conversion and validation.
- **[`python-dotenv`]**: Dotenv input.
- **[`platformdirs`]**: Native per-user application paths.
- **[`filelock`]**: Serialized persistent configuration and resource operations.
- **[uv] and [PyApp]**: Dependency installation and native runtime bootstrapping.

### Release context and upgrades

Existing integrations should follow the
[migration guide](https://github.com/HisQu/apprc/blob/main/docs/How-To-User-Guides.md#migrate-existing-applications),
including the 0.32 API and on-disk configuration changes. AppRC does not
automatically move or convert old user files; preserve them and configure
the new paths deliberately.

CI runs on Ubuntu for core Python 3.12, 3.13, and 3.14 and GUI/browser Python
3.12. Native platform follow-ups are tracked in the
[platform status](https://github.com/HisQu/apprc/blob/main/BACKLOG.md#p3--e1-tooling---windows-and-macos-installation-validation-is-deferred)
and [shortcut validation](https://github.com/HisQu/apprc/blob/main/BACKLOG.md#p3--e3-bug-risk---verify-managed-desktop-shortcuts-on-windows)
entries.
