Building web apps with Python and Flask: learn to develop and deploy responsive RESTful web applications using Flask Framework
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
New Delhi
BPB
2021
|
Ausgabe: | First edition |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | xvii, 243 Seiten Illustrationen |
ISBN: | 9789389898835 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV047277533 | ||
003 | DE-604 | ||
005 | 20210615 | ||
007 | t | ||
008 | 210510s2021 a||| |||| 00||| eng d | ||
020 | |a 9789389898835 |c pbk. |9 978-93-89898-83-5 | ||
035 | |a (OCoLC)1257817785 | ||
035 | |a (DE-599)BVBBV047277533 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-706 |a DE-19 |a DE-473 | ||
100 | 1 | |a Lathkar, Malhar |e Verfasser |0 (DE-588)1235411923 |4 aut | |
245 | 1 | 0 | |a Building web apps with Python and Flask |b learn to develop and deploy responsive RESTful web applications using Flask Framework |c Malhar Lathkar |
250 | |a First edition | ||
264 | 1 | |a New Delhi |b BPB |c 2021 | |
300 | |a xvii, 243 Seiten |b Illustrationen | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
650 | 0 | 7 | |a App |g Programm |0 (DE-588)7705206-7 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Python |g Programmiersprache |0 (DE-588)4434275-5 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Softwareentwicklung |0 (DE-588)4116522-6 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a App |g Programm |0 (DE-588)7705206-7 |D s |
689 | 0 | 1 | |a Softwareentwicklung |0 (DE-588)4116522-6 |D s |
689 | 0 | 2 | |a Python |g Programmiersprache |0 (DE-588)4434275-5 |D s |
689 | 0 | |5 DE-604 | |
856 | 4 | 2 | |m Digitalisierung UB Bamberg - ADAM Catalogue Enrichment |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=032681121&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-032681121 |
Datensatz im Suchindex
_version_ | 1804182441376612352 |
---|---|
adam_text | xii Table of Contents 1. Python for CGI................................................................................................................. 1 Introduction......................................................................................................... 1 1 Structure............................................................................................................... Objectives..............................................................................................................2 Advent of WWW................................................................................................. 2 What is CGI?.........................................................................................................3 Configuration of Apache Server........................................................................ 4 The Basics of HTTP Protocol.............................................................................. 7 Request Methods................................................................................................. 8 The cgi Module.................................................................................................. Ю Cookies................................................................................................................ 14 Alternatives to CGI.............................................................................................18 Conclusion.......................................................................................................... 18 2.
WSGI.................................................................................................................................19 Introduction........................................................................................................ 19 Structure.............................................................................................................. 19 Objectives............................................................................................................ 20 PEP 333................................................................................................................ 20 The environ Dictionary object...........................................................................22 WSGI Environment Variables...........................................................................22 The wsgiref Package...........................................................................................23 Validator.............................................................................................................. 25 HTML Form in a WSGI application................................................................. 26 URL Routing....................................................................................................... 32 Web Frameworks....................................................................... 37 Flask.....................................................................................................................38 Conclusion.................................................................. 3g
хш 3. Flask Fundamentals.............................................................................................. 39 Introduction...................................................................................................... 39 Structure............................................................................................................ 39 Objectives..........................................................................................................40 Werkzeug..........................................................................................................40 Jinja2 Template Engine.................................................................................... 41 Click...................................................................................................................44 Installing Flask.................................................................................................47 Hello Flask Application.................................................................................. 48 Debug Mode.....................................................................................................51 Conclusion........................................................................................................53 4. URL Routing...........................................................................................................55 Introduction......................................................................................................55
Structure............................................................................................................55 Objectives..........................................................................................................56 Flask Script........................................................................................................56 Application object............................................................................................ 57 Route Decorator............................................................................................... 58 The add_url_rule() method.............................................................................59 The url_for() Function..................................................................................... 61 The redirectO Function.................................................................................... 62 Variable Parts in URL...................................................................................... 64 Conclusion........................................................................................................ 66 5. Rendering Templates............................................................................................ 67 Introduction......................................................................................................67 Structure................................ 67 Objectives.......................................................................................................... 68 HTML
Tags....................................................................................................... 68 Flask application structure..............................................................................70 The render_template() Function..................................................................... 70 Conditional Statements....................................................................................72
xiv 11 ................. .. . .....................- Loops in Template............................................................................................ 74 7Հ Macros................................................................................................................ Filters...................................................................................................................^ Template Inheritance........................................................................................ Conclusion..........................................................................................................88 6. Static Files....................................................................................................................... 89 Introduction........................................................................................................89 Structure..............................................................................................................89 Objectives............................................................................................................90 Document Object Model................................................................................... 90 JavaScript and DOM......................................................................................... 91 JavaScript in Flask............................................................................................. 94 CSS and DOM.................................................................................................... 97 Inline
Definition............................................................................................ 97 Style Definitions in the head element........................................................98 External CSS File.......................................................................................... 98 CSS and Flask................................................................................................... 102 Images in Flask App.........................................................................................104 Conclusion........................................................................................................ 107 7. HTTP Objects...............................................................................................................109 Introduction...................................................................................................... 109 Structure............................................................................................................109 Objectives.......................................................................................................... HO Request Object.................................................................................................. HO GET Method................................................................................................ П0 POST Method.............................................................................................. ЦЗ Response Object............................................................................................... 114
Cookies..............................................................................................................И 5 Managing Sessions.......................................................................................... Н9 Message Flashing............................................................................................. 123 Uploading a File................................................................................................ Conclusion...................................................................................................... ..
^ XV 8. Using Databases.................................................................................................. 131 Introduction.................................................................................................... 131 Structure..........................................................................................................131 Objectives........................................................................................................132 DB-API............................................................................................................132 CREATE TABLE....................................................................................... 135 INSERT DATA.......................................................................................... 135 READ DATA............................................................................................. 137 Object Relation Model................................................................................... 139 SQLAlchemy.................................................................................................. 140 Flask extensions............................................................................................. 141 Flask-SQL Alchemy........................................................................................ 142 Relationship.................................................................................................... 145 NoSQL Databases.......................................................................................... 148 Flask-
PyMongo.............................................................................................. 150 Flask-MongoEngine.......................................................................................152 Conclusion...................................................................................................... 154 9. More Flask Extensions........................................................................................ 155 Introduction.................................................................................................... 155 Structure.......................................................................................................... 155 Objectives........................................................................................................ 156 Flask-WTF....................................................................................................... 156 Fields.......................................................................................................... 157 Validators................................................................................................... 158 Form Class................................................................................................. 159 Rendering the WFForm Object.................................................................. 160 Flask-Login..................................................................................................... 164 Flask-Bootstrap...............................................................................................170 Other
Useful Extensions................................................................................ 174 Flask-Admin.............................................................................................. 175 Flask-Mail.................................................................................................. 175 Flask-Uploads.............................................................................................176 Conclusion......................................................................................................
xvi .................... ..............................................-.................. -........ ..... 10. Blueprints and Contexts...................................................................................... ^ Introduction..................................................................................................... 17Q Structure............................................................................................................^ Objectives..........................................................................................................180 Application Package........................................................................................ 180 Application Context........................................................................................ 182 Request context................................................................................................ 184 Request Callbacks............................................................................................ 185 Application Factory......................................................................................... 187 Signals...............................................................................................................188 Blueprints..........................................................................................................190 Conclusion........................................................................................................196 11. Web API with
Flask.............................................................................................. 197 Introduction...................................................................................................... 197 Structure............................................................................................................197 Objective............................................................................................................198 What is API?..................................................................................................... 198 REST..................................................................................................................199 Route-based REST API.................................................................................... 203 WhatiscURL?.................................................................................................. 203 Class-based Views........................................................................................... 209 Flask-RESTful................................................................................................... 211 Postman App....................................................................................................212 Conclusion........................................................................................................214 12. Deploying Flask App............................................................................................ 215
Introduction...................................................................................................... 215 Structure............................................................................................................215 Objectives..........................................................................................................2!6 Google App Engine......................................................................................... 216 Heroku................................................................................................. 229 PythonAnywhere............................................................................................. շշշ mod_wsgi.......................................................................... շշշ
xvii uWSGI...................................................................................................................225 Flask App as CGI................................................................................................ 226 Other options....................................................................................................... 227 Conclusion............................................................................................................227 Appendix: Python QuickStart................................................................................ 229 Get Started............................................................................................................229 Data Types............................................................................................................229 Indexing and Slicing...............................................................................................231 Conditionals.........................................................................................................232 while loop................................................................................................................233 for loop..................................................................................................................234 Functions...............................................................................................................235 Class and Object.................................................................................................. 236
Inheritance............................................................................................................236 Overriding............................................................................................................237 Script Mode..........................................................................................................238 Index 239-243
|
adam_txt |
xii Table of Contents 1. Python for CGI. 1 Introduction. 1 1 Structure. Objectives.2 Advent of WWW. 2 What is CGI?.3 Configuration of Apache Server. 4 The Basics of HTTP Protocol. 7 Request Methods. 8 The cgi Module. Ю Cookies. 14 Alternatives to CGI.18 Conclusion. 18 2.
WSGI.19 Introduction. 19 Structure. 19 Objectives. 20 PEP 333. 20 The environ Dictionary object.22 WSGI Environment Variables.22 The wsgiref Package.23 Validator. 25 HTML Form in a WSGI application. 26 URL Routing. 32 Web Frameworks. 37 Flask.38 Conclusion. 3g
хш 3. Flask Fundamentals. 39 Introduction. 39 Structure. 39 Objectives.40 Werkzeug.40 Jinja2 Template Engine. 41 Click.44 Installing Flask.47 Hello Flask Application. 48 Debug Mode.51 Conclusion.53 4. URL Routing.55 Introduction.55
Structure.55 Objectives.56 Flask Script.56 Application object. 57 Route Decorator. 58 The add_url_rule() method.59 The url_for() Function. 61 The redirectO Function. 62 Variable Parts in URL. 64 Conclusion. 66 5. Rendering Templates. 67 Introduction.67 Structure. 67 Objectives. 68 HTML
Tags. 68 Flask application structure.70 The render_template() Function. 70 Conditional Statements.72
xiv 11 . . . .- Loops in Template. 74 7Հ Macros. Filters.^ Template Inheritance. Conclusion.88 6. Static Files. 89 Introduction.89 Structure.89 Objectives.90 Document Object Model. 90 JavaScript and DOM. 91 JavaScript in Flask. 94 CSS and DOM. 97 Inline
Definition. 97 Style Definitions in the head element.98 External CSS File. 98 CSS and Flask. 102 Images in Flask App.104 Conclusion. 107 7. HTTP Objects.109 Introduction. 109 Structure.109 Objectives. HO Request Object. HO GET Method. П0 POST Method. ЦЗ Response Object. 114
Cookies.И 5 Managing Sessions. Н9 Message Flashing. 123 Uploading a File. Conclusion. .
^ XV 8. Using Databases. 131 Introduction. 131 Structure.131 Objectives.132 DB-API.132 CREATE TABLE. 135 INSERT DATA. 135 READ DATA. 137 Object Relation Model. 139 SQLAlchemy. 140 Flask extensions. 141 Flask-SQL Alchemy. 142 Relationship. 145 NoSQL Databases. 148 Flask-
PyMongo. 150 Flask-MongoEngine.152 Conclusion. 154 9. More Flask Extensions. 155 Introduction. 155 Structure. 155 Objectives. 156 Flask-WTF. 156 Fields. 157 Validators. 158 Form Class. 159 Rendering the WFForm Object. 160 Flask-Login. 164 Flask-Bootstrap.170 Other
Useful Extensions. 174 Flask-Admin. 175 Flask-Mail. 175 Flask-Uploads.176 Conclusion.
xvi . .-. -. . 10. Blueprints and Contexts. ^ Introduction. 17Q Structure.^ Objectives.180 Application Package. 180 Application Context. 182 Request context. 184 Request Callbacks. 185 Application Factory. 187 Signals.188 Blueprints.190 Conclusion.196 11. Web API with
Flask. 197 Introduction. 197 Structure.197 Objective.198 What is API?. 198 REST.199 Route-based REST API. 203 WhatiscURL?. 203 Class-based Views. 209 Flask-RESTful. 211 Postman App.212 Conclusion.214 12. Deploying Flask App. 215
Introduction. 215 Structure.215 Objectives.2!6 Google App Engine. 216 Heroku. 229 PythonAnywhere. շշշ mod_wsgi. շշշ
xvii uWSGI.225 Flask App as CGI. 226 Other options. 227 Conclusion.227 Appendix: Python QuickStart. 229 Get Started.229 Data Types.229 Indexing and Slicing.231 Conditionals.232 while loop.233 for loop.234 Functions.235 Class and Object. 236
Inheritance.236 Overriding.237 Script Mode.238 Index 239-243 |
any_adam_object | 1 |
any_adam_object_boolean | 1 |
author | Lathkar, Malhar |
author_GND | (DE-588)1235411923 |
author_facet | Lathkar, Malhar |
author_role | aut |
author_sort | Lathkar, Malhar |
author_variant | m l ml |
building | Verbundindex |
bvnumber | BV047277533 |
ctrlnum | (OCoLC)1257817785 (DE-599)BVBBV047277533 |
edition | First edition |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01561nam a2200361 c 4500</leader><controlfield tag="001">BV047277533</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20210615 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">210510s2021 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9789389898835</subfield><subfield code="c">pbk.</subfield><subfield code="9">978-93-89898-83-5</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)1257817785</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV047277533</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-706</subfield><subfield code="a">DE-19</subfield><subfield code="a">DE-473</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Lathkar, Malhar</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1235411923</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Building web apps with Python and Flask</subfield><subfield code="b">learn to develop and deploy responsive RESTful web applications using Flask Framework</subfield><subfield code="c">Malhar Lathkar</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">First edition</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">New Delhi</subfield><subfield code="b">BPB</subfield><subfield code="c">2021</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">xvii, 243 Seiten</subfield><subfield code="b">Illustrationen</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">App</subfield><subfield code="g">Programm</subfield><subfield code="0">(DE-588)7705206-7</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Python</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4434275-5</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Softwareentwicklung</subfield><subfield code="0">(DE-588)4116522-6</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">App</subfield><subfield code="g">Programm</subfield><subfield code="0">(DE-588)7705206-7</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="1"><subfield code="a">Softwareentwicklung</subfield><subfield code="0">(DE-588)4116522-6</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="2"><subfield code="a">Python</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4434275-5</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Bamberg - ADAM Catalogue Enrichment</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=032681121&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-032681121</subfield></datafield></record></collection> |
id | DE-604.BV047277533 |
illustrated | Illustrated |
index_date | 2024-07-03T17:16:04Z |
indexdate | 2024-07-10T09:07:36Z |
institution | BVB |
isbn | 9789389898835 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-032681121 |
oclc_num | 1257817785 |
open_access_boolean | |
owner | DE-706 DE-19 DE-BY-UBM DE-473 DE-BY-UBG |
owner_facet | DE-706 DE-19 DE-BY-UBM DE-473 DE-BY-UBG |
physical | xvii, 243 Seiten Illustrationen |
publishDate | 2021 |
publishDateSearch | 2021 |
publishDateSort | 2021 |
publisher | BPB |
record_format | marc |
spelling | Lathkar, Malhar Verfasser (DE-588)1235411923 aut Building web apps with Python and Flask learn to develop and deploy responsive RESTful web applications using Flask Framework Malhar Lathkar First edition New Delhi BPB 2021 xvii, 243 Seiten Illustrationen txt rdacontent n rdamedia nc rdacarrier App Programm (DE-588)7705206-7 gnd rswk-swf Python Programmiersprache (DE-588)4434275-5 gnd rswk-swf Softwareentwicklung (DE-588)4116522-6 gnd rswk-swf App Programm (DE-588)7705206-7 s Softwareentwicklung (DE-588)4116522-6 s Python Programmiersprache (DE-588)4434275-5 s DE-604 Digitalisierung UB Bamberg - ADAM Catalogue Enrichment application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=032681121&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Lathkar, Malhar Building web apps with Python and Flask learn to develop and deploy responsive RESTful web applications using Flask Framework App Programm (DE-588)7705206-7 gnd Python Programmiersprache (DE-588)4434275-5 gnd Softwareentwicklung (DE-588)4116522-6 gnd |
subject_GND | (DE-588)7705206-7 (DE-588)4434275-5 (DE-588)4116522-6 |
title | Building web apps with Python and Flask learn to develop and deploy responsive RESTful web applications using Flask Framework |
title_auth | Building web apps with Python and Flask learn to develop and deploy responsive RESTful web applications using Flask Framework |
title_exact_search | Building web apps with Python and Flask learn to develop and deploy responsive RESTful web applications using Flask Framework |
title_exact_search_txtP | Building web apps with Python and Flask learn to develop and deploy responsive RESTful web applications using Flask Framework |
title_full | Building web apps with Python and Flask learn to develop and deploy responsive RESTful web applications using Flask Framework Malhar Lathkar |
title_fullStr | Building web apps with Python and Flask learn to develop and deploy responsive RESTful web applications using Flask Framework Malhar Lathkar |
title_full_unstemmed | Building web apps with Python and Flask learn to develop and deploy responsive RESTful web applications using Flask Framework Malhar Lathkar |
title_short | Building web apps with Python and Flask |
title_sort | building web apps with python and flask learn to develop and deploy responsive restful web applications using flask framework |
title_sub | learn to develop and deploy responsive RESTful web applications using Flask Framework |
topic | App Programm (DE-588)7705206-7 gnd Python Programmiersprache (DE-588)4434275-5 gnd Softwareentwicklung (DE-588)4116522-6 gnd |
topic_facet | App Programm Python Programmiersprache Softwareentwicklung |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=032681121&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT lathkarmalhar buildingwebappswithpythonandflasklearntodevelopanddeployresponsiverestfulwebapplicationsusingflaskframework |