Package: president-speech
president-speechPresidents of the Republic of Korea SpeechesParquet, provided in the form of sqlite db fileComes with simple cliSUMMARY OF PROVIDED DATAdata per case can be checked in the following wayshttps://www.pa.go.kr/research/contents/speech/index.jsp?spMode=view&catid=c_pa02062&artid={division_number}some data show date values as empty columns or years onlypresidentsizemin(date)max(date)이승만9981948.07.241959.03.10윤보선31960.08.131960.09.15박정희12701963.12.171979.10.26최규하581979.10.271980.08.16전두환6021980.06.051987.02.16노태우6011988.02.251992.10.05김영삼7281993.01.091998.01.23김대중8221998.02.252003.02.17노무현7802003.02.252008.01.28이명박10272008.02.252013.02.07박근혜4932013.02.242016.10.26문재인13892017.05.102022.03.30>>>df.info()<class'pandas.core.frame.DataFrame'>Index:8771entries,5368to102591Datacolumns(total7columns):#   Column           Non-Null Count  Dtype----------------------------0division_number8771non-nullint641president8771non-nullobject2title8771non-nullobject3date8771non-nullobject4location8771non-nullobject5kind8771non-nullobject6speech_text8771non-nullobjectdtypes:int64(1),object(6)memoryusage:548.2+KBUse$pipinstallpresident-speech>>>frompresident_speech.db.parquet_interpreterimportread_parquet,get_parquet_full_path>>>get_parquet_full_path()'/Users/f16/code/edu/president-speech/.venv/lib/python3.8/site-packages/president_speech/db/parquet/president_speech_ko.parquet'>>>read_parquet().head(3)division_numberpresidenttitledatelocationkindspeech_text53681305368박정희제5대대통령취임식대통령취임사1963.12.17국내취임사\n\n\n단군성조가천혜의이강토위에국기를닦으신지반만년,연면히이어온...53691305369박정희국회개회식치사1963.12.17국내기념사존경하는국회의장,의원제위그리고내외귀빈여러분!오늘이뜻깊은제3공화국의...53701305370박정희신년메시지1964.01.01국내신년사친애하는국내외의동포여러분!혁명의고된시련을겪고민정이양으로매듭을지은...>>>Use Cli$ps-wordcount-husage:ps-word-count[-h][-t|-p]word

Wordfrequencyoutputfrompreviouspresidentialspeeches

positionalarguments:wordSearchword

optionalarguments:-h,--helpshowthishelpmessageandexit-t,--tableTableFormatOutput-p,--plotFormatOutput

$ps-word-count-p독립
문재인[954]****************************************
이승만[430]******************
박정희[361]****************
이명박[176]********
김대중[171]********
전두환[169]********
노무현[167]*******
노태우[131]******
김영삼[114]*****
박근혜[71]***
최규하[4]*
윤보선[0]$ps-word-count-t독립||president|mention||---:|:------------|----------:||0|문재인|954||1|이승만|430||2|박정희|361||3|이명박|176||4|김대중|171||5|전두환|169||6|노무현|167||7|노태우|131||8|김영삼|114||9|박근혜|71||10|최규하|4||11|윤보선|0|Ref대통령기록관 연설기록대통령기록관_행정안전부 대통령기록관_대통령연설기록 연설문 APIhttps://stackoverflow.com/questions/45470964/python-extracting-text-from-webpage-pdfhttps://pypdf.readthedocs.io/en/latest/user/extract-text.htmlhttps://setuptools.pypa.io/en/latest/userguide/datafiles.htmlhttps://frhyme.github.io/python-basic/py_no_break_space/https://pypi.org/project/pandas-downcast/https://realpython.com/python-project-documentation-with-mkdocs/https://publivate.tistory.com/245modin, dask, vaex => pandashttps://www.fileformat.info/info/emoji/list.htmhttps://discuss.streamlit.io/t/version-1-26-0/50056https://github.com/ai-yash/st-chathttps://konlpy.org/ko/latest/index.htmlhttps://liveyourit.tistory.com/57https://dongdongfather.tistory.com/70https://docs.python.org/3/library/collections.html#collections.CounterDevelopment environment setting$gitclone...
$cdpresident-speech
$pdmvenvcreate
$source.venv/bin/activate
$pdminstall$pdmadd-dGtestpytestpytest-cov
$pdmtest$pdmptest

$pdmctest
----------coverage:platformdarwin,python3.9.18-final-0----------
NameStmtsMissCover
--------------------------------------------------------------------
src/president_speech/__init__.py00100%
src/president_speech/db/__init__.py00100%
src/president_speech/db/connection_manager.py17382%
src/president_speech/db/parquet_interpreter.py25196%
src/president_speech/db/search.py15193%
tests/__init__.py00100%
tests/test_parquet_interpreter.py110100%
tests/test_search.py50100%
--------------------------------------------------------------------
TOTAL73593%Deploy to fly.io with Docker Technology$dockerbuild-tpresident-speech-webapp.
$dockerrun-it--rm-p7942:8051president-speech-webapp

$flydeploy
Visityournewlydeployedappathttps://president-speech.fly.dev/Give it a try. And opinions are always welcome. Of course, it's PR.https://president-speech.fly.dev/