8000 GitHub - noQ/pytds: Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol implementation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ pytds Public
forked from denisenkom/pytds

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

License

Notifications You must be signed in to change notification settings

noQ/pytds

 
 

Repository files navigation

pytds

https://secure.travis-ci.org/denisenkom/pytds.png?branch=master https://ci.appveyor.com/api/projects/status/a5h4y29063crqtet?svg=true

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
  • Bulk insert
  • Table-valued parameters

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 https://python-tds.readthedocs.io/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()

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.8%
  • Other 0.2%
0