Final Exam: Python Journeyman
Python
| Everyone
- 1 video | 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
-
Use the flask debugger to record information in your application's logpick the tests to execute based on the test function namesinstall flask in a virtual environment on your development machineuse sql alchemy to generate relational database tables for each model defined in your applicationhandle successful and unsuccessful http requests according to the status code of the responsemake a get request and explore the response object returned, which includes a status code and headerscreate and execute a coroutine using the asyncio moduleuse the setup and teardown functions to define common operations for tests in a scriptdefine and execute multiple tests within a single test caserecognize the conditions under which a deadlock may occurinitialize and execute a thread in pythonusing an sqlalchemy model, execute queries against tablessummarize how semaphores can restrict the number of concurrent tasks accessing a shared resourcemodify the boilerplate css and html definitions to customize the look of a web sitedescribe the implementation of threads and processes in the python languageimplement producer and consumer threads that add to and remove from a queueuse the requests package to construct a post request that includes a set of key-value pairs to be submitted to a serverserve a custom error page whenever a 404 error is invoked on your web siterecognize the various pieces that can make up web applications and the role of web frameworks in defining themuse the map function of multithreading. pool instance to submit multiple tasks to a process poolstop the execution of tests when there are a specific number of test failuresdownload, install and configure the pycharm ideinstall sql alchemy and use it to connect the flask application to an sqlite databasedistinguish between multiprocessing and multithreading in the context of sharing data in memoryinvoke put, options, and delete requests and recognize the specific use case for each of themrecognize when a test script will benefit from the use of fixture functionsdefine, initialize, and execute a process in pythondescribe multithreading and compare its performance with sequential execution of tasksselect the tests to execute based on the test function namesrecognize what sequential execution is and what its limitations are
-
recognize what a race condition is and when it can occur with concurrent programmingwrite the code for a simple "hello world" web site using flaskwrite and execute a test using pytestinstall the latest version of python and write a test using the unittest frameworkconvey the invocation of an operation to end-users using message flashingexecute queries against tables using an sqlalchemy modelcreate a readme file for a python module which bundles documentation and testing in a single fileexecute two threads concurrently to save time relative to a sequential executionrecognize where doctests can be placed within source codewrite and execute a test using the doctest moduledefine a script testing out multiple functions in the source using the pycharm idedescribe the steps involved in a web request and the role of web applications in the processrecall the features of the flask framework that are available either out of the box or via extensionsreturn a custom error page whenever a 404 error is invoked on your web sitedefine a route that renders an html page when a url is accesseduse the different decorators available in unittest to conditionally and unconditionally skip specific testsuse the bcrypt package to generate hashes of passwords so that they can be stored securelycreate a pool of processes to which tasks can be submittedidentify the specific use cases for multithreadingdescribe the different types of queue objects available in pythoninstall the python requests package and set up a workspacegenerate hashes of passwords using the bcrypt packagecreate a condition instance that will have multiple threads waiting for data to be generateduse the run, create_task, and gather functions in the asyncio modules to execute tasksgenerate urls dynamically using the url_for functionset a name for a thread and ensure a thread waits for a created thread to completeexecute tests defined in multiple scripts using pytestconfigure a route in your flask app so that post requests can be submitted to itmake a get request and explore the response object returnedretrieve metadata for a resource using a head request
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.