.. image:: https://github.com/capitalone/locopy/workflows/Python%20package/badge.svg :target: https://github.com/capitalone/locopy/actions .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/ambv/black
一个Python库,用于协助ETL处理:
COPY
、UNLOAD
)COPY INTO <table>
、COPY INTO <location>
)此外:
DB-API 2.0 <https://www.python.org/dev/peps/pep-0249/>
_的任何驱动程序.. code-block:: bash
pip install locopy
或从conda-forge安装
.. code-block:: bash
conda config --add channels conda-forge
conda install locopy
强烈建议使用虚拟或conda环境
.. code-block:: bash
$ virtualenv locopy
$ source locopy/bin/activate
$ pip install --upgrade setuptools pip
$ pip install locopy
locopy
倾向于保持中立,而不是使用特定的Python数据库驱动程序/适配器(支持Amazon Redshift或Snowflake)。作为最终用户,您可以使用任何符合Python数据库API规范2.0的包。
以下包已经过测试:
psycopg2
pg8000
snowflake-connector-python