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综合_亚洲视频一区二区三区
    亚洲欧美日韩一区二区 | 亚洲视频二区| 欧美一区二区在线不卡| 午夜亚洲国产au精品一区二区| 91在线一区二区| 欧美精品乱码久久久久久按摩| 亚洲一区在线观看网站| 欧美jizzhd精品欧美喷水| 欧美一二三在线| 国产成人午夜片在线观看高清观看| 国产亚洲精品自拍| 一区二区三区美女视频| 亚洲国产精品久久久久久女王| 久久久精品影视| 福利一区在线观看| 宅男在线国产精品| 国产高清成人在线| 日韩午夜精品视频| 丁香另类激情小说| 欧美变态口味重另类| av高清久久久| 国产精品亲子伦对白| 在线看片欧美| 亚洲高清久久久| 欧美色国产精品| 国产激情偷乱视频一区二区三区| 欧美日韩一区二区三区四区五区 | 久久av一区| 日本成人在线看| 欧美一级xxx| 极品少妇一区二区三区| 婷婷国产在线综合| 欧美老年两性高潮| 欧美人与禽猛交乱配| 亚洲小说春色综合另类电影| 欧美三级中文字| 91啪亚洲精品| 日韩在线一二三区| 久久婷婷综合激情| 麻豆成人在线播放| 粉嫩av亚洲一区二区图片| 国产精品美女久久福利网站| 久久裸体视频| 99久久伊人网影院| 亚洲高清久久久| 国产网站一区二区| 欧美日韩一区二区在线观看| 亚洲图色在线| 国产精品一级二级三级| 亚洲精品久久嫩草网站秘色| 欧美久久久久免费| 国产欧美一级| 91亚洲精华国产精华精华液| 美女一区二区久久| 国产日韩欧美不卡| 91麻豆精品国产91久久久久| 一本久久综合| 国产一区二区三区自拍| 成人一区二区三区中文字幕| 蜜桃久久精品一区二区| 一区二区久久久| 国产精品美日韩| 国产日韩三级在线| 欧美成人国产一区二区| 欧美性生活影院| 另类图片国产| 久久国产主播精品| 欧美一级久久| 亚洲精品videosex极品| 亚洲三级在线免费观看| 中文字幕免费不卡在线| 欧美mv日韩mv| 日韩欧美一区二区在线视频| 欧美群妇大交群中文字幕| 色吧成人激情小说| 在线一区二区三区四区五区| 午夜综合激情| 欧美在线观看视频在线| 色偷偷成人一区二区三区91| 香蕉成人久久| 色999日韩国产欧美一区二区| 男人天堂欧美日韩| 色哟哟一区二区| 91精品国产色综合久久 | 亚洲视频狠狠干| 亚洲午夜视频在线观看| 视频一区二区三区入口| 久久99久久99小草精品免视看| 蜜臀av一区二区三区| 岛国精品在线观看| 国产精品1区2区| 欧美在线黄色| 国产精品毛片va一区二区三区| 亚洲中字黄色| 51精品国自产在线| 国产精品久久二区二区| 奇米亚洲午夜久久精品| 成人动漫av在线| 国产一级精品aaaaa看| 欧美日韩国产综合视频在线观看| 日韩久久久久久| 亚洲久本草在线中文字幕| 久久精品72免费观看| 成人黄页毛片网站| 久久久精品五月天| 久久午夜国产精品| 日韩高清电影一区| 欧美日韩在线一区二区三区| 亚洲国产高清在线| 久久激情五月婷婷| 国产精品久久久亚洲一区| 亚洲超丰满肉感bbw| 99re热这里只有精品免费视频| 老司机午夜免费精品视频| 久久一留热品黄| 国产乱码一区二区三区| 欧美精品导航| 欧美日韩国产免费| 亚洲天堂福利av| 国产精选一区二区三区 | 亚洲欧美日韩在线播放| 97se亚洲国产综合自在线观| 欧美区在线观看| 男人的j进女人的j一区| 91黄色小视频| 日韩精品五月天| 亚洲一区二三| 亚洲国产精品久久久久婷婷884| 午夜视频久久久| 国产日韩av一区二区| 色综合一个色综合| 精品福利视频一区二区三区| 国产成人三级在线观看| 日韩天堂在线观看| 国产一区免费电影| 91精品国产全国免费观看| 精品一区二区三区不卡 | 福利一区在线观看| 久久蜜桃香蕉精品一区二区三区| 成人午夜电影久久影院| 欧美在线你懂的| 国产不卡在线播放| 在线精品观看国产| 久久久.com| 亚洲国产影院| 国产中文一区二区三区| 国产精品欧美极品| 亚洲综合99| 成人综合在线网站| 亚洲国产成人私人影院tom| 亚洲激情在线| 欧美aaaaa成人免费观看视频| 欧美欧美欧美欧美首页| 欧美高清日韩| 蜜桃精品在线观看| 欧美一区二区三区人| 欧美午夜免费影院| 婷婷丁香久久五月婷婷| 日韩一区二区三区电影在线观看| 国产福利91精品一区二区三区| 樱花影视一区二区| 久久综合国产精品| 欧美日韩一区二区电影| 成人免费视频国产在线观看| 国产亚洲精品超碰| 一本久道久久久| 成人午夜视频在线观看| 国产精品灌醉下药二区| 91精品国产综合久久国产大片| 99精品国产91久久久久久| 久久国产人妖系列| 一区二区免费在线| 亚洲国产精品t66y| 国产一区二区中文| 亚洲自拍与偷拍| 亚洲靠逼com| 日本午夜一本久久久综合| 日韩精品免费视频人成| 婷婷久久综合九色综合伊人色| 中文av一区二区| 中文字幕色av一区二区三区| 国产精品视频一二三区 | 99精品国产99久久久久久福利| 成人av综合一区| 岛国精品在线播放| 99久久99久久免费精品蜜臀| 国产91精品欧美| 91视频在线观看免费| 亚洲午夜精品久久久久久浪潮| 在线国产精品一区| 好看的亚洲午夜视频在线| 一区二区不卡在线视频 午夜欧美不卡'| 欧美另类视频| 美女爽到呻吟久久久久| 7777精品久久久大香线蕉| 日韩一区二区三区四区五区六区| 欧美一区二区三区人| 久久综合狠狠综合久久综合88| 欧美日韩久久久久久| 欧美人牲a欧美精品|