semvec/pypi-packages huggingface dataset:
floodwaive 0.1.6
Library provision for development of FloodWaive products.
License: MIT
Requires Python: >=3.7

# 🌊 floodwaive

[![PyPI version](https://img.shields.io/pypi/v/floodwaive.svg)](https://pypi.org/project/floodwaive/)
[![Build Status](https://github.com/floodwaive/floodwaive-library/actions/workflows/release.yml/badge.svg)](https://github.com/floodwaive/floodwaive-library/actions)
[![Python versions](https://img.shields.io/pypi/pyversions/floodwaive.svg)](https://pypi.org/project/floodwaive/)
[![License](https://img.shields.io/github/license/floodwaive/floodwaive-library.svg)](https://github.com/floodwaive/floodwaive-library/blob/main/LICENSE)
[![TestPyPI](https://img.shields.io/badge/TestPyPI-floodwaive-informational?logo=python&labelColor=grey)](https://test.pypi.org/project/floodwaive/)


> Core SDK for predictive flood intelligence and seamless integration with FloodWaive API services.
---

## 📦 Installation

Install from PyPI:

```bash
pip install floodwaive
```
---

## 🚀 Quick Start
```python
import floodwaive
floodwaive.hello_world()
```

## Check version
```python
floodwaive.print_version()
```

## Check connection to the API
```python
floodwaive.check_connection("https://api.floodwaive.de")
```

## Validate API token
```python
floodwaive.validate_token("your-api-token-here")
```

## ⚠️ API Usage Notice
This library is open source under the MIT License, but access to the FloodWaive API is subject to separate licensing and usage terms.

You must be authorized to use the FloodWaive API. Please contact us for access or licensing details:

📬 info@floodwaive.de

🌐 floodwaive.de
mangodb.py 1.0.0
Async ODM for MongoDB based on Motor & Pydantic
License: MIT
Requires Python: >=3.7
Keywords: mongodb, motor, pydantic, async, odm

# MangoODM

**MangoODM** — lightweight and easy-to-use ODM (Object Document Mapper) library for Python, designed to work asynchronously with MongoDB using the `motor` driver.  
Supports Pydantic models and MongoDB sessions.

---

## Features

- Simple model definition using Pydantic  
- Model registration and automatic collection handling  
- Asynchronous CRUD operations: insert, find, update, delete  
- Support for MongoDB sessions for transaction safety  
- Logging for important events and errors

---

## Installation

```
pip install mangodb.py
```

## Usage

### Define your model

```python 

from mango impot MangoModel

class GDBeach(MangoModel):
    name: str
    role: str

```

### Initialize ODM and register model

```python

import asyncio
from motor.motor_asyncio import AsyncIOMotorClient
from mango import MangoODM, MangoModel

class GDBeach(MangoModel):
    name: str
    role: str

async def main():

    client = AsyncIOMotorClient("mongodb://localhost:27017") # you also can use srv
    db = client["MangoDB"]
    odm = MangoODM(db)
    odm.register_model(GDBeach)

    async with await client.start_session() as session:

        insert_result = await odm.insert_one("GDBeach", session=session, name="xSodium", role="soda")
        print(f"Inserted document ID: {insert_result.inserted_id}")

        found_doc = await odm.find_one("GDBeach", session=session, name="xSodium")
        print(f"Found document: {found_doc}")

asyncio.run(main())

```

# that's all!
mango.odm.py 0.1.0
Async ODM для MongoDB на базе Motor и Pydantic
License: MIT
Requires Python: >=3.7
Keywords: mongodb, motor, pydantic, async, odm

# MangoODM

**MangoODM** — lightweight and easy-to-use ODM (Object Document Mapper) library for Python, designed to work asynchronously with MongoDB using the `motor` driver.  
Supports Pydantic models and MongoDB sessions.

---

## Features

- Simple model definition using Pydantic  
- Model registration and automatic collection handling  
- Asynchronous CRUD operations: insert, find, update, delete  
- Support for MongoDB sessions for transaction safety  
- Logging for important events and errors

---

## Installation

```
pip install mango.odm.py
```

## Usage

### Define your model

```python 

from mango impot MangoModel

class GDBeach(MangoModel):
    name: str
    role: str

```

### Initialize ODM and register model

```python

import asyncio
from motor.motor_asyncio import AsyncIOMotorClient
from mango import MangoODM, MangoModel

class GDBeach(MangoModel):
    name: str
    role: str

async def main():

    client = AsyncIOMotorClient("mongodb://localhost:27017") # you also can use srv
    db = client["MangoDB"]
    odm = MangoODM(db)
    odm.register_model(GDBeach)

    async with await client.start_session() as session:

        insert_result = await odm.insert_one("GDBeach", session=session, name="xSodium", role="soda")
        print(f"Inserted document ID: {insert_result.inserted_id}")

        found_doc = await odm.find_one("GDBeach", session=session, name="xSodium")
        print(f"Found document: {found_doc}")

asyncio.run(main())

```

# that's all!