I am writing an application using Pymongo to access a database on MongoDb Atlas using some basic syntax such as:
import pymongo as pm
url = "mongodb+srv://user:[email protected].."
client = pm.MongoClient(url)
db = client.get_database('name_db')
My problem is that every time I connect from a different IP I need to login manually to the mongoDB Atlas panel and add the new IP. Is there a pymongo function able to add the user IP automatically ?
Sorry if the question is trivial, I am still new to the mongoDB world.
Thank you!