Metadata-Version: 2.1
Name: databend-py
Version: 0.0.7
Summary: Python driver with native interface for Databend
Home-page: https://github.com/databendcloud/databend-py
Author: Databend Cloud Team
Author-email: hantmac@outlook.com
License: Apache License
Keywords: databend db database cloud analytics
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: SQL
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Database
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: >=3.4, <4
License-File: LICENSE
Requires-Dist: pytz
Requires-Dist: tzlocal
Requires-Dist: mysql.connector
Requires-Dist: tzlocal (<2.1) ; python_version == "3.5"

databend-py
===========

Databend Cloud Python Driver with native http interface support

.. image:: https://img.shields.io/pypi/v/databend-driver.svg
    :target: https://pypi.org/project/databend-driver

.. image:: https://coveralls.io/repos/github/databendcloud/databend-py/badge.svg?branch=master
    :target: https://coveralls.io/github/databendcloud/databend-py?branch=master

.. image:: https://img.shields.io/pypi/l/databend-driver.svg
    :target: https://pypi.org/project/databend-driver

.. image:: https://img.shields.io/pypi/pyversions/databend-driver.svg
    :target: https://pypi.org/project/databend-driver

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

pip install databend-py

Usage
=====

Pure Client example:

    .. code-block:: python

        >>> from databend_pyimport Client
        >>>
        >>> client = Client('http://root:rootlocalhost:8081/db')
        >>>
        >>> client.execute('SHOW TABLES')
        [('test',)]
        >>> client.execute('DROP TABLE IF EXISTS test')
        []
        >>> client.execute('CREATE TABLE test (x Int32)')
        []
        >>> client.execute(
        ...     'INSERT INTO test (x) VALUES', [(1,)]
        ... )
        1
        >>> client.execute('INSERT INTO test (x) VALUES', [(200,)])
        1

Features
========

- Basic SQL.

- TLS support.

- Query settings.

- Types support:

  * Float32/64
  * [U]Int8/16/32/64/128/256
  * Date/Date32/DateTime('timezone')/DateTime64('timezone')
  * String
  * Array(T)
  * Nullable(T)
  * Bool


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

// TODO

License
=======

Databend Python Driver is distributed under the `Apache license`.


