$npx skillfedfor your agent

python-tds

Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol implementation

Worth itPyPI DatabaseReleased Sep 20254.3M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — python_tds-1.17.1-py3-none-any.whl
v1.17.1 · released 2025-09-13

Yes. This is a mature, actively maintained driver with no known vulnerabilities, low install friction, and permissive licensing. It fills a genuine need for pure-Python MSSQL connectivity on non-Windows platforms. Install it if you need to connect to MSSQL from Python without external system dependencies.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction installation with no runtime dependencies.
  • Actively maintained as of 2026-08-07 with recent release history.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open and closed-source projects.

last release 2025-09-13 (335 days) · last repo commit 2026-08-07 · 218 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,254,407 downloads/mo, #2,348 on PyPI

Verify before relying

pip install python-tds

Connection example from documentation:
with connect('server', 'database', 'user', 'password') as conn:
    with conn.cursor() as cur:
        cur.execute("select 1")
        cur.fetchall()
  • Whether Kerberos support on non-Windows platforms is production-ready given the 'experimental' label in the description.
  • Performance characteristics compared to other MSSQL drivers in typical workloads.
  • Compatibility with specific MSSQL versions beyond the 2008 date types mentioned.
  • Whether optional packages (pyOpenSSL, bitarray, kerberos) are required or truly optional for core functionality.
Same gist for agents: .md · .json

What it is and what it does

python-tds is a pure Python DBAPI driver for Microsoft SQL Server that implements the TDS (Tabular Data Stream) protocol directly, without depending on external libraries like ADO or FreeTDS. This makes it portable across Linux, macOS, and Windows. It follows the Python DBAPI standard, so it integrates with standard database tooling and ORMs like django-sqlserver.

The driver supports MSSQL 2008 date types (datetime2, date, time, datetimeoffset), MARS, bulk insert, table-valued parameters, TLS encryption, and token-based authentication. Optional packages can extend functionality for TLS, performance, and Kerberos support on non-Windows platforms. Connection uses standard cursor operations after calling connect() with credentials or a token callable.

Use it for

  • Connect to MSSQL databases from Python on Linux or macOS without installing FreeTDS or ADO.
  • Use as a Django database backend via django-sqlserver for MSSQL-backed Django projects.
  • Implement token-based authentication to Azure SQL Database using access token callables.
  • Perform bulk inserts or use table-valued parameters for high-performance data operations.
  • Establish encrypted TLS connections to MSSQL servers by providing a CA certificate file.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

This is a mature, actively maintained driver with no known vulnerabilities, low install friction, and permissive licensing. It fills a genuine need for pure-Python MSSQL connectivity on non-Windows platforms. Install it if you need to connect to MSSQL from Python without external system dependencies.

Install

python-tds on PyPI

Before you install

Low friction installation with no runtime dependencies. Actively maintained as of 2026-08-07 with recent release history.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open and closed-source projects.

Quickstart

pip install python-tds

Connection example from documentation:
with connect('server', 'database', 'user', 'password') as conn:
    with conn.cursor() as cur:
        cur.execute("select 1")
        cur.fetchall()

Verify before relying

  • Whether Kerberos support on non-Windows platforms is production-ready given the 'experimental' label in the description.
  • Performance characteristics compared to other MSSQL drivers in typical workloads.
  • Compatibility with specific MSSQL versions beyond the 2008 date types mentioned.
  • Whether optional packages (pyOpenSSL, bitarray, kerberos) are required or truly optional for core functionality.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 335 days since the last release
Last repo commit
First released
Downloads4,254,407 / month, #2,348 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: python_tds-1.17.1-py3-none-any.whl

Tags

Capabilities
mssql python drivertds protocol clientsql server connectionpure python database driverdbapi mssqlcross-platform sql servertds tabular data stream
Topics
mssqldbapitds-protocol

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 › “mssql python driver”

  • python-tdsPure Python DBAPI driver for MSSQL that implements the TDS protocol…
  • pymssqlpymssql provides a Python DB-API interface to Microsoft SQL Server,…
  • mssql-pythonA Python driver for connecting to and querying Microsoft SQL Server,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

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.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.

Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also sqlalchemy-pytds · pymssql · mssql-django · mssql-python · pyadomd · pymonetdb · mssql · presto-python-client · bcpandas · adbc-driver-sqlite