sqlalchemy-pytds
A Microsoft SQL Server TDS connector for SQLAlchemy.
Decision gist · record as of 2026-08-14
Yes, with conditions. The package is permissively licensed and has low install friction, but its dormant maintenance status and outdated Python version classifiers mean you should verify that python-tds meets your SQL Server compatibility and performance needs before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires python-tds and SQLAlchemy to be installed; python-tds handles the underlying TDS protocol implementation.
- Low install friction with a pure-Python wheel distribution.
- Maintenance is dormant—last commit was 2024-09-14 but no activity for 699 days prior; the repository remains unarchived but receives infrequent updates.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, making it safe for most projects.
last release 2024-09-14 (699 days) · last repo commit 2024-09-14 · 27 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 846,855 downloads/mo, #4,914 on PyPI
Alternatives
Verify before relying
pip install sqlalchemy-pytds
from sqlalchemy import create_engine
engine = create_engine('mssql+pytds://user:password@server/database')- Whether python-tds itself is actively maintained and suitable for production SQL Server workloads
- Compatibility with modern Python versions beyond those listed in classifiers (3.5 is the latest declared)
- Whether this dialect supports the full range of SQL Server features or has known limitations
What it is and what it does
sqlalchemy-pytds is a SQLAlchemy dialect that bridges SQLAlchemy's ORM and query layer to Microsoft SQL Server databases using the TDS protocol. It depends on python-tds for the low-level protocol implementation and SQLAlchemy for the database abstraction layer. The package allows developers to write database code using SQLAlchemy's standard API while connecting to SQL Server instances.
The package is in Beta status and has been dormant for extended periods, though the repository remains unarchived. It sits in the top 5000 PyPI packages by download volume, suggesting some production use, but the infrequent maintenance and outdated Python version classifiers warrant caution when evaluating it for new projects.
Use it for
- Building SQLAlchemy applications that need to connect to SQL Server without using ODBC-dependent drivers
- Using SQLAlchemy's ORM to query and manipulate SQL Server data in a database-agnostic way
- Environments where pure-Python TDS connectivity is preferred over compiled driver libraries
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The package is permissively licensed and has low install friction, but its dormant maintenance status and outdated Python version classifiers mean you should verify that python-tds meets your SQL Server compatibility and performance needs before committing to production use.
Install
sqlalchemy-pytds on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance is dormant—last commit was 2024-09-14 but no activity for 699 days prior; the repository remains unarchived but receives infrequent updates.
Requires python-tds and SQLAlchemy to be installed; python-tds handles the underlying TDS protocol implementation.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe for most projects.
Quickstart
pip install sqlalchemy-pytds
from sqlalchemy import create_engine
engine = create_engine('mssql+pytds://user:password@server/database')
Verify before relying
- Whether python-tds itself is actively maintained and suitable for production SQL Server workloads
- Compatibility with modern Python versions beyond those listed in classifiers (3.5 is the latest declared)
- Whether this dialect supports the full range of SQL Server features or has known limitations
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespython-tdsSQLAlchemy |
| Maintenance | Dormant 699 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 846,855 / month, #4,914 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Topic :: Database :: Front-Ends |
Evidence: sqlalchemy_pytds-1.0.2-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sqlalchemy sql server connector”
- sqlalchemy-pytdsProvides a SQLAlchemy dialect for connecting to Microsoft SQL Server…
- sqlalchemy-databricksProvides a SQLAlchemy dialect that connects to Databricks workspaces…
- snowflake-sqlalchemySnowflake SQLAlchemy is a SQLAlchemy dialect that enables SQLAlchemy…
Give your agent the search over MCP, or paste the wish link into any chat.
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object Relational Mapper (ORM) that provides both a high-level ORM layer for declarative object persistence and a Core SQL construction system for direct database abstraction and query building.
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Alembic generates and manages database schema migrations for SQLAlchemy applications, handling version control of database structure changes with support for upgrades, downgrades, and auto-generation from model changes.
Install it if you use SQLAlchemy and need to version-control schema changes; skip it only if you manage migrations manually or use a different ORM entirely.
A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.
A Python client library that connects to Databricks clusters and SQL warehouses using a Thrift-based protocol, conforming to the Python DB API 2.0 specification and supporting Arrow-based data exchange.
Install it if you need to query Databricks clusters or SQL warehouses from Python.
Psycopg 3 is a PostgreSQL database adapter for Python that enables applications to connect to, query, and manage PostgreSQL databases using Python code.
Install it if you need to connect Python to PostgreSQL.
See also python-tds · teradatasqlalchemy · sqlalchemy-databricks · pymssql · mssql · mssql-python · sqlalchemy-solr · databricks-sqlalchemy · sqlalchemy-drill · sqlalchemy-firebird