from pymongo import MongoClient
class CustomMongoClient: def init(self): self.client = MongoClient('mongodb://localhost:27017')
def get_client(self):
return self.client
custom_client = CustomMongoClient()
custom_client.get_client().close()
gestion de projet agile
from pymongo import MongoClient
class CustomMongoClient: def init(self): self.client = MongoClient('mongodb://localhost:27017')
def get_client(self):
return self.client
custom_client = CustomMongoClient()
custom_client.get_client().close()
gestion de projet agile
MIT License