Skip to content

kirinrobotics/kimongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents

Introduction

MongoDB is a popular NoSQL database that offers flexibility and scalability. Still, it can be challenging due to its complex query language and lack of an explicit schema. Pymongo was created to address developers' challenges when working with MongoDB databases. Kimongodb is a document that shows you how to install and use data queries using the Pymongo library.

Installation

This tutorial installs MongoDB 6.0 Community Edition. To install a different version of MongoDB Community, use the version drop-down menu on this document.

Clone the repository and install MongoDB and requirements.txt in a Python >=3.7 environment.

git clone https://github.com/kirinslab/kimongodb.git
cd kimongodb
pip install -r requirements.txt
cd script
sudo chmod a+wrx .
./install.sh

Usage

Example connection

import pymongo

# Establish a connection to MongoDB
try:
    client = pymongo.MongoClient("mongodb://localhost:27017/")
    print("Connected successfully to MongoDB!")
except pymongo.errors.ConnectionFailure as e:
    print("Could not connect to MongoDB: %s" % e)

output

Connected successfully to MongoDB!

Once you've got MongoDB and Pymongo set up. You can also try out most of the tasks by running the examples.

Mongo Compass

MongoDB Compass is a powerful GUI for querying, aggregating, and analyzing your MongoDB data in a visual environment. Connect

For all information using Mongo Compass, please see the Documentation section.


Documentation

Author

cedricnam: mnnam132@gmail.com

License

Copyright (c) Kirinslab. All rights reserved.

Licensed under the GPT-3 license.