Skip to main content

Apache Doris Python Client

A Apache Doris client for the Python programming language.

Apache Doris is a high-performance, real-time analytical database based on MPP architecture, known for its extreme speed and ease of use. It only requires a sub-second response time to return query results under massive data and can support not only high-concurrent point query scenarios but also high-throughput complex analysis scenarios. All this makes Apache Doris an ideal tool for scenarios including report analysis, ad-hoc query, unified data warehouse, and data lake query acceleration. On Apache Doris, users can build various applications, such as user behavior analysis, AB test platform, log retrieval analysis, user portrait analysis, and order analysis.

Installation

pip install pydoris

SQLAlchemy Usage

To connect to doris using SQLAlchemy, use a connection string (URL) following this pattern:

  • User: User Name
  • Password: Password
  • Host: doris FE Host
  • Port: doris FE port
  • Catalog: Catalog Name
  • Database: Database Name

Here's what the connection string looks like:

doris://<User>:<Password>@<Host>:<Port>/<Database>
pydoris://<User>:<Password>@<Host>:<Port>/<Database>
doris://<User>:<Password>@<Host>:<Port>/<Catalog>.<Database>
pydoris://<User>:<Password>@<Host>:<Port>/<Catalog>.<Database>

Example

It is recommended to use python 3.x to connect to the doris database, eg:

from sqlalchemy import create_engine
from sqlalchemy.schema import Table, MetaData
from sqlalchemy.sql.expression import select, text

engine = create_engine('doris://root:xxx@localhost:9030/hive_catalog.hive_db')
connection = engine.connect()

rows = connection.execute(text("SELECT * FROM hive_table")).fetchall()

Metadata

Release files for pydoris 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydoris 1.2.0
File Size Uploaded
pydoris-1.2.0.tar.gz 22.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydoris 1.2.0
File Interpreter ABI Platform
pydoris-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.8 kB

Release files / pydoris-1.2.0.tar.gz

Download URL pydoris-1.2.0.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
83af7070f54370a60527a58ab55713e5e4812433d7205b646c7e27becb93bc13
BLAKE2b-256 checksum
How to use checksums
d60a483a3a591ac43a20b7c50ef72b96df4d2e6f3e0a0691b3285269233e7c27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pydoris-1.2.0-py3-none-any.whl

Download URL pydoris-1.2.0-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60fb41960477231089fe2f25bf56611448b8e028e547ea3a45f413733ac3fd56
BLAKE2b-256 checksum
How to use checksums
2bc6dffb922ebcfeac601be139c5134a19f64fe6ca4f927694b4fdf1b91d13cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.6

1 release file

1.0.5.3

1 release file

1.0.5.2

1 release file

1.0.5.1

1 release file

1.0.5

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page