Skip to content

Commit d6e63c7

Browse files
committed
Merge branch 'main' of https://github.com/microsoft/mssql-python into jahnvi/execute_cursor
2 parents 8836965 + 3201752 commit d6e63c7

24 files changed

+1646
-944
lines changed

PyPI_Description.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ We are making progress - The Public Preview of our driver is now available! This
99
### What's Included:
1010

1111
- Everything from previous releases
12-
- **Azure Active Directory Authentication:** New authentication module supporting Azure AD login options (ActiveDirectoryInteractive, ActiveDirectoryDeviceCode, ActiveDirectoryDefault) for secure and flexible cloud integration.
13-
- **Batch Execution Performance:** Refactored `executemany` for efficient bulk operations and improved C++ bindings for performance.
14-
- **Robust Logging System:** Overhauled logging with a singleton manager, sensitive data sanitization, and better exception handling.
15-
- **Improved Row Representation:** Enhanced output and debugging via updated `Row` object string and representation methods.
12+
- **Alpine Linux Support:** Added full support for Alpine Linux distribution (musllinux) with specialized driver handling and fixes for musl libc compatibility.
13+
- **Connection Management Improvements:** Fixed autocommit to be False by default and added automatic rollback on connection close for better transaction control.
14+
- **PyODBC Compatibility:** Enhanced type objects and constructor compatibility with pyodbc for seamless migration and interoperability.
1615

1716
For more information, please visit the project link on Github: https://github.com/microsoft/mssql-python
1817

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,31 @@ pip install mssql-python
1717
```
1818
**MacOS:** mssql-python can be installed with [pip](http://pypi.python.org/pypi/pip)
1919
```bash
20+
# For Mac, OpenSSL is a pre-requisite - skip if already present
2021
brew install openssl
2122
pip install mssql-python
2223
```
2324
**Linux:** mssql-python can be installed with [pip](http://pypi.python.org/pypi/pip)
2425
```bash
26+
# For Alpine
27+
apk add libtool krb5-libs
28+
29+
# For Debian/Ubuntu
30+
apt-get install -y libltdl7
31+
32+
# For RHEL
33+
dnf install -y libtool-ltdl
34+
2535
pip install mssql-python
2636
```
2737

2838
## Key Features
2939
### Supported Platforms
3040

31-
Windows, MacOS and Linux (manylinux2014 - Debian, Ubuntu & RHEL)
41+
Windows, MacOS and Linux (manylinux - Debian, Ubuntu, RHEL & musllinux - Alpine)
3242

3343
> **Note:**
34-
> Support for additional Linux OSs (Alpine, SUSE Linux) will come soon
44+
> Support for additional Linux OSs (SUSE Linux) will come soon
3545
>
3646
3747
### DBAPI v2.0 Compliance
@@ -62,10 +72,7 @@ EntraID authentication is now fully supported on MacOS and Linux but with certai
6272
| ActiveDirectoryDeviceCode | ✅ Yes | ✅ Yes | Device code flow for authentication; suitable for environments without browser access |
6373
| ActiveDirectoryDefault | ✅ Yes | ✅ Yes | Uses default authentication method based on environment and configuration |
6474

65-
**NOTE**:
66-
- **Access Token**: the connection string **must not** contain `UID`, `PWD`, `Authentication`, or `Trusted_Connection` keywords.
67-
- **Device Code**: make sure to specify a `Connect Timeout` that provides enough time to go through the device code flow authentication process.
68-
- **Default**: Ensure you're authenticated via az login, or running within a managed identity-enabled environment.
75+
> For more information on Entra ID please refer this [document](https://github.com/microsoft/mssql-python/wiki/Microsoft-Entra-ID-support)
6976
7077
### Enhanced Pythonic Features
7178

0 commit comments

Comments
 (0)