Skip to content

Commit 87d8737

Browse files
committed
Make project validation
1 parent 93f409d commit 87d8737

File tree

15 files changed

+138
-1527
lines changed

15 files changed

+138
-1527
lines changed

report/report.aux

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,22 @@
1313
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {section}{\numberline {I}Objective}{1}}
1414
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {section}{\numberline {II}Project development}{2}}
1515
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {section}{\numberline {III}Project validation}{2}}
16-
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {section}{\numberline {IV}Conclusion}{2}}
17-
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {subsection}{\numberline {\unhbox \voidb@x \hbox {IV-A}}Discussion}{2}}
1816
\@writefile{lof}{\defcounter {refsection}{0}\relax }\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces WSGI Sequence diagram. The Client send a message that when it arrives on the host computer it goes to the WSGI HTTP server socket. The WSGI process the message and passes it to the Web Framework application. The web framework processes the message and send the response message to the WSGI server. The WSGI sends the message back to the client though its HTTP socket.}}{3}}
1917
\newlabel{fig_wsgi}{{1}{3}}
2018
\@writefile{lof}{\defcounter {refsection}{0}\relax }\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces Project Class architecture. The Classes HTTP Server, Simple Handler, HTTP Handler are from standard Python libraries and they perform basic HTTP protocol operations, therefore they were not implemented for the scope of this project and some classes used them or inherited from them.}}{3}}
2119
\newlabel{fig_project}{{2}{3}}
20+
\@writefile{lof}{\defcounter {refsection}{0}\relax }\@writefile{lof}{\contentsline {figure}{\numberline {3}{\ignorespaces Example HTML page with embedded CSS and with images files referencied.}}{4}}
21+
\newlabel{fig_site}{{3}{4}}
22+
\newlabel{code_test_query}{{1}{4}}
23+
\@writefile{lol}{\defcounter {refsection}{0}\relax }\@writefile{lol}{\contentsline {lstlisting}{\numberline {1}Example server file that uses our Python Web Framework}{4}}
2224
\abx@aux@cite{ford}
2325
\abx@aux@segm{0}{0}{ford}
2426
\abx@aux@refcontextdefaultsdone
25-
\abx@aux@defaultrefcontext{0}{ford}{nty/global//global/global}
2627
\abx@aux@defaultrefcontext{0}{c1}{nty/global//global/global}
2728
\abx@aux@defaultrefcontext{0}{c2}{nty/global//global/global}
2829
\abx@aux@defaultrefcontext{0}{c3}{nty/global//global/global}
29-
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {subsection}{\numberline {\unhbox \voidb@x \hbox {IV-B}}Conclusion}{4}}
30+
\newlabel{code_test_query}{{2}{5}}
31+
\@writefile{lol}{\defcounter {refsection}{0}\relax }\@writefile{lol}{\contentsline {lstlisting}{\numberline {2}Test PUT query}{5}}
32+
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {section}{\numberline {IV}Conclusion}{5}}
33+
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {subsection}{\numberline {\unhbox \voidb@x \hbox {IV-A}}Discussion}{5}}
34+
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {subsection}{\numberline {\unhbox \voidb@x \hbox {IV-B}}Conclusion}{5}}

report/report.bbl

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,6 @@
1919

2020
\refsection{0}
2121
\datalist[entry]{nty/global//global/global}
22-
\entry{ford}{online}{}
23-
\name{author}{1}{}{%
24-
{{hash=0551ebfa7fb1783ea2f8d62ca6d26fe5}{%
25-
family={Ford},
26-
familyi={F\bibinitperiod},
27-
given={Rebecca},
28-
giveni={R\bibinitperiod}}}%
29-
}
30-
\strng{namehash}{0551ebfa7fb1783ea2f8d62ca6d26fe5}
31-
\strng{fullhash}{0551ebfa7fb1783ea2f8d62ca6d26fe5}
32-
\strng{bibnamehash}{0551ebfa7fb1783ea2f8d62ca6d26fe5}
33-
\strng{authorbibnamehash}{0551ebfa7fb1783ea2f8d62ca6d26fe5}
34-
\strng{authornamehash}{0551ebfa7fb1783ea2f8d62ca6d26fe5}
35-
\strng{authorfullhash}{0551ebfa7fb1783ea2f8d62ca6d26fe5}
36-
\field{sortinit}{F}
37-
\field{sortinithash}{669c706c6f1fbf3b5a83d26f1d9e9e72}
38-
\field{labelnamesource}{author}
39-
\field{labeltitlesource}{title}
40-
\field{month}{8}
41-
\field{title}{Earthquake: Twitter Users Learned of Tremors Seconds Before Feeling Them}
42-
\field{year}{2011}
43-
\field{dateera}{ce}
44-
\verb{urlraw}
45-
\verb http://www.hollywoodreporter.com/news/earthquake-twitter-users-learned-tremors-226481
46-
\endverb
47-
\verb{url}
48-
\verb http://www.hollywoodreporter.com/news/earthquake-twitter-users-learned-tremors-226481
49-
\endverb
50-
\endentry
5122
\entry{c1}{online}{}
5223
\name{author}{1}{}{%
5324
{{hash=0193258f044cf94524524530f41e67eb}{%
@@ -136,6 +107,7 @@
136107
\endverb
137108
\endentry
138109
\enddatalist
110+
\missing{ford}
139111
\endrefsection
140112
\endinput
141113

report/report.bib

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
%% generated by the `filecontents' environment
33
%% from source `report' on 2019/12/06.
44
%%
5-
@online{ford,
6-
author = {Ford, Rebecca},
7-
title = {Earthquake: Twitter Users Learned of Tremors
8-
Seconds Before Feeling Them},
9-
date = {2011-08},
10-
url = {http://www.hollywoodreporter.com/news/earthquake-twitter-users-learned-tremors-226481}
11-
}
5+
126
@online{c1,
137
author = {Rahmonov, Jahongir},
148
title = {How to write a Python web framework. Part I.},

report/report.blg

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
[0] Config.pm:302> INFO - This is Biber 2.11
2-
[0] Config.pm:305> INFO - Logfile is 'report.blg'
3-
[117] biber-darwin:313> INFO - === Fri Dec 6, 2019, 18:57:14
4-
[229] Biber.pm:371> INFO - Reading 'report.bcf'
5-
[619] Biber.pm:857> INFO - Found 4 citekeys in bib section 0
6-
[785] Biber.pm:3976> INFO - Processing section 0
7-
[836] Biber.pm:4136> INFO - Looking for bibtex format file 'report.bib' for section 0
8-
[838] bibtex.pm:1500> INFO - LaTeX decoding ...
9-
[849] bibtex.pm:1316> INFO - Found BibTeX data source 'report.bib'
10-
[883] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
11-
[883] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized'
12-
[883] Biber.pm:3804> INFO - Sorting list 'nty/global//global/global' of type 'entry' with template 'nty' and locale 'en-US'
13-
[883] Biber.pm:3810> INFO - No sort tailoring available for locale 'en-US'
14-
[921] bbl.pm:617> INFO - Writing 'report.bbl' with encoding 'UTF-8'
15-
[940] bbl.pm:720> INFO - Output to report.bbl
2+
[1] Config.pm:305> INFO - Logfile is 'report.blg'
3+
[67] biber-darwin:313> INFO - === Fri Dec 6, 2019, 19:55:21
4+
[102] Biber.pm:371> INFO - Reading 'report.bcf'
5+
[296] Biber.pm:857> INFO - Found 4 citekeys in bib section 0
6+
[313] Biber.pm:3976> INFO - Processing section 0
7+
[330] Biber.pm:4136> INFO - Looking for bibtex format file 'report.bib' for section 0
8+
[331] bibtex.pm:1500> INFO - LaTeX decoding ...
9+
[338] bibtex.pm:1316> INFO - Found BibTeX data source 'report.bib'
10+
[354] Utils.pm:193> WARN - I didn't find a database entry for 'ford' (section 0)
11+
[375] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
12+
[375] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized'
13+
[375] Biber.pm:3804> INFO - Sorting list 'nty/global//global/global' of type 'entry' with template 'nty' and locale 'en-US'
14+
[376] Biber.pm:3810> INFO - No sort tailoring available for locale 'en-US'
15+
[389] bbl.pm:617> INFO - Writing 'report.bbl' with encoding 'UTF-8'
16+
[391] bbl.pm:720> INFO - Output to report.bbl
17+
[391] Biber.pm:110> INFO - WARNINGS: 1

report/report.fdb_latexmk

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Fdb version 3
2-
["biber report"] 1575669430 "report.bcf" "report.bbl" "report" 1575670776
3-
"report.bcf" 1575670775 90634 49c926cc14eeaeb2040fcbed52187451 ""
4-
"report.bib" 1575669427 953 136a5e9f270d3440e3da12a974d469a8 ""
2+
["biber report"] 1575672918 "report.bcf" "report.bbl" "report" 1575672930
3+
"report.bcf" 1575672930 90634 49c926cc14eeaeb2040fcbed52187451 ""
4+
"report.bib" 1575672915 700 625133a68a7af4cca60ebe59d6aeb3ba ""
55
(generated)
66
"report.bbl"
77
"report.blg"
8-
["pdflatex"] 1575670772 "report.tex" "report.pdf" "report" 1575670776
8+
["pdflatex"] 1575672926 "report.tex" "report.pdf" "report" 1575672930
99
"/usr/local/texlive/2018/texmf-dist/fonts/enc/dvips/base/8r.enc" 1480098666 4850 80dc9bab7f31fb78a000ccfed0e27cab ""
1010
"/usr/local/texlive/2018/texmf-dist/fonts/map/fontname/texfonts.map" 1511824771 3332 103109f5612ad95229751940c61aada0 ""
1111
"/usr/local/texlive/2018/texmf-dist/fonts/tfm/adobe/times/ptmb7t.tfm" 1480098689 2172 fd0c924230362ff848a33632ed45dc23 ""
12+
"/usr/local/texlive/2018/texmf-dist/fonts/tfm/adobe/times/ptmb8r.tfm" 1480098689 4524 6bce29db5bc272ba5f332261583fee9c ""
1213
"/usr/local/texlive/2018/texmf-dist/fonts/tfm/adobe/times/ptmbi7t.tfm" 1480098689 2228 e564491c42a4540b5ebb710a75ff306c ""
1314
"/usr/local/texlive/2018/texmf-dist/fonts/tfm/adobe/times/ptmr7t.tfm" 1480098689 2124 2601a75482e9426d33db523edf23570a ""
1415
"/usr/local/texlive/2018/texmf-dist/fonts/tfm/adobe/times/ptmr8r.tfm" 1480098689 4408 25b74d011a4c66b7f212c0cc3c90061b ""
@@ -31,8 +32,11 @@
3132
"/usr/local/texlive/2018/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb" 1480098733 35752 024fb6c41858982481f6968b5fc26508 ""
3233
"/usr/local/texlive/2018/texmf-dist/fonts/type1/public/amsfonts/cm/cmr6.pfb" 1480098733 32734 69e00a6b65cedb993666e42eedb3d48f ""
3334
"/usr/local/texlive/2018/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb" 1480098733 32726 0a1aea6fcd6468ee2cf64d891f5c43c8 ""
35+
"/usr/local/texlive/2018/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy8.pfb" 1480098733 32626 4f5c1b83753b1dd3a97d1b399a005b4b ""
36+
"/usr/local/texlive/2018/texmf-dist/fonts/type1/urw/times/utmb8a.pfb" 1480098746 44729 811d6c62865936705a31c797a1d5dada ""
3437
"/usr/local/texlive/2018/texmf-dist/fonts/type1/urw/times/utmr8a.pfb" 1480098746 46026 6dab18b61c907687b520c72847215a68 ""
3538
"/usr/local/texlive/2018/texmf-dist/fonts/type1/urw/times/utmri8a.pfb" 1480098746 45458 a3faba884469519614ca56ba5f6b1de1 ""
39+
"/usr/local/texlive/2018/texmf-dist/fonts/vf/adobe/times/ptmb7t.vf" 1480098758 1372 788387fea833ef5963f4c5bffe33eb89 ""
3640
"/usr/local/texlive/2018/texmf-dist/fonts/vf/adobe/times/ptmr7t.vf" 1480098758 1380 0ea3a3370054be6da6acd929ec569f06 ""
3741
"/usr/local/texlive/2018/texmf-dist/fonts/vf/adobe/times/ptmrc7t.vf" 1480098758 1948 7330aeef3af211edff3b35fb2c12a0fd ""
3842
"/usr/local/texlive/2018/texmf-dist/fonts/vf/adobe/times/ptmri7t.vf" 1480098758 1384 a9d8adaf491ce34e5fba99dc7bbe5f39 ""
@@ -78,6 +82,7 @@
7882
"/usr/local/texlive/2018/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg" 1480098833 678 4792914a8f45be57bb98413425e4c7af ""
7983
"/usr/local/texlive/2018/texmf-dist/tex/latex/listings/listings.cfg" 1480098833 1827 d72ad54409ca5c1068a1939c63441bd2 ""
8084
"/usr/local/texlive/2018/texmf-dist/tex/latex/listings/listings.sty" 1480098833 80336 ff90c926c3d7bfdaa3d80ca57123b0bb ""
85+
"/usr/local/texlive/2018/texmf-dist/tex/latex/listings/lstlang1.sty" 1480098833 93445 48e5be20ba2d0a2ca5c4ce7e292a4bbc ""
8186
"/usr/local/texlive/2018/texmf-dist/tex/latex/listings/lstmisc.sty" 1480098833 77028 c3eb00afb55a32bc13ca8da7f5234377 ""
8287
"/usr/local/texlive/2018/texmf-dist/tex/latex/logreq/logreq.def" 1480098833 1620 fb1c32b818f2058eca187e5c41dfae77 ""
8388
"/usr/local/texlive/2018/texmf-dist/tex/latex/logreq/logreq.sty" 1480098833 6187 b27afc771af565d3a9ff1ca7d16d0d46 ""
@@ -96,16 +101,19 @@
96101
"/usr/local/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map" 1523934492 2717033 f61a5287d9c22a39a74f1979fe3f905c ""
97102
"/usr/local/texlive/2018/texmf-var/web2c/pdftex/pdflatex.fmt" 1523934516 4220280 10cab8fbd7c5a7c52aba9917e190d018 ""
98103
"/usr/local/texlive/2018/texmf.cnf" 1523934483 577 0b39adfd7c93507ff20c9c14c2f1a33f ""
104+
"imgs/example_page.png" 1575670672 316109 2e19a3a4b4b27e14fb450fe4be4648dc ""
99105
"imgs/project.png" 1575669456 82038 00a00fa00e952666cd356bd23924060a ""
100106
"imgs/wsgi.jpg" 1575669472 69981 22f96743ad3f63659ea646d739c7704a ""
101-
"report.aux" 1575670775 2676 a82e0fbb8aa1dc6b2c1b1d6475fcb6ff ""
102-
"report.bbl" 1575669434 5200 bd4c118fe53b029ed0b388ffa9b45386 "biber report"
103-
"report.run.xml" 1575670775 2315 8261b84e3c23e75d340140b996610126 ""
104-
"report.tex" 1575670771 8237 e0e98f2c57d69c40b8fe7f01a32531b7 ""
107+
"report.aux" 1575672930 3212 882956130f338324922e0e99fa9e52fe ""
108+
"report.bbl" 1575672922 3999 a9d294d188a450a8897223e24031a4a2 "biber report"
109+
"report.run.xml" 1575672930 2315 8261b84e3c23e75d340140b996610126 ""
110+
"report.tex" 1575672918 9935 53997efcc79f7e83c7e7c61cd74e001f ""
111+
"texts/test_query.txt" 1575672206 48 573450d764e9c886a07ecdeeb7b60ada ""
112+
"texts/usage.py" 1575671449 728 4cc8f59d8c7d4afe315dd17ff9c81926 ""
105113
(generated)
106-
"report.bib"
107-
"report.pdf"
108114
"report.log"
109115
"report.aux"
110-
"report.run.xml"
111116
"report.bcf"
117+
"report.bib"
118+
"report.run.xml"
119+
"report.pdf"

report/report.fls

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,31 @@ INPUT ./imgs/wsgi.jpg
198198
INPUT ./imgs/project.png
199199
INPUT ./imgs/project.png
200200
INPUT ./imgs/project.png
201+
INPUT ./imgs/example_page.png
202+
INPUT ./imgs/example_page.png
203+
INPUT ./imgs/example_page.png
204+
INPUT ./texts/usage.py
205+
INPUT /usr/local/texlive/2018/texmf-dist/tex/latex/listings/lstlang1.sty
206+
INPUT /usr/local/texlive/2018/texmf-dist/tex/latex/listings/lstlang1.sty
207+
INPUT ./texts/usage.py
208+
INPUT ./texts/usage.py
209+
INPUT /usr/local/texlive/2018/texmf-dist/fonts/vf/adobe/times/ptmb7t.vf
210+
INPUT /usr/local/texlive/2018/texmf-dist/fonts/tfm/adobe/times/ptmb8r.tfm
211+
INPUT /usr/local/texlive/2018/texmf-dist/fonts/vf/adobe/times/ptmb7t.vf
212+
INPUT /usr/local/texlive/2018/texmf-dist/fonts/tfm/adobe/times/ptmb8r.tfm
213+
INPUT /usr/local/texlive/2018/texmf-dist/fonts/vf/adobe/times/ptmri7t.vf
214+
INPUT /usr/local/texlive/2018/texmf-dist/fonts/tfm/adobe/times/ptmri8r.tfm
215+
INPUT ./texts/test_query.txt
216+
INPUT ./texts/test_query.txt
217+
INPUT ./texts/test_query.txt
201218
INPUT report.aux
202219
INPUT report.run.xml
203220
OUTPUT report.run.xml
204221
INPUT /usr/local/texlive/2018/texmf-dist/fonts/enc/dvips/base/8r.enc
205222
INPUT /usr/local/texlive/2018/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb
206223
INPUT /usr/local/texlive/2018/texmf-dist/fonts/type1/public/amsfonts/cm/cmr6.pfb
207224
INPUT /usr/local/texlive/2018/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb
225+
INPUT /usr/local/texlive/2018/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy8.pfb
226+
INPUT /usr/local/texlive/2018/texmf-dist/fonts/type1/urw/times/utmb8a.pfb
208227
INPUT /usr/local/texlive/2018/texmf-dist/fonts/type1/urw/times/utmr8a.pfb
209228
INPUT /usr/local/texlive/2018/texmf-dist/fonts/type1/urw/times/utmri8a.pfb

report/report.pdf

198 KB
Binary file not shown.

report/report.synctex.gz

21.5 KB
Binary file not shown.

report/report.tex

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,48 @@ \section{Project development}
136136

137137
%-----------------------------------------------------------------------------
138138
\section{Project validation}
139-
In order to make every thing work, both the Python Web framework server and the WSGI were successfuly developed and they can be accessed by the \i{Github Repository}$^2$.
139+
In order to make every thing work, both the Python Web framework server and the WSGI were successfuly developed and they can be accessed by the \i{Github Repository}$^2$. The usage process can be followed by the repository \i{Readme} file.
140+
141+
In order to test the code follow the steps:
142+
\begin{itemize}
143+
\item Clone the repository$^2$.
144+
\item Make sure to have python3 installed.
145+
\item Go to the project folder.
146+
\item Install the project dependencies: ``pip3 install -r requirements.txt''
147+
\item Run the server python file: ``python3 server.py''
148+
\item Now you can access the server by ``http://127.0.0.1:8080''
149+
\item On the example there are the /, /about, and /put\_test\_route routes.
150+
\item The / route returns a simple text answer with any HTTP method you send to it.
151+
\item The /about route returns a HTTP web page as answer to any HTTP method to that route.
152+
\item The /put\_test\_route route tests the PUT HTTP method and give a different response to the PUT method and it accepts a query. An exemple would be as shown on Code \ref{code_test_query}.
153+
\end{itemize}
154+
155+
The project also supports HTML files. You just have to put them on ``templates'' folder as done on the download repository example. As an example by going to the /about route it is getted an HTML website as shown on Figure \ref{fig_site}.
140156

141-
The usage process can be followed by the repository \i{Readme} file.
157+
\begin{figure}
158+
\begin{center}
159+
\includegraphics[width=3.0in]{./imgs/example_page.png}
160+
\caption{Example HTML page with embedded CSS and with images files referencied.}
161+
\label{fig_site}
162+
\end{center}
163+
\end{figure}
164+
165+
To summaryse all that information it is possible to follow the usage of the Web Framework on the Code \ref{}
166+
167+
\lstinputlisting[
168+
language=python,
169+
caption={Example server file that uses our Python Web Framework },
170+
label={code_test_query},
171+
style=cStyle,
172+
]{./texts/usage.py}
173+
174+
\lstinputlisting[
175+
language=python,
176+
caption={Test PUT query},
177+
label={code_test_query},
178+
style=cStyle,
179+
]{./texts/test_query.txt}
142180

143-
The Web framework also supports templates files. It is
144181
\blfootnote{$^2$https://github.com/CarlosMatheus/Python-Web-Framework}
145182

146183
%-----------------------------------------------------------------------------

report/texts/decorator_router.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@server.route("/about")

0 commit comments

Comments
 (0)