Registry / type-stubs / types-pymssql

types-pymssql

JSON →
library2.1.0pypypiunverified

Typing stubs for pymssql. Version 2.1.0 is a stub package for type checkers (mypy, pyright, etc.) to enable type hints for pymssql. Maintained by the typeshed project. Releases follow pymssql versioning.

pip install types-pymssql
INSTALL
IMPORT
SIG · TYPES-PYMSSQL
T
types-pymssql
type-stubspythonv2.1.0
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pymssql-python2-stubs
import pymssql-python2-stubs
import pymssql

Basic connection test using environment variables for credentials.

import pymssql import os conn = pymssql.connect( server=os.environ.get('PYMSSQL_SERVER', ''), user=os.environ.get('PYMSSQL_USER', ''), password=os.environ.get('PYMSSQL_PASSWORD', ''), database=os.environ.get('PYMSSQL_DB', '') ) cursor = conn.cursor() cursor.execute('SELECT 1') row = cursor.fetchone() print(row) cursor.close() conn.close()
Debug
Known issues
gotchatypes-pymssql provides type hints only. It does not replace the pymssql runtime package. You must install pymssql separately.
fix
pip install pymssql
affects: all
gotchaThe stubs may lag behind pymssql releases. If pymssql adds new features, types-pymssql might not have type hints for them yet.
fix
Use `type: ignore` for new methods or contribute to typeshed.
affects: all
Upgrade
Version history
2.1.0latest on PyPI · released Aug 27, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
47 hits · last 30 days
node
42
Meta
1
OpenAI (training)
1
Resources
types-pymssql — pip install types-pymssql · libregistry