loongson/pypi/: pymssql-2.2.5 metadata and description

Simple index Newer version available

DB-API interface to Microsoft SQL Server for Python. (new Cython-based version)

author Damien Churchill
author_email damoxc@gmail.com
classifiers
  • Development Status :: 5 - Production/Stable
  • Intended Audience :: Developers
  • License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
  • Programming Language :: Python
  • Programming Language :: Python :: 3.6
  • Programming Language :: Python :: 3.7
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: Implementation :: CPython
  • Topic :: Database
  • Topic :: Database :: Database Engines/Servers
  • Topic :: Software Development :: Libraries :: Python Modules
  • Operating System :: Microsoft :: Windows
  • Operating System :: POSIX
  • Operating System :: Unix
description_content_type text/x-rst
keywords mssql,SQL Server,database,DB-API
license LGPL
maintainer pymssql development team
maintainer_email pymssql@googlegroups.com
project_urls
  • Documentation, http://pymssql.readthedocs.io
  • Source, https://github.com/pymssql/pymssql
  • Changelog, https://github.com/pymssql/pymssql/blob/master/ChangeLog.rst
File Tox results History
pymssql-2.2.5-cp310-cp310-manylinux_2_28_loongarch64.whl
Size
4 MB
Type
Python Wheel
Python
3.1.0
pymssql-2.2.5-cp36-cp36m-manylinux_2_28_loongarch64.whl
Size
4 MB
Type
Python Wheel
Python
3.6
pymssql-2.2.5-cp37-cp37m-manylinux_2_28_loongarch64.whl
Size
4 MB
Type
Python Wheel
Python
3.7
pymssql-2.2.5-cp38-cp38-manylinux_2_28_loongarch64.whl
Size
4 MB
Type
Python Wheel
Python
3.8
pymssql-2.2.5-cp39-cp39-manylinux_2_28_loongarch64.whl
Size
4 MB
Type
Python Wheel
Python
3.9

pymssql - DB-API interface to Microsoft SQL Server

https://github.com/pymssql/pymssql/workflows/Linux/badge.svg https://github.com/pymssql/pymssql/workflows/macOS/badge.svg https://github.com/pymssql/pymssql/workflows/Windows/badge.svg http://img.shields.io/pypi/dm/pymssql.svg http://img.shields.io/pypi/v/pymssql.svg

A simple database interface for Python that builds on top of FreeTDS to provide a Python DB-API (PEP-249) interface to Microsoft SQL Server.

Detailed information on pymssql is available on the website:

pymssql.readthedocs.io

New development is happening on GitHub at:

github.com/pymssql/pymssql

There is a Google Group for discussion at:

groups.google.com

Getting started

pymssql wheels are available from PyPi. To install it run:

pip install -U pip
pip install pymssql

Most of the times this should be all what’s needed. The official pymssql wheels bundle a static copy of FreeTDS and have SSL support so they can be used to connect to Azure.

Note

On some Linux distributions pip version is too old to support all the flavors of manylinux wheels, so upgrading pip is necessary. An example of such distributions would be Ubuntu 18.04 or Python3.6 module in RHEL8 and CentOS8.

Basic example

conn = pymssql.connect(server, user, password, "tempdb")
cursor = conn.cursor(as_dict=True)

cursor.execute('SELECT * FROM persons WHERE salesrep=%s', 'John Doe')
for row in cursor:
    print("ID=%d, Name=%s" % (row['id'], row['name']))

conn.close()

Recent Changes

Version 2.2.4 - 2022-04-12 - Mikhail Terekhov

General

  • Added bytes and bytearray to support bulk_copy types, thanks to steve-strickland (#756).
  • Use FreeTDS-1.3.9 for official wheels on PyPi.
  • Enable krb5 in Linux wheels, this time for real (#754).