vuer-cli 0.0.2__tar.gz → 0.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. {vuer_cli-0.0.2 → vuer_cli-0.0.4}/.gitignore +14 -1
  2. vuer_cli-0.0.4/CLAUDE.md +8 -0
  3. vuer_cli-0.0.4/CONTRIBUTING.md +97 -0
  4. {vuer_cli-0.0.2 → vuer_cli-0.0.4}/PKG-INFO +26 -3
  5. {vuer_cli-0.0.2 → vuer_cli-0.0.4}/README.md +7 -1
  6. vuer_cli-0.0.4/docs/commands/add.md +18 -0
  7. vuer_cli-0.0.4/docs/commands/index.md +17 -0
  8. vuer_cli-0.0.4/docs/commands/remove.md +21 -0
  9. vuer_cli-0.0.4/docs/commands/sync.md +31 -0
  10. vuer_cli-0.0.4/docs/commands/upgrade.md +18 -0
  11. vuer_cli-0.0.4/docs/concepts.md +58 -0
  12. vuer_cli-0.0.4/docs/index.md +721 -0
  13. vuer_cli-0.0.4/docs/introduction.md +52 -0
  14. vuer_cli-0.0.4/docs/overview.md +703 -0
  15. vuer_cli-0.0.4/docs/publishing.md +122 -0
  16. {vuer_cli-0.0.2 → vuer_cli-0.0.4}/pyproject.toml +18 -3
  17. {vuer_cli-0.0.2 → vuer_cli-0.0.4/src}/vuer_cli/add.py +7 -20
  18. {vuer_cli-0.0.2 → vuer_cli-0.0.4/src}/vuer_cli/envs_publish.py +1 -1
  19. {vuer_cli-0.0.2 → vuer_cli-0.0.4/src}/vuer_cli/envs_pull.py +1 -1
  20. vuer_cli-0.0.4/src/vuer_cli/main.py +65 -0
  21. vuer_cli-0.0.4/src/vuer_cli/mcap_extractor.py +866 -0
  22. {vuer_cli-0.0.2 → vuer_cli-0.0.4/src}/vuer_cli/remove.py +7 -15
  23. vuer_cli-0.0.4/src/vuer_cli/scripts/demcap.py +167 -0
  24. vuer_cli-0.0.4/src/vuer_cli/scripts/minimap.py +462 -0
  25. vuer_cli-0.0.4/src/vuer_cli/scripts/ptc_utils.py +434 -0
  26. vuer_cli-0.0.4/src/vuer_cli/scripts/viz_ptc_cams.py +613 -0
  27. vuer_cli-0.0.4/src/vuer_cli/scripts/viz_ptc_proxie.py +483 -0
  28. vuer_cli-0.0.4/src/vuer_cli/scripts/vuer_ros_bridge.py +210 -0
  29. {vuer_cli-0.0.2 → vuer_cli-0.0.4/src}/vuer_cli/sync.py +1 -1
  30. {vuer_cli-0.0.2 → vuer_cli-0.0.4/src}/vuer_cli/upgrade.py +8 -15
  31. {vuer_cli-0.0.2 → vuer_cli-0.0.4/src}/vuer_cli/utils.py +11 -38
  32. vuer_cli-0.0.2/vuer_cli/main.py +0 -106
  33. {vuer_cli-0.0.2 → vuer_cli-0.0.4}/LICENSE +0 -0
  34. {vuer_cli-0.0.2 → vuer_cli-0.0.4/src}/vuer_cli/__init__.py +0 -0
@@ -4,6 +4,13 @@
4
4
  .idea
5
5
  # since this is public
6
6
  .run
7
+
8
+ # remove the env file.
9
+ .env
10
+
11
+ # test foldders
12
+ downloads
13
+
7
14
  # IDE files
8
15
  .eggs
9
16
  .tox
@@ -38,4 +45,10 @@ uv.lock
38
45
  output
39
46
  pcds
40
47
 
41
- .pytest_cache
48
+ .pytest_cache
49
+
50
+ # Assets folder (contains GLB models)
51
+ assets/
52
+
53
+ # MCAP output data
54
+ mcap_outputs/
@@ -0,0 +1,8 @@
1
+
2
+ - Release Procedure:
3
+ 1. update pip install and uv add instruction in the README to include the version tag of the current version
4
+ 2. push to latest and the version tag in git
5
+ 3. publish this version
6
+
7
+ # Skills
8
+ - params-proto: https://raw.githubusercontent.com/geyang/params-proto/main/skill/index.md
@@ -0,0 +1,97 @@
1
+ # Development Guide
2
+
3
+ This project uses modern Python packaging with [uv](https://docs.astral.sh/uv/) and `pyproject.toml`.
4
+
5
+ ## Setup
6
+
7
+ ### Option 1: Using uv (recommended)
8
+
9
+ Create a virtual environment and install dependencies:
10
+
11
+ ```bash
12
+ uv sync --group dev
13
+ ```
14
+
15
+ Activate the environment:
16
+
17
+ ```bash
18
+ source .venv/bin/activate
19
+ ```
20
+
21
+ ### Option 2: Using pip
22
+
23
+ Install in your current environment (conda, virtualenv, or system Python):
24
+
25
+ ```bash
26
+ pip install -e ".[dev]"
27
+ ```
28
+
29
+ ## Common Tasks
30
+
31
+ ### Documentation
32
+
33
+ Build documentation:
34
+
35
+ ```bash
36
+ make docs
37
+ ```
38
+
39
+ Preview documentation with live reload:
40
+
41
+ ```bash
42
+ make preview-docs
43
+ ```
44
+
45
+ The preview server will start at `http://0.0.0.0:8000`
46
+
47
+ ### Testing
48
+
49
+ Run tests:
50
+
51
+ ```bash
52
+ make test
53
+ ```
54
+
55
+ ### Code Quality
56
+
57
+ Format code with ruff:
58
+
59
+ ```bash
60
+ ruff format .
61
+ ```
62
+
63
+ Lint code:
64
+
65
+ ```bash
66
+ ruff check .
67
+ ```
68
+
69
+ Fix linting issues automatically:
70
+
71
+ ```bash
72
+ ruff check --fix .
73
+ ```
74
+
75
+ ## Project Structure
76
+
77
+ ```
78
+ vuer/
79
+ ├── src/vuer/ # Main package source
80
+ ├── docs/ # Sphinx documentation
81
+ ├── Makefile # Build tasks
82
+ └── pyproject.toml # Project configuration
83
+ ```
84
+
85
+ ## Publishing
86
+
87
+ ### Using uv (recommended)
88
+
89
+ 1. Update version in `pyproject.toml`
90
+ 2. Build the package: `uv build`
91
+ 3. Publish: `uv publish`
92
+
93
+ ### Using traditional tools
94
+
95
+ 1. Update version in `pyproject.toml`
96
+ 2. Build: `python -m build`
97
+ 3. Publish: `twine upload dist/*`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vuer-cli
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: A Python CLI for Vuer, a real-time 3D visualization library
5
5
  Project-URL: Homepage, https://github.com/vuer-ai/vuer-cli
6
6
  Project-URL: Repository, https://github.com/vuer-ai/vuer-cli
@@ -18,10 +18,16 @@ Classifier: Programming Language :: Python :: 3.10
18
18
  Classifier: Programming Language :: Python :: 3.11
19
19
  Classifier: Programming Language :: Python :: 3.12
20
20
  Requires-Python: >=3.8
21
- Requires-Dist: params-proto>=3.0.0rc9
21
+ Requires-Dist: params-proto>=3.2.3
22
22
  Requires-Dist: requests>=2.31.0
23
23
  Requires-Dist: tqdm>=4.66.0
24
24
  Provides-Extra: all
25
+ Requires-Dist: mcap-ros2-support>=0.5.0; extra == 'all'
26
+ Requires-Dist: mcap>=1.1.0; extra == 'all'
27
+ Requires-Dist: numpy>=1.24.0; extra == 'all'
28
+ Requires-Dist: opencv-python>=4.8.0; extra == 'all'
29
+ Requires-Dist: pandas>=2.0.0; extra == 'all'
30
+ Requires-Dist: vuer>=0.0.79; extra == 'all'
25
31
  Provides-Extra: docs
26
32
  Requires-Dist: furo; extra == 'docs'
27
33
  Requires-Dist: myst-parser; extra == 'docs'
@@ -30,6 +36,17 @@ Requires-Dist: sphinx-copybutton; extra == 'docs'
30
36
  Requires-Dist: sphinx>=4.0; extra == 'docs'
31
37
  Requires-Dist: tomli>=1.1.0; (python_version < '3.11') and extra == 'docs'
32
38
  Provides-Extra: example
39
+ Provides-Extra: mcap
40
+ Requires-Dist: mcap-ros2-support>=0.5.0; extra == 'mcap'
41
+ Requires-Dist: mcap>=1.1.0; extra == 'mcap'
42
+ Requires-Dist: numpy>=1.24.0; extra == 'mcap'
43
+ Requires-Dist: opencv-python>=4.8.0; extra == 'mcap'
44
+ Requires-Dist: pandas>=2.0.0; extra == 'mcap'
45
+ Provides-Extra: viz
46
+ Requires-Dist: numpy>=1.24.0; extra == 'viz'
47
+ Requires-Dist: opencv-python>=4.8.0; extra == 'viz'
48
+ Requires-Dist: pandas>=2.0.0; extra == 'viz'
49
+ Requires-Dist: vuer>=0.0.79; extra == 'viz'
33
50
  Description-Content-Type: text/markdown
34
51
 
35
52
  # Vuer Hub Environment Manager
@@ -41,7 +58,13 @@ software packages.
41
58
  ## Installation
42
59
 
43
60
  ```bash
44
- pip install vuer-cli
61
+ pip install vuer-cli==0.0.4
62
+ ```
63
+
64
+ or with uv:
65
+
66
+ ```bash
67
+ uv add vuer-cli==0.0.4
45
68
  ```
46
69
 
47
70
  ## Environment Variables
@@ -7,7 +7,13 @@ software packages.
7
7
  ## Installation
8
8
 
9
9
  ```bash
10
- pip install vuer-cli
10
+ pip install vuer-cli==0.0.4
11
+ ```
12
+
13
+ or with uv:
14
+
15
+ ```bash
16
+ uv add vuer-cli==0.0.4
11
17
  ```
12
18
 
13
19
  ## Environment Variables
@@ -0,0 +1,18 @@
1
+ # vuer add
2
+
3
+ Add an environment dependency to `environment.json` and run `sync`.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ vuer add some-environment/1.2.3
9
+ ```
10
+
11
+ ## Behavior
12
+
13
+ - Validates argument format `name/version`.
14
+ - If `environments-lock.yaml` already contains the exact entry, the command
15
+ returns success without modifying `environment.json`.
16
+ - Otherwise, it writes or updates `environment.json` and triggers `vuer sync`.
17
+
18
+
@@ -0,0 +1,17 @@
1
+ # Commands
2
+
3
+ This section contains the user-facing command documentation. Each command has
4
+ its own page linked below.
5
+
6
+ ```{toctree}
7
+ :maxdepth: 1
8
+
9
+ sync
10
+ add
11
+ remove
12
+ upgrade
13
+ ```
14
+
15
+ Use `vuer <command> --help` for per-command options.
16
+
17
+
@@ -0,0 +1,21 @@
1
+ # vuer remove
2
+
3
+ Remove an environment dependency from `environment.json` and run `sync`.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ vuer remove some-environment/1.2.3
9
+ ```
10
+
11
+ ## Behavior
12
+
13
+ - Requires `name/version` argument.
14
+ - Only removes the dependency entry if the name and version exactly match the
15
+ current `environment.json` entry for that name.
16
+ - Triggers `vuer sync` to reconcile local cache.
17
+
18
+ If removing the last version directory for an environment, `sync` will also
19
+ remove the empty parent `vuer_environments/<name>/` directory.
20
+
21
+
@@ -0,0 +1,31 @@
1
+ # vuer sync
2
+
3
+ Synchronize `environment.json` dependencies with the local cache (`vuer_environments/`).
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ vuer sync
9
+
10
+ # Or specify output directory (optional)
11
+ vuer sync --output ./vuer_environments
12
+ ```
13
+
14
+ ## Behavior
15
+
16
+ 1. Locate `environment.json` in the current working directory. If missing, the
17
+ command fails with an error.
18
+
19
+ 2. Parse `dependencies` and expand transitive dependencies via the backend.
20
+
21
+ 3. Deduplicate and write resolved dependencies to `environments-lock.yaml`.
22
+
23
+ 4. Download missing environments into `vuer_environments/<name>/<version>`.
24
+ Existing version directories listed in the lockfile are skipped.
25
+
26
+ 5. Remove version directories that are no longer present in the new lockfile.
27
+
28
+ Dry-run mode (`VUER_CLI_DRY_RUN`) simulates validation and downloading without
29
+ performing network calls.
30
+
31
+
@@ -0,0 +1,18 @@
1
+ # vuer upgrade
2
+
3
+ Upgrade a named environment to the latest version available in the backend.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ vuer upgrade some-environment-name
9
+ ```
10
+
11
+ ## Behavior
12
+
13
+ 1. Read `environment.json` and locate the dependency by name.
14
+ 2. Call backend `/environments/latest-by-name?name=<name>` to fetch latest
15
+ `versionId`.
16
+ 3. If the latest version differs, update `environment.json` and trigger `vuer sync`.
17
+
18
+
@@ -0,0 +1,58 @@
1
+ # Core concepts
2
+
3
+ This page explains the main concepts used by Vuer CLI.
4
+
5
+ ## Environment Configuration File: `environment.json`
6
+
7
+ Maintain an `environment.json` file in your project root directory to declare
8
+ the list of environments your project depends on, similar to `package.json` in
9
+ Node.js.
10
+
11
+ **Example:**
12
+
13
+ ```json
14
+ {
15
+ "dependencies": {
16
+ "some-dependency": "^1.2.3",
17
+ "another-dependency": "~4.5.6",
18
+ "new-dependency": "0.1.0"
19
+ }
20
+ }
21
+ ```
22
+
23
+ **`dependencies` field:**
24
+
25
+ - **Key**: Environment name (e.g., `some-dependency`)
26
+ - **Value**: Version expression (e.g., `^1.2.3`, `~4.5.6`, etc.)
27
+
28
+ ## Local cache: `vuer_environments/`
29
+
30
+ `vuer sync` downloads direct and transitive dependencies into the
31
+ `vuer_environments/` directory in the project root. Each environment uses a
32
+ nested directory layout `vuer_environments/<name>/<version>`.
33
+
34
+ Downloaded environment directories may contain their own `environment.json`;
35
+ the CLI preserves these per-version metadata files.
36
+
37
+ ## Dependency index: `environments-lock.yaml`
38
+
39
+ `vuer sync` generates `environments-lock.yaml` (next to `vuer_environments/`)
40
+ as a system-maintained lockfile that records resolved and deduplicated
41
+ environment dependencies. Do not edit it manually.
42
+
43
+ Minimal example:
44
+
45
+ ```yaml
46
+ environments:
47
+ - "some-dependency/^1.2.3"
48
+ - "another-dependency/~4.5.6"
49
+ ```
50
+
51
+ ## Environment variables
52
+
53
+ - `VUER_HUB_URL` — Base URL of Vuer Hub API (required in non-dry-run)
54
+ - `VUER_AUTH_TOKEN` — JWT token for API access (required in non-dry-run)
55
+ - `VUER_CLI_DRY_RUN` — Enable dry-run mode (any non-"0"/"false" value enables
56
+ it)
57
+
58
+