MongoDB
Fetch data from a mongodb and get a dataframe
The most popular database for modern apps
MongoDB
Website

Connect

You must Connect before any other methods
1
user = "my user"
2
passwd = "my passwd"
3
host = "url"
4
port = 9090
5
ftp = naas_drivers.mongo.connect(host, port, user, passwd)
Copied!

Get data

1
collection_name = "col"
2
db_name = "db_name"
3
naas_drivers.mongo.get(collection_name, db_name)
Copied!

Send data

1
collection_name = "col"
2
db_name = "db_name"
3
data = # a dataframe
4
naas_drivers.mongo.send(data, collection_name, db_name)
Copied!

Official documentation

Welcome to the MongoDB Documentation
mongodb