minitds
Yet another and pure python MS SQLServer database driver.
Support platform
Python 3.11 or later
Support database
We are testing it on MS SQLServer 2025 on Ubuntu. But we think it works on older versions.
Installation
$ pip install minitds
Example
Query:
import minitds
conn = minitds.connect(host='localhost',
user='sa',
password='secret',
database='database_name')
cur = conn.cursor()
cur.execute('select foo, bar from baz')
for r in cur.fetchall():
print(r[0], r[1])
conn.close()
Execute Procedure:
import minitds
conn = minitds.connect(host='localhost',
user='sa',
password='secret',
database='database_name')
cur = conn.cursor()
cur.callproc('something_proc', [123, 'ABC'])
conn.close()
AsyncIO:
import asyncio
import minitds.aio
async def main():
async with await minitds.aio.connect(
host='localhost',
user='sa',
password='secret',
database='database_name'
) as conn:
async with conn.cursor() as cur:
await cur.execute('select foo, bar from baz')
async for r in cur:
print(r[0], r[1])
asyncio.run(main())
Restrictions
Support connecting through SQL Server Authentication only.
Protocol Specification
Metadata
Release files for minitds 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| minitds-0.6.0.tar.gz | 26.1 kB | Without provenance | Details for minitds-0.6.0.tar.gz |
Release files / minitds-0.6.0.tar.gz
| Download URL | minitds-0.6.0.tar.gz |
|---|---|
| Size | 26.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
463fe0ded4b054dbf664cb3e800d6d8f8bb9b6717e6568b0439c0c3cd4170a49
|
|
BLAKE2b-256 checksum How to use checksums |
9fa07d0e44685ed9d3416a43442f9780f9abb28ee11bd905ec12fbd8933b6576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for minitds 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.