Package: classroom-notice-board-rest-clinet
classroom-notice-board-rest-clinethttps://github.com/edu-data-mario/classroom-notice-boardrest clinetUSEimport ↓$pipinstallclassroom-notice-board-rest-clinet

$python
Python3.7.13(default,Jul132022,10:21:28)[Clang13.0.0(clang-1300.0.29.30)]ondarwin
Type"help","copyright","credits"or"license"formoreinformation.
>>>fromclassroom_notice_board_rest_clinet.restclientimportupdate_poster
>>>update_poster(message="Stay hungry, stay foolish")204>>>command line interface ↓# You can update the announcements in the dashboard post widget.$class-write-poster-h
usage:class-rest-client[-h][-p|-t]msg[base_url]positionalarguments:msgmessagebase_urldashboardbase_url,default:https://classmario.fly.dev

optionalarguments:-h,--helpshowthishelpmessageandexit-p,--posterupdatesthecontentsofthePOSTERwidget-t,--teamupdatesthecontentsoftheTEAMwidget$class-rest-client-p"Stay hungry, stay foolish"SUCCESSUPDATEPOSTER

$class-show-data-s"poster"{"text":"Stay hungry, stay foolish","id":"poster","updatedAt":1693361875330}# You can view the current data of the dashboard widget.$class-show-data-h
usage:class-show-data[-h][-s|-a][id][max][base_url]positionalarguments:idDashboardwidgetIDmaxMaximumnumberoftimestosearchintheeventstreambase_urldashboardbase_urldefault:https://classmario.fly.dev

optionalarguments:-h,--helpshowthishelpmessageandexit-s,--specificoutputsaSPECIFICidvalue.-a,--allshowsallvalues.However,withinthemaxvalue

$class-show-data-sposter{"text":"Stay hungry, stay foolish","id":"poster","updatedAt":1693375461063}$class-write-team-h
usage:class-write-team[-h][-a|-r]idlabelvalue[max][base_url]positionalarguments:idDashboardTEAMwidgetID-oneTeam|twoTeam|threeTeamlabelLeftvalueofrowtobeaddedtoteamwidgetvalueRightvalueoftherowtobeaddedtotheTeamwidgetmaxMaximumnumberoftimestosearchintheeventstream.default10base_urldashboardbase_urldefault:https://classmario.fly.dev

optionalarguments:-h,--helpshowthishelpmessageandexit-a,--addAddsavaluetotheTeamwidget.-r,--resetClearsallvaluesintheTeamwidgetandregistersonlynewvalues.

$class-write-team-roneTeam홍길동으샤으샤
$class-write-team-roneTeam김좌진"청산리 대첩을 승리"$class-write-team-aoneTeam안중근"히로부미를 저격"$class-write-team-aoneTeam윤봉길"도시락 폭탄"$class-write-team-aoneTeam유관순"3.1운동을 주도"$class-write-team-aoneTeam이봉창"일왕을 암살 시도"$class-write-team-aoneTeam홍범도"봉오동 전투를 승리"$class-write-team-rtwoTeam이완용학부대신$class-write-team-atwoTeam이근택군부대신
$class-write-team-atwoTeam이지용내부대신$class-write-team-atwoTeam박제순외부대신
$class-write-team-atwoTeam권중현농상공부대신
$class-write-team-rthreeTeam김좌진"청산리 대첩의 영웅"$class-write-team-athreeTeam홍범도"대한독립군 총사령관"$class-write-team-athreeTeam지청천"만주군관학교 교장"$class-write-team-athreeTeam이범석"만주군관학교 생도"$class-write-team-athreeTeam이회영"신흥무관학교 설립자"Settings for DevelopmentSimple users don't have to read the part about the development environment below.init$pdminit
Creatingapyproject.tomlforPDM...
PleaseenterthePythoninterpretertouse0./Users/m2/.pyenv/shims/python3(3.7)1./Users/m2/.pyenv/shims/python(3.7)2./Users/m2/.pyenv/shims/python3.11(3.11)3./opt/homebrew/bin/python3.11(3.11)4./Users/m2/.pyenv/versions/3.11.0/bin/python3.11(3.11)5./Users/m2/.pyenv/shims/python3.10(3.10)6./opt/homebrew/bin/python3.10(3.10)Pleaseselect(0):
Wouldyouliketocreateavirtualenvwith/Users/m2/.pyenv/versions/3.7.13/bin/python3?[y/n](y):
Virtualenviscreatedsuccessfullyat/Users/m2/code/edu/classroom-notice-board-rest-clinet/.venv
Istheprojectalibrarythatisinstallable?
Ifyes,wewillneedtoaskafewmorequestionstoincludetheprojectnameandbuildbackend[y/n](n):y
Projectname(classroom-notice-board-rest-clinet):
Projectversion(0.1.0):
Projectdescription():https://github.com/edu-data-mario/classroom-notice-boardrestclinet
Whichbuildbackendtouse?0.pdm-backend1.setuptools2.flit-core3.hatchling4.pdm-pep517
Pleaseselect(0):
License(SPDXname)(MIT):
Authorname(dmario24):
Authoremail(becky2sawyer@gmail.com):data.mario24@gmail.com
Pythonrequires('*'toallowany)(>=3.7):
Projectisinitializedsuccessfully

$ls-al
total32drwxr-xr-x10m2staff32082810:03.
drwxr-xr-x5m2staff16082810:01..
-rw-r--r--1m2staff310282211:26.gitignore
-rw-r--r--1m2staff7082810:01.pdm-python
drwxr-xr-x6m2staff19282810:01.venv
-rw-r--r--1m2staff3782810:03README.md
drwxr-xr-x3m2staff9682810:03__pycache__
-rw-r--r--1m2staff39382810:03pyproject.toml
drwxr-xr-x3m2staff9682810:03src
drwxr-xr-x4m2staff12882810:03tests

$source.venv/bin/activate(classroom-notice-board-rest-clinet-3.7)$init test$pdmadd--devpytest
$pytest
$pytest-s
$pytesttests/test_main.py::test_show_dashboard_data_all-srefhttps://curlconverter.com/curl guide by dashboard widgetHow to package a Python project to be run in the console파이썬 표준 라이브러리에서 권장하는 명령행 파싱 모듈인 argparse 에 대한 소개https://stackoverflow.com/questions/38507593/dashing-get-value-from-a-widget-over-apihttps://pypi.org/project/Faker/(Thank you, Jiyoung)