Skip to main content

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

Project description

https://secure.travis-ci.org/denisenkom/pytds.png?branch=master

Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol implementation. Doesn’t depend on ADO or FreeTDS. Can be used on any platform, including Linux, MacOS, Windows.

It can be used with https://pypi.python.org/pypi/django-sqlserver as a Django database backend.

Features

  • Fully supports new MSSQL 2008 date types: datetime2, date, time, datetimeoffset

  • MARS

Missing Features

  • SSL encryption

Installation

To install run this command:

$ pip install python-tds

For a better performance install bitarray package too:

$ pip install bitarray

Documentation

Documentation is available at http://python-tds.readthedocs.org/en/latest/.

Example

To connect to database do

import pytds
with pytds.connect('server', 'database', 'user', 'password') as conn:
    with conn.cursor() as cur:
        cur.execute("select 1")
        cur.fetchall()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-tds-1.8.2.zip (73.1 kB view details)

Uploaded Source

File details

Details for the file python-tds-1.8.2.zip.

File metadata

  • Download URL: python-tds-1.8.2.zip
  • Upload date:
  • Size: 73.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-tds-1.8.2.zip
Algorithm Hash digest
SHA256 e3e132def69e7b9227fe8a267c29f833f3b1fb07607cb286ca1e270126d1e420
MD5 e82f32ca5c4945f63b609a5d32d84f5f
BLAKE2b-256 865b232ba430ef7211d6f85fcd86086b2be56d0abb45d92fb9b2a3eb9746a4e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page