CustomShell
1.0.0
이 패키지는 사용자 정의 가능한 쉘을 구현합니다.
이 패키지는 다음과 같습니다.
pip install CustomShellpython3 -m CustomShell
python3 CustomShell.pyz
Shell from CustomShell import main
main ()
from CustomShell import Shell
shell = Shell ()
shell . cmdloop ()기본 구성 파일 경로 :
C:\Users\<username>\Shell.ini~/Shell.ini [DISPLAY]
prompt = {E} {color}{green}{U}{color}{reset}@{color}{green}{N}{color}{reset}:{color}{green}{P}{color}{reset}$
start_intro = echo {a}
end_intro = echo {a}
intro = {S} {V} [{s}, {o}] {n}Python {v} [{e}]{n}CustomShell {c} [GPL-3.0]{n}{n}{color}{bgwhite}{color}{bold}{blue}*** {D} {T} - Welcome in CustomShell {U} ! ***{color}{reset}{n}
start_quit = echo {a}
end_quit = echo {a}
quit = {n}{color}{bgwhite}{color}{underline}{red}*** {D} {T} - Bye {U} ! ***{color}{reset}{n}
[ALIAS]
pyc = python -c
pym = python -m
{U} = username,
{N} = hostname,
{P} = current path,
{p} = directory,
{T} = time,
{D} = date,
{o} = operatoring system (win32, linux, ...),
{S} = system (Windows, Linux, ...),
{s} = system (nt, posix...),
{n} = new line (n),
{a} = ASCII character 7 (sound),
{e} = python executable,
{v} = python version,
{V} = system version,
{c} = CustomShell version,
{E} = status of the last command execution,
{black} {red} {green} {other} {blue} {purple} {cyan} {white} {bgblack} {bgred} {bggreen} {bgother} {bgblue} {bgpurple} {bgcyan} {bgwhite} {texte} {bold} {underline} {reset} {color}
{color}{bgwhite} .{color}{bold}{blue} .{color}{underline}{red} .{color}{reset} . GPL, 버전 3에 따라 라이센스가 부여되었습니다.