--- id: dmpython version: "2.5.38" license: Python Software Foundation License license_treatment: permissive maintenance: active --- # dmpython — Python interface to Dameng License: permissive · Maintenance: active · Downloads: 387.2K/mo ## What it is and what it does dmPython is the official Python driver for Dameng databases, maintained by Dameng and built on the Python DB API 2.0 standard. It allows Python applications to connect directly to Dameng databases and execute SQL queries, retrieve results, and manage transactions through a familiar cursor-based interface. The driver is distributed as compiled wheels for most platforms, eliminating the need for DPI configuration in typical installations. The package handles core database operations including connection management, SQL execution, parameter binding, and result fetching. It supports advanced features like stored procedure calls, large object handling (BLOB/CLOB), and output parameters. Recent versions have added support for boolean types, IPv6 connections, multi-tenant connections, and improved handling of special characters in passwords and bulk data operations. Use it for: - Connect Python applications to Dameng databases for OLTP or reporting workloads using standard DB API patterns - Build data pipelines that extract, transform, and load data from Dameng into Python data science workflows - Integrate Dameng as a backend for Django or SQLAlchemy-based web applications via dialect packages - Execute parameterized queries and stored procedures from Python with proper escaping and type handling - Manage large result sets and binary data (BLOB/CLOB) retrieval from Dameng tables ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. dmPython is a native Python driver for connecting to Dameng databases, implementing the Python DB API 2.0 specification to enable direct database access from Python applications. Yes. dmPython is actively maintained, has no known vulnerabilities, installs cleanly via wheels, and is the official driver for Dameng database access from Python. Install it if you need to connect Python applications to Dameng databases. Be aware that SSL encryption support depends on libssl 1.1+ being available or properly configured on your system. ## Install pip install dmpython uv add dmpython poetry add dmpython ## Installing dmpython Before you install: Installation is straightforward via wheel packages with no runtime dependencies. The package is actively maintained with recent releases and supports multiple Python versions (3.7–3.14). Medium install friction reflects that source installations require DPI environment configuration, though wheel installs do not. License in practice: Licensed under the Python Software Foundation License (permissive), allowing use in most projects without significant restrictions. Quickstart: pip install dmPython import dmPython conn = dmPython.connect('SYSDBA/Dmsys_123@localhost:5236/sch1') cursor = conn.cursor() cursor.execute("SELECT * FROM DUAL;") result = cursor.fetchall() Source installations require DPI (Dameng DPI interface) environment configuration; wheel installations do not. SSL encryption module (libssl 1.1+) may need to be available or LD_LIBRARY_PATH configured to point to the bundled dmssl directory. Verify before relying: - Whether sqlalchemy and django dialect support (dmSQLAlchemy, dmDjango) are included or require separate installation - Specific Python version minimum requirement (classifiers list Python 2 and 3 but requires_python is unspecified) - Full scope of supported Dameng database versions and compatibility matrix ## Package facts - License: Python Software Foundation License (permissive) - Python support: unspecified - Install friction: medium - Maintenance: active - Downloads: 387.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags dameng database driver, python dameng connection, dm database adapter, dameng db api, python db api dameng, dameng sql interface, dm database python, database-driver, dameng [View on SkillFed](https://skillfed.io/packages/dmpython) · [View on PyPI](https://pypi.org/project/dmpython/)