semvec/pypi-packages huggingface dataset:
dbutils-gonzalo123 1.3.11
psycopg2 db utils
License: MIT
Requires Python: >=3.5
Keywords: psycopg2

# Database utils for psycopg2

[dbutils](https://github.com/gonzalo123/dbutils)

## Install

```commandline
pip install dbutils-gonzalo123
```

From github
```commandline
pip install -e git+https://github.com/gonzalo123/dbutils#egg=dbutils-gonzalo123
```

### Run test
```commandline
pytest
```

Note: Set up your connection parameters within pytest.ini. I also provide one docker-compose.yml file with a PostgreSQL database ready for the testing.

```ini
[pytest]
python_files = tests.py test_*.py *_tests.py
env =
    POSTGRES_HOST=localhost
    POSTGRES_PASSWORD=password
    POSTGRES_USER=username
    POSTGRES_DB=gonzalo123
```

In this database ther's one table and one stored procedure:

```sql
CREATE TABLE users
(
    email  VARCHAR(256) UNIQUE NOT NULL,
    "name" VARCHAR(256)        NOT NULL
);

CREATE OR REPLACE FUNCTION hello(name varchar(100))
    RETURNS VARCHAR AS
$$
BEGIN
    RETURN 'Hello ' || name;

END;
$$
    LANGUAGE plpgsql;
```
clickhouse-http-client 1.0.2
clickhouse http client, author liyuanjun
License: MIT

clickhouse-http-client
======================
clickhouse http client.

Install
=======

Use source::

   $ git clone https://github.com/tomoncle/clickhouse-http-client.git
   $ cd clickhouse-http-client
   $ sudo python setup.py install

Use pip::

   $ pip install clickhouse-http-client



Usage
=====

init::

   from clickhouse_http_client import ClickHouse
   ck = ClickHouse(password="123456")

query::

   ck.text("select * from table_name")
   ck.json("select * from table_name")

delete::

   ck.delete("table_name", "id IS NOT NULL")

save::

   ck.insert("table_name", {"name":"tomoncle", "age":"27"})

update::

   ck.update("table_name", "status=1", {"name":"tomoncle", "age":"27"})
vitess-helpers 0.1.0
General purpose Vitess helper library
License: MIT
Keywords: vitess,shard,shard range

# vitess-helpers
This library is intended to be a general library to help manage the lifecycle of a Vitess cluster.

Visit https://vitess.io/ for more information on what Vitess is.

## shard range library
Generate shard ranges using python. The library takes a single input `shards` and generates a list of shard range names.

See Vitess documentation for further information:

https://vitess.io/docs/reference/features/sharding/

Example usage:
```python
>>> from vitess_helpers import shard_ranges
>>> shard_ranges(3)
['-55', '55-aa', 'aa-']
>>>
```

## to install

`pip install vitess-helpers`