Metadata-Version: 2.2
Name: simple-mongo
Version: 0.0.5
Summary: A simple MongoDB module with less configuration
Author: Marjon Godito
Description-Content-Type: text/markdown
Requires-Dist: pymongo
Requires-Dist: python-dotenv
Requires-Dist: pydantic
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-dist
Dynamic: summary

# Simple Mongo (A Simple Mongodb Library)

## Getting Started:

- To run and test the library, it should required to provide an environment variables by creating an <i>.env</i> file:

```bash
    MONGODB_URL="mongodb://your-url-here"
    MONGODB_NAME="your-database-name-here"
```

### Running a simple query:

- Get All documents within a collection:

```python

from simple_mongo.database import MongoDB

MongoDB.all('<COLLECTION-NAME-HERE>')

```

- Create a simple data to a collection:

```python

# supposed that we have a 'users' collection

MongoDB.create('<COLLECTION-NAME-HERE>',
    {
        'name': 'John Doe', 
        'email': 'johndoe@gmail.com'
    }
)
```
