Final Exam: Python Journeyman
- 1 Video | 30m 32s
- Includes Assessment
- Earns a Badge
This final exam will test your understanding and application of the skills covered in the Python Journeyman track of the Python Novice to Pythonista Aspire Journey.
WHAT YOU WILL LEARN
configure a route in your Flask app so that POST requests can be submitted to itconvey the invocation of an operation to end-users using message flashingcreate a condition instance that will have multiple threads waiting for data to be generatedcreate and execute a coroutine using the asyncio modulecreate a pool of processes to which tasks can be submittedcreate a readme file for a Python module which bundles documentation and testing in a single filedefine and execute multiple tests within a single test casedefine a route that renders an HTML page when a URL is accesseddefine a script testing out multiple functions in the source using the PyCharm IDEdefine, initialize, and execute a process in Pythondescribe multithreading and compare its performance with sequential execution of tasksdescribe the different types of Queue objects available in Pythondescribe the implementation of threads and processes in the Python languagedescribe the steps involved in a web request and the role of web applications in the processdistinguish between multiprocessing and multithreading in the context of sharing data in memorydownload, install and configure the PyCharm IDEexecute queries against tables using an SQLAlchemy modelexecute tests defined in multiple scripts using pytestexecute two threads concurrently to save time relative to a sequential executiongenerate hashes of passwords using the Bcrypt packagegenerate URLs dynamically using the url_for functionhandle successful and unsuccessful HTTP requests according to the status code of the responseidentify the specific use cases for multithreadingimplement producer and consumer threads that add to and remove from a queueinitialize and execute a thread in Pythoninstall Flask in a virtual environment on your development machineinstall SQL Alchemy and use it to connect the Flask application to an SQLite databaseinstall the latest version of Python and write a test using the unittest frameworkinstall the Python Requests package and set up a workspaceinvoke PUT, OPTIONS, and DELETE requests and recognize the specific use case for each of them
make a GET request and explore the response object returnedmake a GET request and explore the response object returned, which includes a status code and headersmodify the boilerplate CSS and HTML definitions to customize the look of a web sitepick the tests to execute based on the test function namesrecall the features of the Flask framework that are available either out of the box or via extensionsrecognize the conditions under which a deadlock may occurrecognize the various pieces that can make up web applications and the role of web frameworks in defining themrecognize what a race condition is and when it can occur with concurrent programmingrecognize what sequential execution is and what its limitations arerecognize when a test script will benefit from the use of fixture functionsrecognize where doctests can be placed within source coderetrieve metadata for a resource using a HEAD requestreturn a custom error page whenever a 404 error is invoked on your web siteselect the tests to execute based on the test function namesserve a custom error page whenever a 404 error is invoked on your web siteset a name for a thread and ensure a thread waits for a created thread to completestop the execution of tests when there are a specific number of test failuressummarize how semaphores can restrict the number of concurrent tasks accessing a shared resourceuse SQL Alchemy to generate relational database tables for each model defined in your applicationuse the Bcrypt package to generate hashes of passwords so that they can be stored securelyuse the different decorators available in unittest to conditionally and unconditionally skip specific testsuse the Flask debugger to record information in your application's loguse the map function of multithreading. Pool instance to submit multiple tasks to a process pooluse the Requests package to construct a POST request that includes a set of key-value pairs to be submitted to a serveruse the run, create_task, and gather functions in the asyncio modules to execute tasksuse the setUp and tearDown functions to define common operations for tests in a scriptusing an SQLAlchemy model, execute queries against tableswrite and execute a test using pytestwrite and execute a test using the doctest modulewrite the code for a simple "Hello World" web site using Flask
IN THIS COURSE
1.Python Journeyman33sUP NEXT
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platformDigital badges are yours to keep, forever.