README

docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

330

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

4

Uploaded by ProfParrotPerson601

Report
CS 340 AnimalShelter.py README About the Project/Project Title The project involves creating a software application for Grazioso Salvare, a company specializing in identifying and training rescue animals, primarily dogs. Grazioso Salvare collaborates with a non-profit operating animal shelters in Austin, Texas, receiving data on shelter dogs. Our goal is to develop a system that efficiently categorizes and identifies dogs suitable for various types of search-and-rescue training based on their age, breed, and potential abilities. Motivation The project's humanitarian impact is twofold. Firstly, it plays a vital role in disaster and emergency situations by identifying and training dogs for search-and-rescue operations, thus contributing significantly to saving human lives. Secondly, from an animal welfare perspective, the project provides shelter dogs with a meaningful purpose and a home, greatly improving their quality of life. This dual impact not only showcases the project's significance in emergency response but also highlights its commitment to animal welfare. Getting Started Ensure that MongoDB is installed and the databases and collections are set up Set up the init credentials to the correct credentials Make sure the AnimalShelter.py file is in the main directory and can be found by the python environment you are in from AnimalShelter import AnimalShelter Installation pymongo - https://pymongo.readthedocs.io/en/stable/installation.html bson.objectid - https://www.npmjs.com/package/bson-objectid Usage
AnimalShelter() Following this command of initializing Animal Shelter allows you to effectively use the module\ create(self, data) Following this allows for the creation of animals and then that animal is inserted into the animals database read(self, query)
Following this example allows for a query to be set and it prints out the result in JSON format update(self, query, update, many=False) Following this example allows the user to update one or many documents returning the number of updated documents delete(self, query, many=False)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Following this example allows the user to delete any number of documents following the same many or one bool to determine how many documents you are deleting Contact Name: Chris McLernon