Jump to content
Microsoft Windows Bulletin Board

Recommended Posts

Posted

We’re thrilled to announce the alpha release of our new open-source Python driver for Microsoft SQL Server and the Azure SQL family, now available on GitHub: mssql-python.

Built from the ground up, this driver offers Python developers a robust, efficient, and fully open-source solution for connecting to SQL Server and Azure SQL. Whether you're building data-driven applications, automating workflows, or leveraging advanced analytics, mssql-python is designed to provide a seamless and high-performance experience.

This is just the beginning—we’re excited to build this driver together with the community and would love your feedback!

Documentation | Release Notes | Roadmap

Join us in shaping the future of Python connectivity with SQL Server!

Key Features

  • Supported Platforms: Windows only (macOS and Linux support is coming soon)
  • Support for Microsoft Entra ID Authentication
  • Fully compliant with the DB API 2.0 specification. Key aspects include:
    • Connection Objects: Establishing and managing connections to the database.
    • Cursor Objects: Executing SQL commands and retrieving results.
    • Transaction Management: Supporting commit and rollback operations to ensure data integrity.
    • Error Handling: Providing a consistent set of exceptions for handling database errors.
    • Parameter Substitution: Allowing the use of placeholders in SQL queries to prevent SQL injection attacks.

What's Next?

We’re committed to continuously enhancing the mssql-python driver and value feedback from the community. 

Here's what the team is working on next:

Cross-Platform Support: MacOS and Linux Distributions

We are committed to providing cross-platform support for our Python driver. In the next few months, we will release versions compatible with MacOS and various Linux distributions.

Support for macOS (Issue #11)

Support for major Linux distributions (Issue #10)

Asynchronous Query Execution

We are working on adding support for asynchronous query execution. This feature will allow developers to execute queries without blocking the main thread, enabling more responsive and efficient applications. Asynchronous query execution will be particularly beneficial for applications that require high concurrency and low latency.

True async query execution (Issue #9)

Connection Pooling

Connection pooling will be made available soon, allowing for efficient reuse of database connections. This feature will significantly improve performance by reducing the overhead associated with establishing new connections for each database operation.

Async built-in connection pool (Issue #8)

Try It and Share Your Feedback!

As this is an alpha release, your feedback is crucial. We invite you to:

  1. Try it out: Check-out the mssql-python driver and integrate it into your projects.
  2. Share your thoughts: Open issues, suggest features, and contribute to the project.
  3. Join the conversation: GitHub Discussions | SQL Server Tech Community.

We look forward to your feedback and collaboration!

View the full article

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...