chovanecm / sacredboard

Dashboard for sacred. Monitor and access your past machine learning experiments.
MIT License
184 stars 39 forks source link

PyMongo Generic DAO class #61

Closed chovanecm closed 7 years ago

chovanecm commented 7 years ago

A module for accessing MongoDB via PyMongo, called data.pymongo will be created. There are two classes to be implemented:

The GenericDAO Class

The class will be given an existing pymongo object and the name of the database query. One instance can be shared by multiple objects (as the normal pymongo object). The class itself won't initialize the connection!

Each of the methods in the class that accesses the database can throw DataSourceError if the database or collection is not accessible.

The class will have the following methods: