pymssql-jp100procent


Namepymssql-jp100procent JSON
Version 0.1.dev1192 PyPI version JSON
download
home_page
SummaryDB-API interface to Microsoft SQL Server for Python. (new Cython-based version)
upload_time2023-07-26 13:43:39
maintainerMikhail Terekhov
docs_urlNone
authorDamien Churchill
requires_python
licenseLGPL
keywords mssql sql server database db-api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
pymssql - DB-API interface to Microsoft SQL Server
==================================================

.. image:: https://github.com/pymssql/pymssql/workflows/Linux/badge.svg
        :target: https://github.com/pymssql/pymssql/actions?query=workflow%3A%22Linux%22

.. image:: https://github.com/pymssql/pymssql/workflows/macOS/badge.svg
        :target: https://github.com/pymssql/pymssql/actions?query=workflow%3A%22macOS%22

.. image:: https://github.com/pymssql/pymssql/workflows/Windows/badge.svg
        :target: https://github.com/pymssql/pymssql/actions?query=workflow%3A%22Windows%22

.. image:: http://img.shields.io/pypi/dm/pymssql.svg
        :target: https://pypi.python.org/pypi/pymssql/

.. image:: http://img.shields.io/pypi/v/pymssql.svg
        :target: https://pypi.python.org/pypi/pymssql/

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`_.

.. _Microsoft SQL Server: http://www.microsoft.com/sqlserver/
.. _Python: http://www.python.org/
.. _PEP-249: http://www.python.org/dev/peps/pep-0249/
.. _FreeTDS: http://www.freetds.org/

Detailed information on pymssql is available on the website:

`pymssql.readthedocs.io <https://pymssql.readthedocs.io/en/stable/>`_

New development is happening on GitHub at:

`github.com/pymssql/pymssql <https://github.com/pymssql/pymssql>`_

There is a Google Group for discussion at:

`groups.google.com <https://groups.google.com/forum/?fromgroups#!forum/pymssql>`_


Getting started
===============

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

.. code-block:: bash

    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
=============

.. code-block:: python

    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.7 - 2022-11-15  - Mikhail Terekhov
==============================================

General
-------

- Build wheels for Python-3.6 (fix 787).

Version 2.2.6 - 2022-11-12  - Mikhail Terekhov
==============================================

General
-------

- Build wheels for Python-3.11.
- Use FreeTDS-1.3.13 for official wheels on PyPi.
- Fix build on Alpine Linux (fix #762).
- Fill in result description in cursor.callproc (fix #772).
- Add explicit link to krb5 (fix #776), thanks to James Coder.
- Some small doc fixes, thanks to guillaumep and Logan Elandt.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pymssql-jp100procent",
    "maintainer": "Mikhail Terekhov",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "termim@gmail.com",
    "keywords": "mssql,SQL Server,database,DB-API",
    "author": "Damien Churchill",
    "author_email": "damoxc@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/91/1a/6e843af895b011ca0b2f0349e17b7381d718c02f82e484c1e89f7a97266a/pymssql-jp100procent-0.1.dev1192.tar.gz",
    "platform": "any",
    "description": "\npymssql - DB-API interface to Microsoft SQL Server\n==================================================\n\n.. image:: https://github.com/pymssql/pymssql/workflows/Linux/badge.svg\n        :target: https://github.com/pymssql/pymssql/actions?query=workflow%3A%22Linux%22\n\n.. image:: https://github.com/pymssql/pymssql/workflows/macOS/badge.svg\n        :target: https://github.com/pymssql/pymssql/actions?query=workflow%3A%22macOS%22\n\n.. image:: https://github.com/pymssql/pymssql/workflows/Windows/badge.svg\n        :target: https://github.com/pymssql/pymssql/actions?query=workflow%3A%22Windows%22\n\n.. image:: http://img.shields.io/pypi/dm/pymssql.svg\n        :target: https://pypi.python.org/pypi/pymssql/\n\n.. image:: http://img.shields.io/pypi/v/pymssql.svg\n        :target: https://pypi.python.org/pypi/pymssql/\n\nA simple database interface for `Python`_ that builds on top of `FreeTDS`_ to\nprovide a Python DB-API (`PEP-249`_) interface to `Microsoft SQL Server`_.\n\n.. _Microsoft SQL Server: http://www.microsoft.com/sqlserver/\n.. _Python: http://www.python.org/\n.. _PEP-249: http://www.python.org/dev/peps/pep-0249/\n.. _FreeTDS: http://www.freetds.org/\n\nDetailed information on pymssql is available on the website:\n\n`pymssql.readthedocs.io <https://pymssql.readthedocs.io/en/stable/>`_\n\nNew development is happening on GitHub at:\n\n`github.com/pymssql/pymssql <https://github.com/pymssql/pymssql>`_\n\nThere is a Google Group for discussion at:\n\n`groups.google.com <https://groups.google.com/forum/?fromgroups#!forum/pymssql>`_\n\n\nGetting started\n===============\n\npymssql wheels are available from PyPi. To install it run:\n\n.. code-block:: bash\n\n    pip install -U pip\n    pip install pymssql\n\nMost of the times this should be all what's needed.\nThe official pymssql wheels bundle a static copy of FreeTDS\nand have SSL support so they can be used to connect to Azure.\n\n.. note::\n   On some Linux distributions `pip` version is too old to support all\n   the flavors of manylinux wheels, so upgrading `pip` is necessary.\n   An example of such distributions would be Ubuntu 18.04 or\n   Python3.6 module in RHEL8 and CentOS8.\n\n\nBasic example\n=============\n\n.. code-block:: python\n\n    conn = pymssql.connect(server, user, password, \"tempdb\")\n    cursor = conn.cursor(as_dict=True)\n\n    cursor.execute('SELECT * FROM persons WHERE salesrep=%s', 'John Doe')\n    for row in cursor:\n        print(\"ID=%d, Name=%s\" % (row['id'], row['name']))\n\n    conn.close()\n\n\nRecent Changes\n==============\n\nVersion 2.2.7 - 2022-11-15  - Mikhail Terekhov\n==============================================\n\nGeneral\n-------\n\n- Build wheels for Python-3.6 (fix 787).\n\nVersion 2.2.6 - 2022-11-12  - Mikhail Terekhov\n==============================================\n\nGeneral\n-------\n\n- Build wheels for Python-3.11.\n- Use FreeTDS-1.3.13 for official wheels on PyPi.\n- Fix build on Alpine Linux (fix #762).\n- Fill in result description in cursor.callproc (fix #772).\n- Add explicit link to krb5 (fix #776), thanks to James Coder.\n- Some small doc fixes, thanks to guillaumep and Logan Elandt.\n",
    "bugtrack_url": null,
    "license": "LGPL",
    "summary": "DB-API interface to Microsoft SQL Server for Python. (new Cython-based version)",
    "version": "0.1.dev1192",
    "project_urls": {
        "Changelog": "https://github.com/pymssql/pymssql/blob/master/ChangeLog.rst",
        "Documentation": "http://pymssql.readthedocs.io",
        "Source": "https://github.com/pymssql/pymssql"
    },
    "split_keywords": [
        "mssql",
        "sql server",
        "database",
        "db-api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "911a6e843af895b011ca0b2f0349e17b7381d718c02f82e484c1e89f7a97266a",
                "md5": "4a0f06536d59c26e5db9cf558f61508a",
                "sha256": "75e38640d07354a3532964656675fd5d83f0e8715132568a3a0cf320996cb715"
            },
            "downloads": -1,
            "filename": "pymssql-jp100procent-0.1.dev1192.tar.gz",
            "has_sig": false,
            "md5_digest": "4a0f06536d59c26e5db9cf558f61508a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 173183,
            "upload_time": "2023-07-26T13:43:39",
            "upload_time_iso_8601": "2023-07-26T13:43:39.862388Z",
            "url": "https://files.pythonhosted.org/packages/91/1a/6e843af895b011ca0b2f0349e17b7381d718c02f82e484c1e89f7a97266a/pymssql-jp100procent-0.1.dev1192.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-26 13:43:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pymssql",
    "github_project": "pymssql",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "appveyor": true,
    "lcname": "pymssql-jp100procent"
}
        
Elapsed time: 0.28033s