{"id":13671440,"url":"https://github.com/databendlabs/databend-py","last_synced_at":"2025-10-05T07:31:22.640Z","repository":{"id":62622498,"uuid":"556558958","full_name":"databendlabs/databend-py","owner":"databendlabs","description":"Databend Cloud Python Driver with native interface support","archived":false,"fork":false,"pushed_at":"2024-12-25T07:50:48.000Z","size":323,"stargazers_count":19,"open_issues_count":4,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-13T12:02:11.617Z","etag":null,"topics":["database","databend","driver","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/databendlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-24T04:28:35.000Z","updated_at":"2024-12-25T07:45:19.000Z","dependencies_parsed_at":"2024-03-01T12:25:21.818Z","dependency_job_id":"d47e0946-52bc-466f-8156-a9c38b05f63b","html_url":"https://github.com/databendlabs/databend-py","commit_stats":null,"previous_names":["databendlabs/databend-py","databendcloud/databend-py","datafuselabs/databend-py"],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databendlabs%2Fdatabend-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databendlabs%2Fdatabend-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databendlabs%2Fdatabend-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databendlabs%2Fdatabend-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/databendlabs","download_url":"https://codeload.github.com/databendlabs/databend-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235374602,"owners_count":18979734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","databend","driver","python"],"created_at":"2024-08-02T09:01:09.734Z","updated_at":"2025-10-05T07:31:22.283Z","avatar_url":"https://github.com/databendlabs.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Notice\nWe strongly recommend using the [databend-driver](https://pypi.org/project/databend-driver) as it provides more comprehensive features.\n\n\n# databend-py\n\nDatabend Cloud Python Driver with native http interface support\n\n[![image](https://img.shields.io/pypi/v/databend-py.svg)](https://pypi.org/project/databend-py)\n\n[![image](https://coveralls.io/repos/github/databendcloud/databend-py/badge.svg?branch=master)](https://coveralls.io/github/databendcloud/databend-py?branch=master)\n\n[![image](https://img.shields.io/pypi/l/databend-py.svg)](https://pypi.org/project/databend-py)\n\n[![image](https://img.shields.io/pypi/pyversions/databend-py.svg)](https://pypi.org/project/databend-py)\n\n# Installation\n\npip install databend-py\n\n# Usage\n\nUse the next code to check connection:\n\n\u003e ``` python\n\u003e \u003e\u003e\u003e from databend_py import Client\n\u003e \u003e\u003e\u003e client = Client(\n\u003e     host='tenant--warehouse.ch.datafusecloud.com',\n\u003e     database=\"default\",\n\u003e     user=\"user\",\n\u003e     port=\"443\",\n\u003e     secure=True,\n\u003e     password=\"password\",settings={\"copy_purge\":True,\"force\":True})\n\u003e \u003e\u003e\u003e print(client.execute(\"SELECT 1\"))\n\u003e ```\n\nThe [host]{.title-ref}, [user]{.title-ref}, [password]{.title-ref} info\nwill be found in databend cloud warehouse connect page as flows:\n\nPure Client example:\n\n\u003e ``` python\n\u003e \u003e\u003e\u003e from databend_py import Client\n\u003e \u003e\u003e\u003e\n\u003e \u003e\u003e\u003e client = Client.from_url('http://root@localhost:8000/db?secure=False\u0026copy_purge=True')\n\u003e \u003e\u003e\u003e\n\u003e \u003e\u003e\u003e client.execute('SHOW TABLES')\n\u003e [[], [('test',)]]\n\u003e \u003e\u003e\u003e client.execute(\"show tables\",with_column_types=True)\n\u003e [[('Tables_in_default', 'String')], [('test',)]] # [[(column_name, column_type)], [(data,)]]\n\u003e \u003e\u003e\u003e client.execute('DROP TABLE IF EXISTS test')\n\u003e []\n\u003e \u003e\u003e\u003e client.execute('CREATE TABLE test (x Int32)')\n\u003e []\n\u003e \u003e\u003e\u003e client.execute(\n\u003e ...     'INSERT INTO test (x) VALUES', [(1,)]\n\u003e ... )\n\u003e 1\n\u003e \u003e\u003e\u003e client.execute('INSERT INTO test (x) VALUES', [(200,)])\n\u003e 1\n\u003e ```\n\nMore usages examples find [here](./examples).\n\n# Features\n\n-   Basic SQL.\n-   TLS support.\n-   Query settings.\n-   Types support:\n    -   Float32/64\n    -   \\[U\\]Int8/16/32/64/128/256\n    -   Date/Date32/DateTime(\\'timezone\\')/DateTime64(\\'timezone\\')\n    -   String\n    -   Array(T)\n    -   Nullable(T)\n    -   Bool\n\n# Compatibility\n\n-   If databend version \\\u003e= v0.9.0 or later, you need to use databend-py\n    version \\\u003e= v0.3.0.\n\n# License\n\nDatabend Python Driver is distributed under the [Apache\nlicense]{.title-ref}.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabendlabs%2Fdatabend-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatabendlabs%2Fdatabend-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabendlabs%2Fdatabend-py/lists"}