limascope 0.0.1__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.
@@ -0,0 +1,11 @@
1
+ /limascope
2
+ /demos/
3
+ .DS_Store
4
+ /limatop
5
+ /cmd/limatop/limatop
6
+ .venv/
7
+ dist/
8
+ __pycache__/
9
+ .pytest_cache/
10
+ snapshot_report.html
11
+ *.cast
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Burak Çivitcioglu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.5
2
+ Name: limascope
3
+ Version: 0.0.1
4
+ Summary: An OrbStack-style terminal app for Docker on Lima and Colima VMs
5
+ Project-URL: Homepage, https://github.com/bcivitcioglu/limascope
6
+ Project-URL: Issues, https://github.com/bcivitcioglu/limascope/issues
7
+ Author: Burak Civitcioglu
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: colima,containers,docker,lima,textual,tui
11
+ Classifier: Development Status :: 2 - Pre-Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: MacOS
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Topic :: System :: Systems Administration
18
+ Requires-Python: >=3.11
19
+ Requires-Dist: textual<9,>=8.2.8
20
+ Description-Content-Type: text/markdown
21
+
22
+ # limascope
23
+
24
+ An OrbStack-style terminal app for Docker on [Lima](https://lima-vm.io/) and Colima VMs.
25
+
26
+ **Pre-alpha.** This early release reserves the name and lists your Lima instances. The full app (compose groups, live stats, logs, actions, command palette) is in active development at https://github.com/bcivitcioglu/limascope.
27
+
28
+ ```sh
29
+ uvx limascope
30
+ ```
@@ -0,0 +1,44 @@
1
+ [project]
2
+ name = "limascope"
3
+ version = "0.0.1"
4
+ description = "An OrbStack-style terminal app for Docker on Lima and Colima VMs"
5
+ readme = { text = "# limascope\n\nAn OrbStack-style terminal app for Docker on [Lima](https://lima-vm.io/) and Colima VMs.\n\n**Pre-alpha.** This early release reserves the name and lists your Lima instances. The full app (compose groups, live stats, logs, actions, command palette) is in active development at https://github.com/bcivitcioglu/limascope.\n\n```sh\nuvx limascope\n```\n", content-type = "text/markdown" }
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ authors = [{ name = "Burak Civitcioglu" }]
9
+ requires-python = ">=3.11"
10
+ dependencies = ["textual>=8.2.8,<9"]
11
+ keywords = ["docker", "lima", "colima", "tui", "textual", "containers"]
12
+ classifiers = [
13
+ "Development Status :: 2 - Pre-Alpha",
14
+ "Environment :: Console",
15
+ "Intended Audience :: Developers",
16
+ "Operating System :: MacOS",
17
+ "Operating System :: POSIX :: Linux",
18
+ "Programming Language :: Python :: 3",
19
+ "Topic :: System :: Systems Administration",
20
+ ]
21
+
22
+ [project.urls]
23
+ Homepage = "https://github.com/bcivitcioglu/limascope"
24
+ Issues = "https://github.com/bcivitcioglu/limascope/issues"
25
+
26
+ [project.scripts]
27
+ limascope = "limascope.cli:main"
28
+
29
+ [build-system]
30
+ requires = ["hatchling>=1.27"]
31
+ build-backend = "hatchling.build"
32
+
33
+ [tool.hatch.build.targets.wheel]
34
+ packages = ["src/limascope"]
35
+
36
+ [tool.hatch.build.targets.sdist]
37
+ include = ["src/limascope", "LICENSE", "pyproject.toml"]
38
+
39
+ [dependency-groups]
40
+ dev = ["pytest>=8", "pytest-asyncio>=0.24"]
41
+
42
+ [tool.pytest.ini_options]
43
+ asyncio_mode = "auto"
44
+ testpaths = ["tests"]
@@ -0,0 +1,8 @@
1
+ """limascope: an OrbStack-style terminal app for Docker on Lima VMs."""
2
+
3
+ from importlib.metadata import PackageNotFoundError, version
4
+
5
+ try:
6
+ __version__ = version("limascope")
7
+ except PackageNotFoundError: # running from a source tree without install
8
+ __version__ = "0.0.0+local"
@@ -0,0 +1,3 @@
1
+ from limascope.cli import main
2
+
3
+ main()
@@ -0,0 +1,54 @@
1
+ """Pre-alpha skeleton: lists Lima instances. The full app is under construction."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import asyncio
6
+ import json
7
+
8
+ from textual.app import App, ComposeResult
9
+ from textual.widgets import DataTable, Footer, Header
10
+
11
+
12
+ async def list_instances() -> list[dict]:
13
+ try:
14
+ proc = await asyncio.create_subprocess_exec(
15
+ "limactl", "list", "--format", "json",
16
+ stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.DEVNULL,
17
+ )
18
+ except FileNotFoundError:
19
+ return []
20
+ out, _ = await proc.communicate()
21
+ return [json.loads(line) for line in out.decode().splitlines() if line.strip()]
22
+
23
+
24
+ class LimascopeApp(App):
25
+ TITLE = "limascope"
26
+ SUB_TITLE = "pre-alpha"
27
+ BINDINGS = [("q", "quit", "Quit"), ("r", "refresh", "Refresh")]
28
+
29
+ def compose(self) -> ComposeResult:
30
+ yield Header()
31
+ yield DataTable(cursor_type="row", zebra_stripes=True)
32
+ yield Footer()
33
+
34
+ async def on_mount(self) -> None:
35
+ self.query_one(DataTable).add_columns("", "NAME", "STATUS", "TYPE", "CPUS", "MEMORY", "DISK")
36
+ await self.action_refresh()
37
+
38
+ async def action_refresh(self) -> None:
39
+ table = self.query_one(DataTable)
40
+ table.clear()
41
+ instances = await list_instances()
42
+ if not instances:
43
+ self.notify("no Lima instances found (is limactl installed?)", severity="warning")
44
+ for vm in instances:
45
+ running = vm.get("status") == "Running"
46
+ table.add_row(
47
+ "●" if running else "○",
48
+ vm.get("name", ""),
49
+ vm.get("status", ""),
50
+ f"{vm.get('vmType', '')}/{vm.get('arch', '')}",
51
+ str(vm.get("cpus", "")),
52
+ f"{vm.get('memory', 0) / 2**30:.1f}G",
53
+ f"{vm.get('disk', 0) / 2**30:.0f}G",
54
+ )
@@ -0,0 +1,17 @@
1
+ """Command-line entry point."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+
7
+ from limascope import __version__
8
+
9
+
10
+ def main(argv: list[str] | None = None) -> None:
11
+ parser = argparse.ArgumentParser(prog="limascope", description=__doc__)
12
+ parser.add_argument("--version", action="version", version=f"limascope {__version__}")
13
+ parser.parse_args(argv)
14
+
15
+ from limascope.app import LimascopeApp # deferred: keep --version instant
16
+
17
+ LimascopeApp().run()