Web Frameworks Flashcards

1
Q

Which web framework mentioned in this lesson is distributed as a single-file?

A

Bottle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which web framework was originally created and named as an April Fool’s joke?

A

Flask

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which framework is one of the oldest Python micro-frameworks?

A

CherryPy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which web framework is based on Werkzeug and Jinja2?

A

Flask

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which web framework follows the MTV architectural pattern?

A

Django

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which web framework provides backward compatibility with Python 2.7?

A

Web2Py

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which web framework, although comprised of a single file, is not part of the Python standard library?

A

Bottle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which web framework comes with its own web-based IDE?

A

Web2Py

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What was the name of the file you used to load the classic book data into the database in Lab 10?

A

book_import_data.json

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which 2 Web Frameworks are the most commonly used according to a recent Stack Overflow survey?

A

Flask, Django

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What’s a web framework?

A

provides features with which you can build websites, so it does more than a simple web (HTTP) server. Contains features such as routing (URL to server function), templates (HTML with dynamic inclusions), debugging, and more.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Additional functionality included in most web frameworks:

A
  • HTTP protocol handling: handling HTTP verbs (GET, POST, etc)
  • Authentication: who are you, what can you do? Route functions/classes, serve static files (HTML, CSS, JS, images)
  • Establish a session: serve dynamic data (databases, services)
  • Get & validate parameters: return values and HTTP status
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Django:

A
  • emphasizes reusability and pluggability
  • provides URL routing, database version control, schema migrations, authentication support, web server support, template engine and object-relational mapper (ORM)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Flask:

A
  • created by Armin Ronacher
  • micro framework due to simple core
  • no database abstract layer
  • no form validation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Web2Py:

A
  • free, open source, scalable, full stack framework for rapid development
  • no prereqs for installation and configuration
  • comes with own web-based IDE with code editor, debugger, and one-click deployment
  • Built-in security, Model-View-Controller architecture, support for internalization
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

CherryPy:

A
  • OO web framework resulting in smaller source code and less development time
  • HTTP/1.1 compliant and can run multiple HTTP servers simultaneously
  • Flexible plugin system
  • Supports caching, encoding, authentication
  • Extremely customizable, runs on Android, Python 3.5+, PyPy, and Jython
17
Q

Bottle:

A
  • another micro-framework originally meant for building APIs
  • implements everything in a single source file with no dependencies apart from the python standard library
  • good for small web apps and prototyping
  • good learning tool to get started with web dev
  • lightweight: entire library distributed as a one-file module
  • HTTP server, plug-in support and request dispatching