# alt-f4-dev/jupy-cli architecture

> Architecture diagram of the GitHub repository alt-f4-dev/jupy-cli, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alt-f4-dev/jupy-cli
- Repository: https://github.com/alt-f4-dev/jupy-cli

## Overview

jupy-cli initializes a project-local Julia environment and Python environment, then dispatches Julia or Python scripts; pip and uv are alternative Python dependency backends. A separate updater checks GitHub releases and replaces the installed CLI. The README documents both workflows, while the sampled core excerpts confirm project discovery, environment setup, Julia/Python selection, pip operations, and uv synchronization. Some implementation details and launcher wiring are unsampled, so those links are omitted where not documented.

Main entry points: [`bin/jupy`](https://github.com/alt-f4-dev/jupy-cli/blob/main/bin/jupy) (jupy command), [`bin/juuv`](https://github.com/alt-f4-dev/jupy-cli/blob/main/bin/juuv) (juuv command), [`core/jupy_core.py`](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py) (Script dispatch), [`core/jupy_update.py`](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_update.py) (Release lookup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_project["Project setup"]
  node_jupy["jupy command"]
  node_juuv["juuv command"]
  node_project_discovery["Project discovery<br/>[jupy_core.py]"]
  node_julia_setup["Julia setup<br/>[jupy_core.py]"]
  node_python_env["Python environment<br/>[jupy_core.py]"]
  node_project_metadata["Project metadata<br/>[jupy_core.py]"]
end

subgraph group_runtime["Execution and dependencies"]
  node_backend_sync["uv synchronization<br/>[jupy_core.py]"]
  node_run_dispatch["Script dispatch<br/>[jupy_core.py]"]
  node_julia["Julia runtime"]
  node_python["Python runtime"]
  node_jupip["jupip command"]
  node_pip_management["pip management<br/>[jupy_core.py]"]
  node_requirements["Requirements snapshot<br/>[jupy_core.py]"]
  node_uv["uv tool"]
end

subgraph group_updates["CLI updates"]
  node_jupyup["jupyup command"]
  node_release_lookup["Release lookup<br/>[jupy_update.py]"]
  node_cli_install[("CLI installation<br/>[jupy_update.py]")]
end

node_user(("Project user"))
node_github["GitHub releases"]

node_user -->|"runs"| node_jupy
node_user -->|"runs"| node_juuv
node_user -->|"runs"| node_jupip
node_user -->|"runs"| node_jupyup
node_jupy -->|"initializes"| node_project_discovery
node_juuv -->|"initializes"| node_project_discovery
node_project_discovery -->|"selects project"| node_julia_setup
node_julia_setup -->|"reads and writes"| node_project_metadata
node_julia_setup -->|"configures"| node_python_env
node_jupy -->|"creates venv"| node_python_env
node_juuv -->|"syncs project"| node_backend_sync
node_backend_sync -->|"runs sync"| node_uv
node_jupy -->|"runs scripts"| node_run_dispatch
node_juuv -->|"runs scripts"| node_run_dispatch
node_run_dispatch -->|"runs Julia"| node_julia
node_run_dispatch -->|"runs Python"| node_python
node_jupip -->|"manages packages"| node_pip_management
node_pip_management -->|"uses interpreter"| node_python_env
node_pip_management -->|"refreshes snapshot"| node_requirements
node_jupyup -->|"checks release"| node_release_lookup
node_release_lookup -->|"fetches release"| node_github
node_release_lookup -->|"updates files"| node_cli_install

click node_jupy "https://github.com/alt-f4-dev/jupy-cli/blob/main/bin/jupy"
click node_juuv "https://github.com/alt-f4-dev/jupy-cli/blob/main/bin/juuv"
click node_project_discovery "https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py"
click node_julia_setup "https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py"
click node_python_env "https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py"
click node_project_metadata "https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py"
click node_backend_sync "https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py"
click node_run_dispatch "https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py"
click node_jupip "https://github.com/alt-f4-dev/jupy-cli/blob/main/bin/jupip"
click node_pip_management "https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py"
click node_requirements "https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py"
click node_jupyup "https://github.com/alt-f4-dev/jupy-cli/blob/main/bin/jupyup"
click node_release_lookup "https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_update.py"
click node_cli_install "https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_update.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_jupy,node_juuv,node_project_discovery,node_julia_setup,node_python_env,node_project_metadata,node_user toneBlue
class node_backend_sync,node_run_dispatch,node_julia,node_python,node_jupip,node_pip_management,node_requirements,node_uv toneAmber
class node_jupyup,node_release_lookup,node_cli_install toneMint
class node_github toneIndigo
```

## Components

### Project setup

- [jupy command](https://github.com/alt-f4-dev/jupy-cli/blob/main/bin/jupy): `bin/jupy`
- [juuv command](https://github.com/alt-f4-dev/jupy-cli/blob/main/bin/juuv): `bin/juuv`
- [Project discovery](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py): `core/jupy_core.py`
- [Julia setup](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py): `core/jupy_core.py`
- [Python environment](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py): `core/jupy_core.py`
- [Project metadata](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py): `core/jupy_core.py`

### Execution and dependencies

- [uv synchronization](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py): `core/jupy_core.py`
- [Script dispatch](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py): `core/jupy_core.py`
- **Julia runtime**
- **Python runtime**
- [jupip command](https://github.com/alt-f4-dev/jupy-cli/blob/main/bin/jupip): `bin/jupip`
- [pip management](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py): `core/jupy_core.py`
- [Requirements snapshot](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_core.py): `core/jupy_core.py`
- **uv tool**

### CLI updates

- [jupyup command](https://github.com/alt-f4-dev/jupy-cli/blob/main/bin/jupyup): `bin/jupyup`
- [Release lookup](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_update.py): `core/jupy_update.py`
- [CLI installation](https://github.com/alt-f4-dev/jupy-cli/blob/main/core/jupy_update.py): `core/jupy_update.py`

### Other components

- **Project user**
- **GitHub releases**

## Connections

- Project user → jupy command: runs (evidence: `README.md`)
- Project user → juuv command: runs (evidence: `README.md`)
- Project user → jupip command: runs (evidence: `README.md`)
- Project user → jupyup command: runs (evidence: `README.md`)
- jupy command → Project discovery: initializes (evidence: `README.md`)
- juuv command → Project discovery: initializes (evidence: `README.md`)
- Project discovery → Julia setup: selects project (evidence: `core/jupy_core.py`)
- Julia setup → Project metadata: reads and writes (evidence: `README.md`)
- Julia setup → Python environment: configures (evidence: `README.md`)
- jupy command → Python environment: creates venv (evidence: `README.md`)
- juuv command → uv synchronization: syncs project (evidence: `README.md`)
- uv synchronization → uv tool: runs sync (evidence: `core/jupy_core.py`)
- jupy command → Script dispatch: runs scripts (evidence: `README.md`)
- juuv command → Script dispatch: runs scripts (evidence: `README.md`)
- Script dispatch → Julia runtime: runs Julia (evidence: `README.md`)
- Script dispatch → Python runtime: runs Python (evidence: `README.md`)
- jupip command → pip management: manages packages (evidence: `README.md`)
- pip management → Python environment: uses interpreter (evidence: `core/jupy_core.py`)
- pip management → Requirements snapshot: refreshes snapshot (evidence: `README.md`)
- jupyup command → Release lookup: checks release (evidence: `README.md`)
- Release lookup → GitHub releases: fetches release (evidence: `core/jupy_update.py`)
- Release lookup → CLI installation: updates files (evidence: `core/jupy_update.py`)
