Skip to content

Commit 3a8d7b5

Browse files
author
PiQrypt
committed
feat: include onboarding assets — static page + piqrypt-welcome entry point
1 parent 7cdd0e8 commit 3a8d7b5

3 files changed

Lines changed: 998 additions & 1 deletion

File tree

cli/onboarding_welcome.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright (c) 2026 PiQrypt Inc.
3+
# e-Soleau: DSO2026006483 (19/02/2026) -- DSO2026009143 (12/03/2026)
4+
"""
5+
piqrypt-welcome — Message affiché après pip install piqrypt.
6+
Appelé automatiquement via l'entry point piqrypt-welcome.
7+
"""
8+
import sys
9+
10+
11+
def main():
12+
if not sys.stdout.isatty():
13+
return
14+
15+
ESC = "\033["
16+
17+
def bold(t): return f"{ESC}1m{t}{ESC}0m"
18+
def cyan(t): return f"{ESC}96m{t}{ESC}0m"
19+
def green(t): return f"{ESC}92m{t}{ESC}0m"
20+
def dim(t): return f"{ESC}2m{t}{ESC}0m"
21+
22+
try:
23+
import piqrypt
24+
version = piqrypt.__version__
25+
except Exception:
26+
version = "installed"
27+
28+
print()
29+
print(bold(f" {'━' * 44}"))
30+
print(bold(f" PiQrypt {version} ✓"))
31+
print(bold(f" {'━' * 44}"))
32+
print()
33+
print(f" {green('→')} {cyan('piqrypt demo')} {dim('live agents in Vigil (30s, no setup)')}")
34+
print(f" {green('→')} {cyan('piqrypt init')} {dim('set up your first agent')}")
35+
print()
36+
print(f" {dim('Docs : https://piqrypt.com · https://aiss-standard.org')}")
37+
print()
38+
39+
40+
if __name__ == "__main__":
41+
main()

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ dev = [
7777
]
7878

7979
[project.scripts]
80-
piqrypt = "cli.main:main"
80+
piqrypt = "cli.main:main"
81+
piqrypt-welcome = "cli.onboarding_welcome:main"
8182

8283
[project.urls]
8384
Homepage = "https://piqrypt.com"
@@ -99,6 +100,7 @@ include = [
99100
exclude = ["tests*", "docs*", "*.tests", "*.tests.*"]
100101

101102
[tool.setuptools.package-data]
103+
"static" = ["onboarding/*.html", "onboarding/**/*"]
102104
"piqrypt" = ["py.typed"]
103105
"vigil" = ["py.typed", "*.html", "*.py"]
104106
"trustgate" = ["py.typed", "profiles/*.yaml", "console/*.html", "*.py"]

0 commit comments

Comments
 (0)