dforge-cli 1.0.1__tar.gz → 1.0.2__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.
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/PKG-INFO +1 -1
- dforge_cli-1.0.2/dforge/banner.py +78 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge_cli.egg-info/PKG-INFO +1 -1
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/pyproject.toml +1 -1
- dforge_cli-1.0.1/dforge/banner.py +0 -31
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/README.md +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/__init__.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/batch.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/cli.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/config.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/config_manager.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/converter.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/dependencies.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/engine.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/extractor.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/loading.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/menu.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/operations.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/processor.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/setup.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/theme.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/utils.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/watcher.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/__init__.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/automation.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/batch.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/batch_ocr.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/common.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/compress.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/convert.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/decrypt.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/encrypt.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/extract.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/image.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/merge.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/ocr.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/ocr_folder.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/pages.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/rotate.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/searchable.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/settings.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/split.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/tables.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge/workflows/watermark.py +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge_cli.egg-info/SOURCES.txt +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge_cli.egg-info/dependency_links.txt +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge_cli.egg-info/entry_points.txt +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge_cli.egg-info/requires.txt +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/dforge_cli.egg-info/top_level.txt +0 -0
- {dforge_cli-1.0.1 → dforge_cli-1.0.2}/setup.cfg +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
from pyfiglet import Figlet
|
|
2
|
+
from rich.align import Align
|
|
3
|
+
from rich.console import Console, Group
|
|
4
|
+
from rich.panel import Panel
|
|
5
|
+
from rich.rule import Rule
|
|
6
|
+
from rich.text import Text
|
|
7
|
+
from rich import box
|
|
8
|
+
|
|
9
|
+
console = Console()
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def show_banner():
|
|
13
|
+
# ── ASCII logo with cyan → indigo gradient ──────────────────
|
|
14
|
+
raw = Figlet(font="slant").renderText("DFORGE")
|
|
15
|
+
|
|
16
|
+
palette = [
|
|
17
|
+
"#00f0ff", "#00d5f5", "#00baeb",
|
|
18
|
+
"#009fe0", "#0083d5", "#0068ca", "#004ebf",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
logo = Text()
|
|
22
|
+
ci = 0
|
|
23
|
+
for line in raw.split("\n"):
|
|
24
|
+
if line.strip():
|
|
25
|
+
logo.append(line + "\n", style=f"bold {palette[min(ci, len(palette) - 1)]}")
|
|
26
|
+
ci += 1
|
|
27
|
+
else:
|
|
28
|
+
logo.append("\n")
|
|
29
|
+
|
|
30
|
+
# ── Tagline ─────────────────────────────────────────────────
|
|
31
|
+
tagline = Text("Fast Local Document Automation", style="bold bright_white")
|
|
32
|
+
|
|
33
|
+
# ── Feature chips ────────────────────────────────────────────
|
|
34
|
+
chips = Text()
|
|
35
|
+
for i, (label, color) in enumerate([
|
|
36
|
+
("◈ PDF", "#00d8ff"),
|
|
37
|
+
("◈ OCR", "#00b0f0"),
|
|
38
|
+
("◈ Convert", "#0088e0"),
|
|
39
|
+
("◈ Batch", "#0060d0"),
|
|
40
|
+
]):
|
|
41
|
+
if i:
|
|
42
|
+
chips.append(" ")
|
|
43
|
+
chips.append(label, style=f"bold {color}")
|
|
44
|
+
|
|
45
|
+
# ── Footer ───────────────────────────────────────────────────
|
|
46
|
+
footer = Text(
|
|
47
|
+
"⚡ forge your documents from the terminal ⚡",
|
|
48
|
+
style="italic dim",
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
# ── Compose ──────────────────────────────────────────────────
|
|
52
|
+
body = Group(
|
|
53
|
+
Text(""),
|
|
54
|
+
Align.center(logo),
|
|
55
|
+
Rule(style="#003399"),
|
|
56
|
+
Text(""),
|
|
57
|
+
Align.center(tagline),
|
|
58
|
+
Text(""),
|
|
59
|
+
Align.center(chips),
|
|
60
|
+
Text(""),
|
|
61
|
+
Rule(characters="·", style="bright_black"),
|
|
62
|
+
Align.center(footer),
|
|
63
|
+
Text(""),
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
console.print(
|
|
67
|
+
Panel(
|
|
68
|
+
body,
|
|
69
|
+
box=box.DOUBLE_EDGE,
|
|
70
|
+
border_style="#003388",
|
|
71
|
+
padding=(0, 4),
|
|
72
|
+
title="[bold #00ddff]◆ D F O R G E ◆[/bold #00ddff]",
|
|
73
|
+
title_align="center",
|
|
74
|
+
subtitle="[dim]v1.0.0[/dim]",
|
|
75
|
+
subtitle_align="right",
|
|
76
|
+
)
|
|
77
|
+
)
|
|
78
|
+
console.print()
|
|
@@ -3,7 +3,7 @@ requires = ["setuptools>=68", "wheel"]
|
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
[project]
|
|
5
5
|
name = "dforge-cli"
|
|
6
|
-
version = "1.0.
|
|
6
|
+
version = "1.0.2"
|
|
7
7
|
description = "DForge — Unified Document Processing CLI. Forge your documents from your terminal."
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
requires-python = ">=3.9"
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
from rich.console import Console
|
|
2
|
-
from rich.panel import Panel
|
|
3
|
-
from rich.align import Align
|
|
4
|
-
|
|
5
|
-
console = Console()
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def show_banner():
|
|
9
|
-
title = """
|
|
10
|
-
⚡ DFORGE
|
|
11
|
-
|
|
12
|
-
Fast Local Document Automation
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
console.print()
|
|
16
|
-
|
|
17
|
-
console.print(
|
|
18
|
-
Panel(
|
|
19
|
-
Align.center(f"[bold cyan]{title}[/bold cyan]"),
|
|
20
|
-
border_style="cyan",
|
|
21
|
-
padding=(1, 4),
|
|
22
|
-
)
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
console.print(
|
|
26
|
-
Align.center(
|
|
27
|
-
"[dim]Forge your documents from your terminal[/dim]"
|
|
28
|
-
)
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
console.print()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|