Question: okmarks SCC Technical Supp. BCC EPE ManageEngine - AD.. Home - Holzer Help... Salesforce - Enterpri Privileged Identity... SCC SoftAssure - Cli... LabCorpLink | Dash.

okmarks SCC Technical Supp. BCC EPE ManageEngine
okmarks SCC Technical Supp. BCC EPE ManageEngine - AD.. Home - Holzer Help... Salesforce - Enterpri Privileged Identity... SCC SoftAssure - Cli... LabCorpLink | Dash. MYLA Other Prompt You will complete the readings for this module and then implement the fundamental operations of creating and reading documents (the C and R of CRUD) in Python. You will use the PyMongo driver to create CRUD functional access to your document collection. 1. Upload the Austin Animal Center (AAC) Outcomes data set into MongoDB by importing a CSV file using the appropriate MongoDB import tool. This file is in the /usr/local/datasets/ directory in Apporto; the filename is "aac_shelter_outcomes.csv." Use the database name "AAC" and collection name "animals." Complete the import using the mongoimport tool, and take screenshots of both the import command and its execution. Note: If you completed the Module Three milestone, you have already completed this step. 2. Next, you must develop a Python module in a PY file using object-oriented programming methodology to enable create and read functionality for the database. Other Python scripts must be able to import your Python code as a module to support code reusability. Develop a CRUD class that, when instantiated, provides the following functionality: a. A method that inserts a document into a specified MongoDB database and collection i. Input argument to function will be a set of key/value pairs in the data type acceptable to the MongoDB driver insert API call ii. Return "True" if successful insert, else "False" b. A method that queries for documents from a specified MongoDB database and collection i. Input arguments to function should be the key/value lookup pair to use with the MongoDB driver find API call ii. Return result in a list if the command is successful, else an empty list.. Important: Be sure to use find() instead of find_one() when developing your method. Hint: You must work with the MongoDB cursor returned by the find() method. As you develop your code, be sure to use industry standard best practices such as proper naming conventions, exception handling, and in-line comments. Doing so will ensure that your code is easy to read and reusable for future projects. le code to get started. The authentication to MongoDB is in the initialization method for the CRUD class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!