91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

159.352代做、代寫Python設計程序

時間:2024-03-14  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



159.** 2024/S1 – Assignment 1 Brief
Online Psychological Profiling
In this assignment, you will extend the minimalistic Web servers developed in the exercises
from the lectures. Here you will develop a Web application to generate an online (and not
necessarily serious) psychological profile of the user.
Your application will function both as a server to the end user and as a client itself in order
to consume 3rd party Web services via RESTful APIs—as in the following schematic.
A key aim of this assignment is to gain hands-on experience with HTTP fundamentals. Do
not use any high level framework (Django, Flask, Nodejs, etc) as they abstract the low level
HTTP functionality. You will get a chance to use these frameworks in the 2nd assignment.
Here you are being asked to implement your own micro-framework.
However, you may make use of standard modules that come with Python, e.g. http.server,
urllib.parse, requests, json etc. Also it is strongly encouraged that you do not hard code
HTML text within your Python scripts.
Requirements
Authentication
Use basic HTTP authentication to protect your site. Implement this in your Python server
so that without the correct login credentials, none of the resources will be accessible.
Use your 8-digit student ID for both the user name and password, e.g.. when your browser
asks for the credentials put in :
User Name: 12345678
Password: 12345678 (replace 12345678 with your own ID)
[4 marks]
The back end
Design your server to respond to the following URI paths. Also add other path definitions
as you see fit. Any undefined path should result in a 404 NOT FOUND response.
/
The default/empty path should deliver the content of the “landing page” index.html (or
otherwise). This will function as the “front end” as below.
/form
Deliver the content of the file psycho.html to the user. The content here is a classic form
using vanilla HTML. Your browser should then display this appropriately.
/analysis
This is the “action” upon submitting the form data from the browser. You will first need to
(slightly) modify psycho.html.
This URI should action the following tasks at the server-side:
1. Parse the input form data and store at the server side in a suitable format.
2. Analyze the input data to generate a “psychological profile”. The results should be as
follows:
• an assessment of the users suitability for their selected preferred career
• a recommendation of movies the user might like—fetch the relevant data from a
3rd party site via a RESTful API (see below)
3. Fetch a random image, from a 3rd party site (see also below), for each pet that the
user selected in the check boxes. Store these at the server side.
For step 2 you can analyze the form data in any way you see fit—be creative and have fun!
The result of actioning the /analysis URI should be the psychological profile data and image
files stored at the server. These data should NOT be be delivered to the client at this point.
The server response should just be a simple message in a suitable format.
The delivery of actual data is to be handled by the view URI paths below.
/view/input
This URI delivers the input data to the client. This should be delivered in a suitable
serialization format. Do not include HTML. The visualization of the data is to be handled
by the front end.
/view/profile
Deliver the psychological profile data to the user for display in the front end. Again, use a
suitable serialization format.
[11 marks]
The front end
This deals with the presentation and visualization of the data generated at the server. Design
a suitable front end in index.html to interact with server. You will need to add JavaScript
functionality. This should have the following functionality:
1. Fetch the input data form psycho.html by actioning the appropriate back end URI.
The content of this HTML will need to be displaced in a separate browser window.
2. Fetch the serialized input data and display in the browser in a suitable human viewable
form.
3. Fetch the serialized psychological profile data together with the pet images (if any)
and display them in the browser in a human readable format.
Results should be displayed in a manner you would expect to see in a browser window after
appropriately parsing the serialization text. Do not just dump this raw text in the display
document.
[7 marks]
Deployment
Package your application as a Docker image and get it working in a Docker container.
[3 marks]
Submission
Please upload your saved Docker image. Instructions are on Stream.
This assignment is worth 25 marks (25% towards your final grade).
Due date: 2024 March 29, 11:55pm.
Appendix: 3rd Party Services
Movie Database
Visit http://www.omdbapi.com/apikey.aspx. Click on the “FREE!” radio button and
enter your details, e.g.:
Your API key will be sent to your e-mail. To get details on a particular movie title, try the
URI (replace abcdefgh with your own key)
http://www.omdbapi.com/?apikey=abcdefgh&t=alien
and see what comes back. See the documentation for other types of API calls.
Random Animal Pictures
The following URIs will fetch image metadata for animal image files. No API keys are
needed. Note: the metadata will be in JSON format which will contain the URL for the
actual image file—which you also need to action.
To understand what is going here, use curl, wget, or your own Python test script to action
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

掃一掃在手機打開當前頁
  • 上一篇:8PRO102代寫、代做C++程序語言
  • 下一篇:CS 3140代做、代寫java語言編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    中文字幕av一区二区三区高| 国产区在线观看成人精品| 91久久国产综合久久蜜月精品| 韩国v欧美v亚洲v日本v| 亚洲精品一二三四区| 久久色.com| 久久久一区二区三区| 国产欧美精品一区二区色综合| 久久精品综合网| 国产精品久久久久久久裸模| 国产精品超碰97尤物18| 一区二区三区欧美日韩| 亚洲成人动漫av| 国模无码大尺度一区二区三区 | 国产精品中文字幕日韩精品 | 国产视频欧美| 久久久夜精品| 欧美美女喷水视频| 欧美va亚洲va在线观看蝴蝶网| 精品美女一区二区三区| 中文字幕第一区第二区| 日韩一区日韩二区| 一区二区国产视频| 日本一道高清亚洲日美韩| 麻豆精品一二三| 菠萝蜜视频在线观看一区| 欧美精品偷拍| 久久野战av| 日韩一本二本av| 亚洲欧洲av在线| 日本最新不卡在线| 成人av资源网站| 一本一本久久| 717成人午夜免费福利电影| 国产午夜精品在线观看| 亚洲国产精品久久不卡毛片| 久久99国产精品久久99果冻传媒| 99久久精品免费精品国产| 在线免费日韩片| 欧美日韩精品欧美日韩精品| 久久噜噜亚洲综合| 无吗不卡中文字幕| 成人av网站在线观看| 国产精品午夜av在线| 日韩欧美在线网站| 亚洲免费在线视频| 国产成人免费av在线| 亚洲婷婷免费| 91精品国产综合久久福利软件| 1区2区3区精品视频| 国产一区二区三区精品欧美日韩一区二区三区 | 日本道免费精品一区二区三区| www久久精品| 午夜视黄欧洲亚洲| 91亚洲永久精品| 日本韩国视频一区二区| 日本一区二区电影| 国产一区三区三区| 在线综合亚洲| 欧美精品一区二区三区很污很色的| 亚洲一区二区三区四区在线免费观看| 高清国产午夜精品久久久久久| 亚洲伊人网站| 中文乱码免费一区二区| 国产一区二区三区四区五区入口 | 久久亚洲精精品中文字幕早川悠里| 天堂蜜桃91精品| 亚洲国产日韩美| 久久久久亚洲综合| 久久精品国产**网站演员| 99精品国产福利在线观看免费 | 岛国精品在线播放| 欧美专区亚洲专区| 亚洲一区二区三区爽爽爽爽爽| 99国产麻豆精品| 911国产精品| 麻豆91在线播放| 小嫩嫩精品导航| 亚洲人精品午夜| 欧美日韩精品免费观看视一区二区| 欧美高清激情brazzers| 蜜桃av一区二区三区电影| 国产乱人伦精品一区二区| 国产精品美女久久久久久久| 99re亚洲国产精品| 欧美成人精品1314www| 国产综合色视频| 欧美日韩精品免费观看视频| 热久久国产精品| 日本精品免费观看高清观看| 亚洲精品免费看| 亚洲久久一区二区| 亚洲欧美另类图片小说| 黄页网站一区| 亚洲三级视频在线观看| 亚洲高清视频一区二区| 国产精品初高中害羞小美女文| 欧美激情五月| 中文字幕在线不卡国产视频| 国产精品v欧美精品∨日韩| 国产人久久人人人人爽| 国内精品久久国产| 日韩伦理av电影| 91久久久一线二线三线品牌| 亚洲欧美影音先锋| 国产亚洲激情| 天天色天天操综合| 欧美日韩一区不卡| 国产精品资源网| 国产亚洲一区二区在线观看| 91日韩一区二区三区| 中文字幕一区二区三区视频 | 91精品国产乱| 女女同性精品视频| 亚洲欧美日本在线| 老鸭窝91久久精品色噜噜导演| 奇米精品一区二区三区在线观看一 | 在线看无码的免费网站| 亚洲国产综合视频在线观看| 91福利小视频| 国产精选一区二区三区| 久久色.com| 亚洲色图自拍| 麻豆国产精品一区二区三区| 日韩欧美资源站| 国产一区二区无遮挡| 亚洲一区二区三区三| 欧美午夜一区二区三区| 成人av在线播放网址| 亚洲欧美在线视频观看| 色综合久久久久网| 成人性生交大片免费| 国产精品久线在线观看| 色久综合一二码| 福利一区二区在线| 国产精品国产三级国产| 久久午夜av| 99久久国产综合色|国产精品| 亚洲视频在线一区| 欧美高清性hdvideosex| 在线视频观看日韩| 国产真实精品久久二三区| 中文字幕不卡在线观看| 六月婷婷一区| 欧美二区视频| 麻豆一区二区三| 中文字幕国产精品一区二区| 欧美在线影院一区二区| 99re热这里只有精品视频| 日韩激情视频在线观看| 久久久久88色偷偷免费| 久久综合精品一区| 欧美日韩高清免费| 精品一区二区三区视频| 自拍偷拍国产精品| 欧美一区午夜视频在线观看| 亚洲精品美女| jizzjizzjizz欧美| 免费观看久久久4p| 亚洲视频电影在线| 欧美一级一级性生活免费录像| 中国成人在线视频| 成人高清伦理免费影院在线观看| 亚洲国产另类精品专区| 久久精品在线免费观看| 在线中文字幕一区二区| 一区二区毛片| 91热门视频在线观看| 国产剧情在线观看一区二区| 亚洲一区二区欧美| 亚洲国产精品精华液ab| 欧美另类久久久品| 模特精品在线| 99精品国产高清一区二区| 欧美一区网站| 国产v综合v亚洲欧| 五月天久久比比资源色| 亚洲素人一区二区| 日韩你懂的在线观看| 欧美日韩一区二区不卡| 91女人视频在线观看| 国产精品五月天| 久久精品综合| 久久一区视频| 亚洲激情网站| 欧美网站在线| 91视频免费播放| 成人深夜在线观看| 国产福利不卡视频| 久久电影网电视剧免费观看| 夜夜精品视频一区二区| 中文字幕在线不卡视频| 国产精品丝袜91| 久久精品日韩一区二区三区| 欧美变态tickle挠乳网站| 日韩欧美国产1| 欧美r级在线观看| 欧美www视频| 精品福利视频一区二区三区| 日韩欧美一区二区久久婷婷|