create-awesome-python-app 0.2.0__py3-none-any.whl → 0.2.2__py3-none-any.whl
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.
- create_awesome_python_app/__init__.py +1 -1
- create_awesome_python_app/catalog.py +3 -16
- create_awesome_python_app/cli.py +0 -1
- {create_awesome_python_app-0.2.0.dist-info → create_awesome_python_app-0.2.2.dist-info}/METADATA +2 -2
- create_awesome_python_app-0.2.2.dist-info/RECORD +8 -0
- create_awesome_python_app-0.2.0.dist-info/RECORD +0 -8
- {create_awesome_python_app-0.2.0.dist-info → create_awesome_python_app-0.2.2.dist-info}/WHEEL +0 -0
- {create_awesome_python_app-0.2.0.dist-info → create_awesome_python_app-0.2.2.dist-info}/entry_points.txt +0 -0
|
@@ -20,14 +20,6 @@ from create_awesome_python_app import __version__
|
|
|
20
20
|
console = Console(stderr=True)
|
|
21
21
|
|
|
22
22
|
CUSTOM_TEMPLATE_SENTINEL = "__custom_template__"
|
|
23
|
-
_ANSI_RESET = "\033[0m"
|
|
24
|
-
_CATEGORY_PALETTE = (
|
|
25
|
-
"\033[33m", # yellow
|
|
26
|
-
"\033[32m", # green
|
|
27
|
-
"\033[36m", # cyan
|
|
28
|
-
"\033[35m", # magenta
|
|
29
|
-
"\033[34m", # blue
|
|
30
|
-
)
|
|
31
23
|
|
|
32
24
|
|
|
33
25
|
@dataclass(frozen=True)
|
|
@@ -172,13 +164,6 @@ def short_category_label(category_name: str) -> str:
|
|
|
172
164
|
return " ".join(words[:2]) or category_name
|
|
173
165
|
|
|
174
166
|
|
|
175
|
-
def _color_category(slug: str, label: str) -> str:
|
|
176
|
-
if os.environ.get("NO_COLOR"):
|
|
177
|
-
return label
|
|
178
|
-
idx = sum(ord(char) for char in slug) % len(_CATEGORY_PALETTE)
|
|
179
|
-
return f"{_CATEGORY_PALETTE[idx]}{label}{_ANSI_RESET}"
|
|
180
|
-
|
|
181
|
-
|
|
182
167
|
def _category_map(data: dict[str, Any]) -> dict[str, str]:
|
|
183
168
|
return {
|
|
184
169
|
str(category.get("slug", "")): str(category.get("name", ""))
|
|
@@ -256,8 +241,10 @@ def build_template_choices(data: dict[str, Any]) -> list[TemplateChoice]:
|
|
|
256
241
|
label_suffix = " · " + ", ".join(str(label) for label in labels[:3])
|
|
257
242
|
description = str(template.get("description", "")).strip()
|
|
258
243
|
description_suffix = f" — {description}" if description else ""
|
|
244
|
+
# Plain text only: questionary.autocomplete wraps choices in HTML for
|
|
245
|
+
# match highlighting, so ANSI / markup here raises XML parse errors.
|
|
259
246
|
title = (
|
|
260
|
-
f"{
|
|
247
|
+
f"{badge} "
|
|
261
248
|
f"{template.get('name', slug)} ({slug})"
|
|
262
249
|
f"{label_suffix}{description_suffix}"
|
|
263
250
|
)
|
create_awesome_python_app/cli.py
CHANGED
{create_awesome_python_app-0.2.0.dist-info → create_awesome_python_app-0.2.2.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: create-awesome-python-app
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Composable scaffolding CLI for production-ready Python apps
|
|
5
5
|
Project-URL: Homepage, https://github.com/Create-Python-App/create-python-app
|
|
6
6
|
Project-URL: Repository, https://github.com/Create-Python-App/create-python-app
|
|
@@ -8,7 +8,7 @@ Project-URL: Issues, https://github.com/Create-Python-App/create-python-app/issu
|
|
|
8
8
|
Project-URL: Changelog, https://github.com/Create-Python-App/create-python-app/blob/main/CHANGELOG.md
|
|
9
9
|
License-Expression: MIT
|
|
10
10
|
Requires-Python: >=3.12
|
|
11
|
-
Requires-Dist: create-python-app-core>=0.2.
|
|
11
|
+
Requires-Dist: create-python-app-core>=0.2.2
|
|
12
12
|
Requires-Dist: questionary>=2.1.1
|
|
13
13
|
Requires-Dist: rich>=15.0.0
|
|
14
14
|
Requires-Dist: typer>=0.27.0
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
create_awesome_python_app/__init__.py,sha256=zyHa8jk_E_HCeu1vlupYAWdBZUI34ETHbMgMgjJEcPE,60
|
|
2
|
+
create_awesome_python_app/cache.py,sha256=eHKUlunGexZKYJo0HDNoBoOVq0DjLyRYgEe_wUh4Fk0,11812
|
|
3
|
+
create_awesome_python_app/catalog.py,sha256=ljpyTFhaUo7t43CbQ8y86D_GfLOo7hE7yQwNojRUTG0,16612
|
|
4
|
+
create_awesome_python_app/cli.py,sha256=aNDUiIgRiks6nV72wrAbLit4yxD6VpCCv8Msp9QDXa4,20453
|
|
5
|
+
create_awesome_python_app-0.2.2.dist-info/METADATA,sha256=rlAPeMlrpm37YAgoHeFZd0UPnE9L-4uU8v01VPG1hpM,1428
|
|
6
|
+
create_awesome_python_app-0.2.2.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
7
|
+
create_awesome_python_app-0.2.2.dist-info/entry_points.txt,sha256=rszFbUjY-lvMDZ96zX1lALJwgD1mI3CkUuNyF2qqjYo,81
|
|
8
|
+
create_awesome_python_app-0.2.2.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
create_awesome_python_app/__init__.py,sha256=S9MWGoHjvLmqcRmacr45bUQAsiBLBZTWyjtKVqbDtvA,60
|
|
2
|
-
create_awesome_python_app/cache.py,sha256=eHKUlunGexZKYJo0HDNoBoOVq0DjLyRYgEe_wUh4Fk0,11812
|
|
3
|
-
create_awesome_python_app/catalog.py,sha256=-VQOrXv7Qda0RgIwHktBLKIiC-W2XZ02k1961mPPD_Q,16898
|
|
4
|
-
create_awesome_python_app/cli.py,sha256=aWaRQYZp2ocxOT_NQ6SFzS01nbvYkayUdg8MlpAeDXE,20482
|
|
5
|
-
create_awesome_python_app-0.2.0.dist-info/METADATA,sha256=505YpWYtLsW5MGpl3mVBPTm9CnveKURW30_TjLVmyGU,1428
|
|
6
|
-
create_awesome_python_app-0.2.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
7
|
-
create_awesome_python_app-0.2.0.dist-info/entry_points.txt,sha256=rszFbUjY-lvMDZ96zX1lALJwgD1mI3CkUuNyF2qqjYo,81
|
|
8
|
-
create_awesome_python_app-0.2.0.dist-info/RECORD,,
|
{create_awesome_python_app-0.2.0.dist-info → create_awesome_python_app-0.2.2.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|