https://github.com/iamnotnato/monty
https://github.com/iamnotnato/monty
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iamnotnato/monty
- Owner: iamnotnato
- License: mit
- Created: 2023-03-23T22:45:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T03:30:58.000Z (over 1 year ago)
- Last Synced: 2025-01-10T20:15:42.616Z (5 months ago)
- Language: C
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).