Quick start
Install tappack from PyPI:
pip install tappack
The repository contains a sample project with two named dependencies. From the examples directory, package the development channel to use its local tools override:
cd docs/examples
tappack --module-path sample_app --output ./sample_app.tapp --channel-id development
The command writes sample_app.tapp in the current directory. The manifest, Berry sources, and generated autoexec.be are stored in the archive. Dependencies are placed under their name: helper_package/ comes from the local shared_library directory, and tools_package/ uses the local development_tools directory because the development override is selected. Without that channel, tools_package/ comes from the GitHub release asset.
The example manifest is a real file used by the command above:
name: sample_app
metadata:
version: 2.3.4
autoexec:
import: false
.channels:
- channel: development
import: true
dependencies:
# This local package is always included under helper_package/.
- name: helper_package
source:
.type: LocalPath
path: shared_library
# Use the released tools package by default; replace it with a local copy for development.
- name: tools_package
source:
.type: GitHubReleaseAsset
org: fmtr
repo: tools.be
filename: tools.tapp
version: 0.2.1
# This override belongs to tools_package's source; other channels use the release asset.
.channels:
- channel: development
dependency:
.type: LocalPath
path: development_tools
CLI options
--module-pathselects the project directory. It defaults to the current directory.--outputselects the.tappfile. If omitted, the manifest name is used as the filename; when no manifest is present, the project directory name is used. The output is written in the current directory.--channel-idselects channel-specific dependency and autoexec settings.--versionoverrides the version recorded in the generatedautoexec.bemetadata; it does not edit Berry source files.
The same scalar settings can be supplied through TAPPACK__MODULE_PATH, TAPPACK__OUTPUT, TAPPACK__CHANNEL_ID, and TAPPACK__VERSION. For example, from docs/examples:
TAPPACK__MODULE_PATH=sample_app TAPPACK__CHANNEL_ID=development tappack --output ./sample_app.tapp
Corio settings can also load a dotenv file selected with --env or a YAML file selected with --config; CLI options take precedence over environment, dotenv, and YAML values.
For an ephemeral invocation, run the same command with uvx tappack instead of tappack. Run tappack --help to see the available options.
For the manifest field reference and dependency forms, continue to the manifest guide. For the rationale behind packaging-only scope, see deployment guidance.