Registry / database / pydoris

pydoris

JSON →
library1.2.0pypypiunverified

PyDoris is a Python client for Apache Doris, providing a DB-API 2.0 compatible interface to interact with Doris databases. Current version is 1.2.0, supporting Python >=3.7. It connects via MySQL protocol (typically port 9030). The library is maintained by the Apache Doris community.

pip install pydoris
INSTALL
IMPORT
SIG · PYDORIS
P
pydoris
databasepythonv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

connect
from pydoris import connect
import pydoris connect = pydoris.connect
Direct import is correct; avoid importing module then accessing attribute.

Connect to Apache Doris, execute a query, and print the version.

import os from pydoris import connect host = os.environ.get('DORIS_HOST', 'localhost') port = int(os.environ.get('DORIS_PORT', 9030)) user = os.environ.get('DORIS_USER', 'root') password = os.environ.get('DORIS_PASSWORD', '') database = os.environ.get('DORIS_DATABASE', 'test') conn = connect(host=host, port=port, user=user, password=password) cursor = conn.cursor() cursor.execute("SELECT VERSION()") print(cursor.fetchone()) cursor.close() conn.close()
Debug
Known issues
gotchaPort should be the MySQL protocol port (default 9030), not the HTTP port (8030). Common mistake caused by misreading Doris documentation.
fix
Use port 9030 (or your configured query port).
affects: all
gotchaPyDoris uses the MySQL protocol; ensure the Doris server has MySQL protocol enabled and the user has proper host permissions.
fix
Check user host in Doris: `SHOW GRANTS;` and ensure `mysql_native_password` authentication.
affects: all
deprecatedThe `pydoris` package on PyPI is version 1.2.0, which may be outdated compared to latest Doris releases. Many users mistakenly install an old version expecting latest features.
fix
Check for updates; consider using official mysql-connector-python if needed.
affects: 1.2.0
Upgrade
Version history
1.2.0latest on PyPI · released Mar 17, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
pydoris — pip install pydoris · libregistry