alms-cli 0.1.0__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,35 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv/
11
+ env/
12
+ venv/
13
+ ENV/
14
+
15
+ # Configuration
16
+ .env
17
+ .python-version
18
+
19
+ # Logs
20
+ logs/
21
+ *.log
22
+ src/logs/
23
+
24
+ # Pytest
25
+ .pytest_cache/
26
+ .coverage
27
+ htmlcov/
28
+
29
+ # IDEs
30
+ .vscode/
31
+ .idea/
32
+ .trae/
33
+
34
+ # Docker
35
+ .docker/
alms_cli-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ALMS
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,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: alms-cli
3
+ Version: 0.1.0
4
+ Summary: ALMS CLI - Beautiful project scaffolding tool for AI-first backends
5
+ Project-URL: Homepage, https://github.com/KJ-AIML/alms
6
+ Project-URL: Repository, https://github.com/KJ-AIML/alms
7
+ Project-URL: Documentation, https://github.com/KJ-AIML/alms#readme
8
+ Project-URL: Bug Tracker, https://github.com/KJ-AIML/alms/issues
9
+ Author-email: Your Name <your.email@example.com>
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: ai,alms,backend,cli,fastapi,scaffolding,starter-kit
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Software Development :: Code Generators
19
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
20
+ Requires-Python: >=3.13
21
+ Requires-Dist: questionary>=2.0.0
22
+ Requires-Dist: rich>=13.7.0
23
+ Requires-Dist: typer>=0.12.0
24
+ Description-Content-Type: text/markdown
25
+
26
+ # ALMS CLI
27
+
28
+ > **Beautiful project scaffolding tool for AI-first backends.**
29
+
30
+ ## Installation
31
+
32
+ ### Install via pip (Global)
33
+
34
+ ```bash
35
+ pip install alms-cli
36
+ ```
37
+
38
+ ### Install via uv (Recommended)
39
+
40
+ ```bash
41
+ uv pip install alms-cli
42
+ ```
43
+
44
+ ### Run without installing (like uvx)
45
+
46
+ ```bash
47
+ uvx alms-cli
48
+ ```
49
+
50
+ ## Usage
51
+
52
+ ### Create a new project
53
+
54
+ ```bash
55
+ alms init my-project
56
+ ```
57
+
58
+ ### Create a project non-interactively
59
+
60
+ ```bash
61
+ alms init my-project --no-interactive
62
+ ```
63
+
64
+ ### Show project information
65
+
66
+ ```bash
67
+ alms info
68
+ ```
69
+
70
+ ## Features
71
+
72
+ - Beautiful terminal UI with Rich
73
+ - Interactive prompts with Questionary
74
+ - Complete ALMS project scaffolding
75
+ - Feature selection (Database, Redis, AI Agents, Observability, Docker, CI/CD)
76
+ - Progress indicators and status updates
77
+
78
+ ## Development
79
+
80
+ ### Local development
81
+
82
+ ```bash
83
+ cd cli
84
+ uv sync
85
+ uv run alms
86
+ ```
87
+
88
+ ### Build package
89
+
90
+ ```bash
91
+ cd cli
92
+ uv pip install build
93
+ uv run python -m build
94
+ ```
95
+
96
+ ### Publish to PyPI
97
+
98
+ ```bash
99
+ # Install twine
100
+ uv pip install twine
101
+
102
+ # Upload to PyPI
103
+ twine upload dist/*
104
+ ```
105
+
106
+ ## License
107
+
108
+ MIT
@@ -0,0 +1,83 @@
1
+ # ALMS CLI
2
+
3
+ > **Beautiful project scaffolding tool for AI-first backends.**
4
+
5
+ ## Installation
6
+
7
+ ### Install via pip (Global)
8
+
9
+ ```bash
10
+ pip install alms-cli
11
+ ```
12
+
13
+ ### Install via uv (Recommended)
14
+
15
+ ```bash
16
+ uv pip install alms-cli
17
+ ```
18
+
19
+ ### Run without installing (like uvx)
20
+
21
+ ```bash
22
+ uvx alms-cli
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ ### Create a new project
28
+
29
+ ```bash
30
+ alms init my-project
31
+ ```
32
+
33
+ ### Create a project non-interactively
34
+
35
+ ```bash
36
+ alms init my-project --no-interactive
37
+ ```
38
+
39
+ ### Show project information
40
+
41
+ ```bash
42
+ alms info
43
+ ```
44
+
45
+ ## Features
46
+
47
+ - Beautiful terminal UI with Rich
48
+ - Interactive prompts with Questionary
49
+ - Complete ALMS project scaffolding
50
+ - Feature selection (Database, Redis, AI Agents, Observability, Docker, CI/CD)
51
+ - Progress indicators and status updates
52
+
53
+ ## Development
54
+
55
+ ### Local development
56
+
57
+ ```bash
58
+ cd cli
59
+ uv sync
60
+ uv run alms
61
+ ```
62
+
63
+ ### Build package
64
+
65
+ ```bash
66
+ cd cli
67
+ uv pip install build
68
+ uv run python -m build
69
+ ```
70
+
71
+ ### Publish to PyPI
72
+
73
+ ```bash
74
+ # Install twine
75
+ uv pip install twine
76
+
77
+ # Upload to PyPI
78
+ twine upload dist/*
79
+ ```
80
+
81
+ ## License
82
+
83
+ MIT
@@ -0,0 +1,48 @@
1
+ [project]
2
+ name = "alms-cli"
3
+ version = "0.1.0"
4
+ description = "ALMS CLI - Beautiful project scaffolding tool for AI-first backends"
5
+ readme = "README.md"
6
+ requires-python = ">=3.13"
7
+ license = {text = "MIT"}
8
+ authors = [
9
+ {name = "Your Name", email = "your.email@example.com"}
10
+ ]
11
+ keywords = ["cli", "scaffolding", "fastapi", "ai", "backend", "starter-kit", "alms"]
12
+ classifiers = [
13
+ "Development Status :: 3 - Alpha",
14
+ "Intended Audience :: Developers",
15
+ "License :: OSI Approved :: MIT License",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.13",
18
+ "Topic :: Software Development :: Code Generators",
19
+ "Topic :: Software Development :: Libraries :: Application Frameworks",
20
+ ]
21
+ dependencies = [
22
+ "typer>=0.12.0",
23
+ "rich>=13.7.0",
24
+ "questionary>=2.0.0",
25
+ ]
26
+
27
+ [project.urls]
28
+ Homepage = "https://github.com/KJ-AIML/alms"
29
+ Repository = "https://github.com/KJ-AIML/alms"
30
+ Documentation = "https://github.com/KJ-AIML/alms#readme"
31
+ "Bug Tracker" = "https://github.com/KJ-AIML/alms/issues"
32
+
33
+ [project.scripts]
34
+ alms = "alms_cli.main:app"
35
+
36
+ [build-system]
37
+ requires = ["hatchling"]
38
+ build-backend = "hatchling.build"
39
+
40
+ [tool.hatch.build.targets.wheel]
41
+ packages = ["src/alms_cli"]
42
+
43
+ [tool.hatch.build.targets.sdist]
44
+ include = [
45
+ "/src",
46
+ "/README.md",
47
+ "/LICENSE",
48
+ ]
@@ -0,0 +1,3 @@
1
+ """ALMS CLI - Beautiful project scaffolding tool."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,5 @@
1
+ """Entry point for running CLI as module."""
2
+
3
+ from alms_cli.main import app
4
+
5
+ app()
@@ -0,0 +1,6 @@
1
+ """CLI commands."""
2
+
3
+ from alms_cli.commands.init import init_command
4
+ from alms_cli.commands.info import info_app
5
+
6
+ __all__ = ["init_command", "info_app"]
@@ -0,0 +1,73 @@
1
+ """Info command - Show project information."""
2
+
3
+ import typer
4
+ from pathlib import Path
5
+ from rich.console import Console
6
+ from rich.table import Table
7
+ from rich import box
8
+ from rich.panel import Panel
9
+
10
+ from alms_cli.ui.components import print_tree, print_error, print_info
11
+ from alms_cli import __version__
12
+
13
+ info_app = typer.Typer(
14
+ name="info",
15
+ help="Show project information",
16
+ add_completion=False,
17
+ rich_markup_mode="rich",
18
+ )
19
+
20
+ console = Console()
21
+
22
+
23
+ @info_app.command()
24
+ def project():
25
+ """Show information about the current ALMS project."""
26
+
27
+ project_root = Path.cwd()
28
+
29
+ pyproject = project_root / "pyproject.toml"
30
+ if not pyproject.exists():
31
+ print_error("Not an ALMS project (pyproject.toml not found)")
32
+ console.print()
33
+ print_info("Run 'alms init <name>' to create a new project")
34
+ console.print()
35
+ raise typer.Exit(1)
36
+
37
+ console.print()
38
+ console.print(
39
+ Panel(
40
+ f"[bold white]ALMS Project Info[/bold white]\n"
41
+ f"[dim]CLI Version: {__version__}[/dim]",
42
+ box=box.ROUNDED,
43
+ border_style="blue",
44
+ )
45
+ )
46
+ console.print()
47
+
48
+ table = Table(
49
+ box=box.ROUNDED,
50
+ border_style="blue",
51
+ title="[bold]Project Details[/bold]",
52
+ )
53
+
54
+ table.add_column("Property", style="bold blue")
55
+ table.add_column("Value", style="white")
56
+
57
+ table.add_row("Name", project_root.name)
58
+ table.add_row("Location", str(project_root))
59
+ table.add_row("Has pyproject.toml", "Yes")
60
+ table.add_row("Has src/", str((project_root / "src").exists()))
61
+ table.add_row("Has tests/", str((project_root / "src" / "tests").exists()))
62
+ table.add_row("Has alembic/", str((project_root / "alembic").exists()))
63
+
64
+ console.print(table)
65
+ console.print()
66
+
67
+ console.print("[bold]Project Structure:[/bold]")
68
+ console.print()
69
+
70
+ if (project_root / "src").exists():
71
+ print_tree(project_root / "src")
72
+
73
+ console.print()
@@ -0,0 +1,129 @@
1
+ """Init command - Create a new ALMS project."""
2
+
3
+ import typer
4
+ from pathlib import Path
5
+ from rich.console import Console
6
+ from rich.panel import Panel
7
+ from rich import box
8
+ import questionary
9
+
10
+ from alms_cli.ui.components import (
11
+ print_header,
12
+ print_step,
13
+ print_success,
14
+ print_error,
15
+ print_info,
16
+ print_warning,
17
+ create_progress,
18
+ print_project_summary,
19
+ )
20
+ from alms_cli.templates import TemplateGenerator
21
+
22
+ console = Console()
23
+
24
+
25
+ def init_command(
26
+ name: str = typer.Argument(None, help="Project name"),
27
+ path: str = typer.Option(None, "--path", "-p", help="Path to create project"),
28
+ interactive: bool = typer.Option(True, "--interactive/--no-interactive", "-i", help="Interactive mode"),
29
+ ):
30
+ """Create a new ALMS project with beautiful scaffolding."""
31
+
32
+ print_header("ALMS Project Generator", "AI-First Backend Starter Kit")
33
+
34
+ if not name:
35
+ if interactive:
36
+ name = questionary.text(
37
+ "Project name:",
38
+ default="my-alms-project",
39
+ validate=lambda x: len(x) > 0 and x.replace("-", "").replace("_", "").isalnum(),
40
+ ).ask()
41
+
42
+ if not name:
43
+ print_error("Project name is required")
44
+ raise typer.Exit(1)
45
+ else:
46
+ print_error("Project name is required")
47
+ raise typer.Exit(1)
48
+
49
+ project_path = Path(path) / name if path else Path(name)
50
+
51
+ if project_path.exists():
52
+ if interactive:
53
+ overwrite = questionary.confirm(
54
+ f"Directory '{name}' already exists. Overwrite?",
55
+ default=False,
56
+ ).ask()
57
+
58
+ if not overwrite:
59
+ print_warning("Project creation cancelled")
60
+ raise typer.Exit(0)
61
+ else:
62
+ print_error(f"Directory '{name}' already exists")
63
+ raise typer.Exit(1)
64
+
65
+ features = []
66
+
67
+ if interactive:
68
+ print_info("Select features to include:")
69
+ console.print()
70
+
71
+ answers = questionary.checkbox(
72
+ "Features:",
73
+ choices=[
74
+ questionary.Choice("Database (PostgreSQL)", checked=True),
75
+ questionary.Choice("Redis Cache", checked=True),
76
+ questionary.Choice("AI Agents (LangChain)", checked=True),
77
+ questionary.Choice("Observability (OpenTelemetry)", checked=True),
78
+ questionary.Choice("Docker Support", checked=True),
79
+ questionary.Choice("CI/CD (GitHub Actions)", checked=True),
80
+ ],
81
+ ).ask()
82
+
83
+ features = [a for a in (answers or [])]
84
+
85
+ console.print()
86
+ print_step(1, 4, f"Creating project structure in {project_path}")
87
+
88
+ with create_progress() as progress:
89
+ task = progress.add_task("Generating files...", total=100)
90
+
91
+ generator = TemplateGenerator(name, project_path)
92
+ files_created = generator.generate(features)
93
+
94
+ progress.update(task, completed=100)
95
+
96
+ print_success(f"Created {files_created} files")
97
+ console.print()
98
+
99
+ print_step(2, 4, "Setting up configuration")
100
+ print_success("Environment template created (.env.example)")
101
+ print_success("Git ignore created (.gitignore)")
102
+ print_success("Docker configuration created")
103
+ console.print()
104
+
105
+ print_step(3, 4, "Initializing project structure")
106
+ print_success("API layer created")
107
+ print_success("Execution layer created")
108
+ print_success("Agent layer created")
109
+ print_success("Database layer created")
110
+ print_success("Observability layer created")
111
+ console.print()
112
+
113
+ print_step(4, 4, "Finalizing setup")
114
+ print_success("Tests scaffolded")
115
+ print_success("Documentation created")
116
+ print_success("GitHub workflows configured")
117
+ console.print()
118
+
119
+ print_project_summary(project_path, files_created, features or ["All features"])
120
+
121
+ console.print(
122
+ Panel(
123
+ "[bold green]Your ALMS project is ready![/bold green]\n\n"
124
+ "[dim]Run the commands above to get started[/dim]",
125
+ box=box.ROUNDED,
126
+ border_style="green",
127
+ )
128
+ )
129
+ console.print()
@@ -0,0 +1,41 @@
1
+ """Main CLI application entry point."""
2
+
3
+ import typer
4
+ from typer import Typer
5
+ from rich.console import Console
6
+ from alms_cli import __version__
7
+ from alms_cli.commands.init import init_command
8
+ from alms_cli.commands.info import info_app
9
+
10
+ app = Typer(
11
+ name="alms",
12
+ help="ALMS CLI - Beautiful project scaffolding tool",
13
+ add_completion=False,
14
+ rich_markup_mode="rich",
15
+ )
16
+
17
+ console = Console()
18
+
19
+ app.command(name="init")(init_command)
20
+ app.add_typer(info_app, name="info")
21
+
22
+ @app.callback(invoke_without_command=True)
23
+ def main(ctx: typer.Context):
24
+ """ALMS CLI - AI-First Backend Project Scaffolding"""
25
+ if ctx.invoked_subcommand:
26
+ return
27
+
28
+ console.print()
29
+ console.print("[bold blue]╔══════════════════════════════════════════╗[/bold blue]")
30
+ console.print("[bold blue]║[/bold blue] [bold white]ALMS CLI[/bold white] [bold blue]║[/bold blue]")
31
+ console.print("[bold blue]║[/bold blue] [dim]AI-First Backend Project Scaffolding[/dim] [bold blue]║[/bold blue]")
32
+ console.print("[bold blue]╚══════════════════════════════════════════╝[/bold blue]")
33
+ console.print()
34
+ console.print(f"[dim]Version: {__version__}[/dim]")
35
+ console.print()
36
+ console.print("[bold]Commands:[/bold]")
37
+ console.print(" [green]init[/green] Create a new ALMS project")
38
+ console.print(" [green]info[/green] Show project information")
39
+ console.print()
40
+ console.print("[dim]Run 'alms <command> --help' for more information[/dim]")
41
+ console.print()