{"id":13937091,"url":"https://github.com/pymssql/pymssql","last_synced_at":"2025-05-12T20:49:41.555Z","repository":{"id":10516038,"uuid":"12704584","full_name":"pymssql/pymssql","owner":"pymssql","description":"Official home for the pymssql source code.","archived":false,"fork":false,"pushed_at":"2025-04-15T02:46:28.000Z","size":11186,"stargazers_count":855,"open_issues_count":181,"forks_count":311,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-05-03T01:50:53.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pymssql.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pymssql.png","metadata":{"files":{"readme":"README.rst","changelog":"ChangeLog.old","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-09-09T15:10:18.000Z","updated_at":"2025-04-29T01:44:52.000Z","dependencies_parsed_at":"2023-09-28T19:10:38.438Z","dependency_job_id":"a802d768-d872-4192-a20f-f9b42b7da781","html_url":"https://github.com/pymssql/pymssql","commit_stats":{"total_commits":1158,"total_committers":61,"mean_commits":"18.983606557377048","dds":0.7305699481865284,"last_synced_commit":"f8bb239dc6b56a5d6e4760826078afac1045b32c"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymssql%2Fpymssql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymssql%2Fpymssql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymssql%2Fpymssql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymssql%2Fpymssql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pymssql","download_url":"https://codeload.github.com/pymssql/pymssql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253820394,"owners_count":21969519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-07T23:03:16.917Z","updated_at":"2025-05-12T20:49:41.533Z","avatar_url":"https://github.com/pymssql.png","language":"Python","funding_links":[],"categories":["数据库驱动程序","Python","Database Drivers"],"sub_categories":["ASGI Servers"],"readme":"\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 \u003chttps://pymssql.readthedocs.io/en/stable/\u003e`_\n\nNew development is happening on GitHub at:\n\n`github.com/pymssql/pymssql \u003chttps://github.com/pymssql/pymssql\u003e`_\n\nThere is a Google Group for discussion at:\n\n`groups.google.com \u003chttps://groups.google.com/forum/?fromgroups#!forum/pymssql\u003e`_\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpymssql%2Fpymssql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpymssql%2Fpymssql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpymssql%2Fpymssql/lists"}