Skip to content

Commit

Permalink
Merge preparation
Browse files Browse the repository at this point in the history
- Merged main into branch
- Added changes summary to changelog
- Restored sync between index and readme
  • Loading branch information
VianneyMI committed Oct 26, 2023
1 parent 9525ed3 commit 44ad67a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes

## 0.17.0

### Docs

* First version of the documentation :champagne: !

## 0.16.2

### Fixes
Expand Down
4 changes: 4 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,7 @@ results = list(cursor)
#print(results)
```

## **Going further**

* Check out the [full documentation](https://vianneymi.github.io/monggregate/) for more examples.
* Check out this [medium article](https://medium.com/@vianney.mixtur_39698/mongo-db-aggregations-pipelines-made-easy-with-monggregate-680b322167d2).
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ version = "0.16.2"
description = "MongoDB aggregation pipelines made easy. Joins, grouping, counting and much more..."
readme = "README.md"
authors = [{ name = "Vianney Mixtur", email = "vianney.mixtur@outlook.fr" }]
documentation = "https://vianneymi.github.io/monggregate/
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
Expand Down
13 changes: 6 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ import pymongo
from monggregate import Pipeline, S

# Creating connexion string securely
# You need to create a .env file with your password
load_dotenv(verbose=True)
PWD = os.environ["MONGODB_PASSWORD"]
PWD = os.environ["MONGODB_PASSWORD"]

MONGODB_URI = f"mongodb+srv://dev:{PWD}@myserver.xciie.mongodb.net/?retryWrites=true&w=majority"

# Connect to your MongoDB cluster:
Expand All @@ -64,8 +66,9 @@ pipeline.match(
# Executing the pipeline
curosr = db["movies"].aggregate(pipeline.export())

# Printing the results
results = list(curosr)
assert results
#print(results) # Uncomment to see the results
```


Expand Down Expand Up @@ -115,7 +118,6 @@ cursor = db["movies"].aggregate(pipeline.export())
# Printing the results
results = list(cursor)
#print(results)
assert results

```

Expand Down Expand Up @@ -163,12 +165,9 @@ cursor = db["movies"].aggregate(pipeline.export())
# Printing the results
results = list(cursor)
#print(results)
assert results, results


```

## **Going further**

* Check out the [documentation](https://vianneymi.github.io/monggregate/) for more examples.
* Check out the [full documentation](https://vianneymi.github.io/monggregate/) for more examples.
* Check out this [medium article](https://medium.com/@vianney.mixtur_39698/mongo-db-aggregations-pipelines-made-easy-with-monggregate-680b322167d2).

0 comments on commit 44ad67a

Please sign in to comment.