semvec/pypi-packages huggingface dataset:
aio-ch 0.0.1
Library for accessing a ClickHouse database over native interface from the asyncio
License: MIT
Keywords: ClickHouse db database cloud analytics asyncio

# aioch
**aioch** is a library for accessing a ClickHouse database over native interface from the asyncio.
It wraps features of [clickhouse-driver](https://github.com/mymarilyn/clickhouse-driver) for asynchronous usage.

## Installation

The package can be installed using `pip`:

```bash
pip install aio_ch
```

## Usage
```python
from datetime import datetime

import asyncio
from aioch import Client


async def exec_progress():
    client = Client('localhost')

    progress = await client.execute_with_progress('LONG AND COMPLICATED QUERY')
    timeout = 20
    started_at = datetime.now()

    async for num_rows, total_rows in progress:
        done = num_rows / total_rows if total_rows else total_rows
        now = datetime.now()
        # Cancel query if it takes more than 20 seconds to process 50% of rows.
        if (now - started_at).total_seconds() > timeout and done < 0.5:
            await client.cancel()
            break
    else:
        rv = await progress.get_result()
        print(rv)


async def exec_no_progress():
    client = Client('localhost')
    rv = await client.execute('LONG AND COMPLICATED QUERY')
    print(rv)


loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.wait([exec_progress(), exec_no_progress()]))
```

For more information see **clickhouse-driver** usage examples.

## Parameters

* `executor` - instance of custom Executor, if not supplied default executor will be used
* `loop` - asyncio compatible event loop

Other parameters are passing to wrapped clickhouse-driver's Client.

## License

aioch is distributed under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
hesapmakinesi 1.0.0
hesaplama işlemlerinizi gerçekleştirmek için hazırladığım bir kütüphane
License: MIT
Keywords: hesap makinesi

Bu oldukÃ§a basit bir hesaplama kÃ¼tÃ¼phanesidir. Ä°ki sayÄ±yÄ± toplama,Ã§Ä±karma,Ã§arpma ve bÃ¶lme iÅŸlemlerine tabi tutar. </

Change Log
------ ---
v1.0.0(19/11/2021)
------------------ 
Ä°lk SÃ¼rÃ¼m
---------
aio-clickhouse 0.0.5
Library for accessing a ClickHouse database over native interface from the asyncio
License: MIT
Keywords: ClickHouse db database cloud analytics asyncio

# aioch
**aioch** is a library for accessing a ClickHouse database over native interface from the asyncio.
It wraps features of [clickhouse-driver](https://github.com/mymarilyn/clickhouse-driver) for asynchronous usage.

## Installation

The package can be installed using `pip`:

```bash
pip install aioclickhouse
```

## Usage
```python
from datetime import datetime

import asyncio
from aioch import Client


async def exec_progress():
    client = Client('localhost')

    progress = await client.execute_with_progress('LONG AND COMPLICATED QUERY')
    timeout = 20
    started_at = datetime.now()

    async for num_rows, total_rows in progress:
        done = num_rows / total_rows if total_rows else total_rows
        now = datetime.now()
        # Cancel query if it takes more than 20 seconds to process 50% of rows.
        if (now - started_at).total_seconds() > timeout and done < 0.5:
            await client.cancel()
            break
    else:
        rv = await progress.get_result()
        print(rv)


async def exec_no_progress():
    client = Client('localhost')
    rv = await client.execute('LONG AND COMPLICATED QUERY')
    print(rv)


loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.wait([exec_progress(), exec_no_progress()]))
```

For more information see **clickhouse-driver** usage examples.

## Parameters

* `executor` - instance of custom Executor, if not supplied default executor will be used
* `loop` - asyncio compatible event loop

Other parameters are passing to wrapped clickhouse-driver's Client.

## License

aioch is distributed under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
rootnum 0.1.2
Module for accurate square root operations
License: MIT

# rootnum
A python module for accurate square root operations

# Usage

## installation
```
pip install rootnum
```

## import

```py
from rootnum import Rootnum
```

## creating s square root

```py
num = Rootnum([(1, 1), (1, 5)], 2)
print(num)
```
outputs
```
(1 + √5) / 2
```

## math

```py
a = num + (1, 2)
b = 1 / num
print(a)
print(b)
```
outputs
```
(1 + 2√2 + √5) / 2
(-1 + √5) / 2
```