Skip to content

Commit 919c230

Browse files
authored
RELEASE: 0.8.0 (#140)
### ADO Work Item Reference <!-- Insert your ADO Work Item ID below (e.g. AB#37452) --> > [AB#38002](https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/38002) ------------------------------------------------------------------- ### Summary This pull request updates the `mssql-python` driver to version 0.8.0, introducing several new features and improvements. Key changes include enhanced authentication options, performance optimizations, and better debugging capabilities. ### New Features and Enhancements: * **Azure Active Directory Authentication**: Added support for Azure AD login options (e.g., `ActiveDirectoryInteractive`, `ActiveDirectoryDeviceCode`, `ActiveDirectoryDefault`) to enable secure and flexible cloud integration. (`PyPI_Description.md`, [PyPI_Description.mdL12-R15](diffhunk://#diff-5236254592b2fea0773f17424b16acf82e3aa351ad8bae33871de5c98eb76eedL12-R15)) * **Batch Execution Performance**: Refactored the `executemany` method for efficient bulk operations and improved C++ bindings to enhance performance during batch execution. (`PyPI_Description.md`, [PyPI_Description.mdL12-R15](diffhunk://#diff-5236254592b2fea0773f17424b16acf82e3aa351ad8bae33871de5c98eb76eedL12-R15)) ### Debugging and Logging Improvements: * **Robust Logging System**: Overhauled the logging mechanism with a singleton manager, sensitive data sanitization, and improved exception handling for better traceability. (`PyPI_Description.md`, [PyPI_Description.mdL12-R15](diffhunk://#diff-5236254592b2fea0773f17424b16acf82e3aa351ad8bae33871de5c98eb76eedL12-R15)) * **Improved Row Representation**: Enhanced the `Row` object’s string and representation methods for more informative debugging and output. (`PyPI_Description.md`, [PyPI_Description.mdL12-R15](diffhunk://#diff-5236254592b2fea0773f17424b16acf82e3aa351ad8bae33871de5c98eb76eedL12-R15)) ### Version Update: * Updated the library version from `0.7.0` to `0.8.0` in `setup.py`. (`setup.py`, [setup.pyL82-R82](diffhunk://#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7L82-R82)) --------- Co-authored-by: Jahnvi Thakkar <jathakkar@microsoft.com>
1 parent a4da13a commit 919c230

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

PyPI_Description.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ 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-
- **Linux Support**: The mssql-python driver now supports Linux OS (manylinux2014) - Ubuntu, Debian and RHEL, enabling seamless development on Linux based systems. Added Linux driver libraries and related logic for architecture-specific handling and ODBC driver path resolution. Support for other Linux based distros will come in subsequent releases.
13-
- **Connection Pooling Support for MacOS and Linux**: Implemented connection pooling features for MacOS and Linux, including tests and unified code support for pooling across platforms.
14-
Expanded Pipeline/Test Matrix: Added/expanded support for Python versions < 3.13 and enhanced database setup for testing, including LocalDB and Docker-based SQL Server.
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.
1516

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

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ EntraID authentication is now fully supported on MacOS and Linux but with certai
6262
| ActiveDirectoryDeviceCode | ✅ Yes | ✅ Yes | Device code flow for authentication; suitable for environments without browser access |
6363
| ActiveDirectoryDefault | ✅ Yes | ✅ Yes | Uses default authentication method based on environment and configuration |
6464

65-
**NOTE**: For using Access Token, the connection string *must not* contain `UID`, `PWD`, `Authentication`, or `Trusted_Connection` keywords.
66-
67-
**NOTE**: For using ActiveDirectoryDeviceCode, make sure to specify a `Connect Timeout` that provides enough time to go through the device code flow authentication process.
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.
6869

6970
### Enhanced Pythonic Features
7071

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def finalize_options(self):
7979

8080
setup(
8181
name='mssql-python',
82-
version='0.7.0',
82+
version='0.8.0',
8383
description='A Python library for interacting with Microsoft SQL Server',
8484
long_description=open('PyPI_Description.md', encoding='utf-8').read(),
8585
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)