semvec/pypi-packages huggingface dataset:
lyrid 0.0.11
An actor model framework that simplifies concurrent system while support real parallelism. No thread/process/async/await, just actor. Implemented in pure Python.
License: MIT
Requires Python: >=3.8

Lyrid
=====

|PyPi Version| |Supported Python Versions| |License|

Overview
========

An actor model framework that simplifies concurrent system while support
real parallelism.

No thread/process/async/await, just actor. Implemented in pure Python.’

Requirements
============

-  Python 3.8+
-  Works on Linux, Windows, macOS, BSD

Installation
============

using pip:

::

   pip install lyrid

Documentation
=============

`Github Wiki <https://github.com/SSripilaipong/lyrid/wiki>`__

.. |PyPi Version| image:: https://img.shields.io/pypi/v/lyrid
   :target: https://pypi.org/project/lyrid/
.. |Supported Python Versions| image:: https://img.shields.io/pypi/pyversions/lyrid.svg
   :target: https://pypi.org/project/lyrid/
.. |License| image:: https://img.shields.io/github/license/ssripilaipong/lyrid
   :target: https://github.com/SSripilaipong/lyrid/blob/master/LICENSE.md
vertica-connector-talenttech 1.2.1
TopMind Vertica Connector Wrapper
License: MIT
Requires Python: >=3.6

Customized vertica connector 
==========

The Python Wrapper to vertica_python lib for reconnectiong across server nodes


Usage
```sh
pip3 install vertica-connector-talenttech
```

```python
import os
import json
from vconnector.vertica_connector import VerticaConnector

user = "test_user",
password = "test_password"
database = "test_database"
vertica_configs = json.loads(os.getenv("VERTICA_CONFIGS"))


with VerticaConnector(user=user, 
                      password=password, 
                      database=database, 
                      vertica_configs=vertica_configs) as v_connector:
      cur = v_connector.cnx.cursor()
      sql = "SELECT 1"
      cur.execute(sql)
```

VERTICA_CONFIGS variable structure
-------------
```sh
{"host": <VERTICA_HOST>,
 "port": <VERTICA_PORT>,
 "backup_server_node": [<SERVER_NODE_1>, <SERVER_NODE_2>, <SERVER_NODE_3>}
```


INSERT TABLE  EXAMPLE
-----------------------------
```
   with VerticaConnector(
            user=os.getenv("VERTICA_USER"),
            password=os.getenv("VERTICA_PASSWORD"),
            database=os.getenv("DATABASE"),
            vertica_configs=json.loads(os.getenv("VERTICA_CONFIGS")),
    ) as v_connector:
        cursor = v_connector.cnx.cursor("dict")
        cursor.execute("drop table if exists test_staging.test cascade")
        cursor.execute(
            """create table netology_staging.test
                             (
                              a int,
                              b varchar(10),
                              c long varbinary(1000),
                              d long varchar default MAPTOSTRING(c)
                             )"""
        )
        v_connector.insert(
            table_name="test",
            schema="test_staging",
            data=list(
                [
                    {
                        "a": 1,
                        "b": "test2",
                        "c": '[{"x": 1, "y": 2}, {"x": 1, "y": 2}]',
                        "d": "fuck",
                    }
                ]
            ),
        )
```