An open API service indexing awesome lists of open source software.

https://github.com/iamnotnato/monty


https://github.com/iamnotnato/monty

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

**Monty**

**Description**

Monty is a Python package that provides a simple and efficient way to manage MongoDB connections and operations in your Python applications. It offers a high-level API that simplifies common MongoDB tasks, such as connecting to a database, executing queries, and manipulating data.

**Features**

* Easy-to-use API for managing MongoDB connections
* Support for multiple database connections
* Simplified query execution with automatic type conversion
* Built-in error handling and retry mechanisms
* Async I/O support for high-performance applications

**Technologies Used**

* Python 3.6+
* MongoDB
* PyMongo

**Getting Started**

To install Monty, run the following command in your terminal:

```
pip install monty
```

To use Monty, import it into your Python script and create a connection to your MongoDB database:

```python
from monty import Monty

# Create a connection to the "test" database on the default host and port
monty = Monty("test")

# Execute a query to retrieve all documents from the "users" collection
users = monty.query("users", {})
```

**Contribution Guidelines**

We welcome contributions from the community. If you would like to contribute to Monty, please follow these guidelines:

* Fork the Monty repository on GitHub.
* Create a feature branch for your changes.
* Make your changes and add tests to verify their functionality.
* Submit a pull request to the Monty repository.
* Please respect the code style and conventions used in the project.

**License**

Monty is licensed under the MIT License.

### Contact

For any questions or support, please contact the maintainer through [GitHub](https://github.com/iamnotnato).