WebScripts
3.0.38 WebScripts
이 도구는 스크립트를 실행하고 웹 인터페이스에서 결과를 표시합니다 (여기에서 약간의 프레젠테이션이 여기 및 내 github.io에서 사용할 수 있음).
CLI (콘솔) 스크립트와 스크립팅 환경을 지식없이 팀이나 사람들과 공유하는 안전하고 안전하며 쉬운 방법을 만듭니다.
text , json 및 csv 컨텐츠 유형 (XSS Protection) 용 JavaScript Parser 및 Formatterhtml 컨텐츠 유형에 대한 활성 보호웹 스크립트 사용 - YouTube 비디오
이 패키지는 다음과 같습니다.
Windows에서 선택 사항 :
python3 -m venv WebScripts # Make a virtual environment for WebScripts
source WebScripts/bin/activate # Activate your virtual environment
sudo WebScripts/bin/python3 -m pip install --use-pep517 WebScripts --install-option " --admin-password=<your password> " --install-option " --owner=<owner> " --install-option " --directory=<directory> " # Install WebScripts using setup.py with pip
sudo WebScripts/bin/python3 -m WebScripts.harden -p ' <my admin password> ' -o ' <my webscripts user> ' -d ' WebScripts/ ' # Harden default configurations
cd WebScripts # Use your virtual environment to start WebScripts
WebScripts # Start WebScripts server for demonstration (for production see deployment documentation) WebScripts
python3 -m WebScripts
WebScripts --help
WebScripts -h # Print help message and command line options
WebScripts --interface " 192.168.1.2 " --port 80
WebScripts -i " 192.168.1.2 " -p 80 # Change interface and port
# /! do not use the --debug option on the production environment
WebScripts --debug
WebScripts -d # Print informations about server configuration in errors pages (404 and 500)
# /! do not use the --security option on the production environment
WebScripts --security
WebScripts -s # Do not use HTTP security headers (for debugging)
WebScripts --accept-unauthenticated-user --accept-unknow-user
# Accept unauthenticated user import WebScripts
WebScripts . main () from WebScripts import Configuration , Server , main
from wsgiref import simple_server
config = Configuration ()
config . add_conf (
interface = "" ,
port = 8000 ,
scripts_path = [
"./scripts/account" ,
"./scripts/passwords"
],
json_scripts_config = [
"./config/scripts/*.json"
],
ini_scripts_config = [
"./config/scripts/*.ini"
],
documentations_path = [
"./doc/*.html"
],
js_path = [
"./static/js/*.js"
],
statics_path = [
"./static/html/*.html" ,
"./static/css/*.css" ,
"./static/images/*.jpg" ,
"./static/pdf/*.pdf"
],
)
config . set_defaults ()
config . check_required ()
config . get_unexpecteds ()
config . build_types ()
server = Server ( config )
httpd = simple_server . make_server ( server . interface , server . port , server . app )
httpd . serve_forever ()git clone https://github.com/mauricelambert/WebScripts.git
cd WebScripts
python3.8 WebScripts/scripts/to_3.8/to_3.8.py
python3.8 setup38.py install
python3.8 -m WebScripts38 # Launch this commands line:
# - git clone https://github.com/mauricelambert/WebScripts.git
# - cd WebScripts
# - python3.8 WebScripts/scripts/to_3.8/to_3.8.py
# - python3.8 setup38.py install
# And use the package:
import WebScripts38
WebScripts38 . main ()색인 페이지 (Dark) 텍스트 스크립트 (Dark) HTML 스크립트 (Light)
GPL, 버전 3에 따라 라이센스가 부여되었습니다.