Skip to main content

Yet another SQLServer database driver

Project description

Yet another Python SQLServer database driver.

Requirements

  • Python 3.5

  • MS SQLServer 2016

Installation

It can install as package or module.

Install as a package

$ pip install minitds

Install as a module

$ cd $(PROJECT_HOME)
$ wget https://github.com/nakagami/minitds/raw/master/minitds/minitds.py

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()

Restriction

Not support Stored Procedure call now.

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

minitds-0.2.0.tar.gz (9.9 kB view hashes)

Uploaded Source

Supported by

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