New level of functionality and performance in data access via Python
Project description
Python Connector for SQL Server
Python Connector for SQL Server is a connectivity solution for accessing SQL Server databases from Python applications. It fully implements the Python DB API 2.0 specification. The connector is distributed as a wheel package for Windows, macOS, and Linux.
Direct connection
The connector enables you to establish a direct connection to SQL Server from a Python application via TCP/IP, eliminating the need for the database client library. A direct connection increases the speed of data transmission between the application and SQL Server database server. It also streamlines the deployment process since you don't have to distribute any client libraries with the application.
Secure communication
The connector supports encrypted communications using SSL/TLS, SSH tunneling, and HTTP/HTTPS tunneling.
Using the connector
To retrieve data from a database:
Import the module.
import devart.sqlserver
Connect to a database using the connect()
module method and obtain a connection
object:
If you're using mixed mode authentication:
my_connection = devart.sqlserver.connect("[!ConnectionString]")
If you're using Windows authentication:
my_connection = devart.sqlserver.connect("Authentication=Windows;Server=your_server;Database=your_database")
Create a cursor
object using the cursor()
connection method.
my_cursor = my_connection.cursor()
Execute the SQL statement using the execute()
cursor method.
my_cursor.execute("SELECT * FROM employees")
Retrieve the result set using one of the fetch*()
cursor methods.
for row in my_cursor.fetchall():
print(row)
Ordering and activating the license
You can purchase a license for the connector on the ordering page:
https://www.devart.com/python/sqlserver/ordering.html
To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/sqlserver/activate-a-license.htm
What's new
Python Connector for SQL Server 1.1
- Added connection pooling
- Added activation with a license key
- Added the subscription license type
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for devart_sqlserver_connector-1.1.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a603133d7487548049791951693d73bab5faeb49a28d5c128cb691735d037aca |
|
MD5 | 762f130e83d2732c0b2603d49752c0d1 |
|
BLAKE2b-256 | 669c3072abe9fd3a3b82ded2056f46d4f62f864bcc7fdc156cebfc5537ab3bb6 |
Hashes for devart_sqlserver_connector-1.1.1-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e40e2c521472f63b8c6da101f74ab568ca167ae6037d7a490db5840ba88d512a |
|
MD5 | 579279da60fea5de4358af3c081c9c67 |
|
BLAKE2b-256 | 731c2b82fa02148156cf3ce0279f8d8cd030c315add901630799f091b0185a8b |
Hashes for devart_sqlserver_connector-1.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e58a37c1215813ffeb2d7c21d2361a7858fc1ba037d49b4a51e9d8657cdc64e2 |
|
MD5 | 1975a4a1ba82394b6630387093b9f617 |
|
BLAKE2b-256 | ab9ead0df2abf15ce13eb3d3e17152b6b684eb6f24eddd639157c25ed2e23950 |
Hashes for devart_sqlserver_connector-1.1.1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a64c15c5a31e06a2f6a4b560f05c4b84e3c67fdea403125194c7f23e917fa34f |
|
MD5 | eb903612b5b3d4f043b32ec06c177d1c |
|
BLAKE2b-256 | 699f017618e9f6078b01e1f85ba149486572a922dbab8fd740f64247d4dd709c |
Hashes for devart_sqlserver_connector-1.1.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29dcd62d228041a968bb8baa90dfce2ecd76f1503aa666b5cd6204d9f5cfe6bf |
|
MD5 | 891f7fe53699e298bf70d0d63de21269 |
|
BLAKE2b-256 | 96a89ccca46699598fe71ad6bdc73e9ea5251a1fa0c0f23f9d12176d05586bc7 |
Hashes for devart_sqlserver_connector-1.1.1-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a2fa599ce4558cc6206d4acc9262a986cc889c5667e1d04c456260828d40e0d |
|
MD5 | e6db0de949ac691f25c08ce910403ae8 |
|
BLAKE2b-256 | b64e8c993514e18bc3d602269f38f0736fc302d0d73ae0a2c37b96bffe7900df |
Hashes for devart_sqlserver_connector-1.1.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00857ca1e996b8ae76e70038636a28a61d5724a62bb8e1a0c50e2228c50d5693 |
|
MD5 | 021c472a88455a0dd1a5d877a5a694e0 |
|
BLAKE2b-256 | 8e7021a13fa7353a9fd55a6a6a64e3ec0a5027e67416dedfb2d76e07ce8c4060 |
Hashes for devart_sqlserver_connector-1.1.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 718a98641cfad488f458e3667cceb391a5b94e692c2f6a5faee8c9d9f8db5a24 |
|
MD5 | 9e3e770ee8ca3aae4525dceb49a0d445 |
|
BLAKE2b-256 | 050c04928445413ebd1136afa0eeeb9c08490650776ace1c2b102d97379eed04 |
Hashes for devart_sqlserver_connector-1.1.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5f36165527317bfc1141f662206d7fe3b5de523afa83c04f3a076ffa4c4cf66 |
|
MD5 | 52d7201d81bb13333ce5c8a37a3b5102 |
|
BLAKE2b-256 | 4b94c8c3893e1f3f5ec2c6b2b26c18e429a03edd86b75603dd34d3b4f3759dce |
Hashes for devart_sqlserver_connector-1.1.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a706c4f14e73e97ea8a5b459f2ecdaf29f1100362c9e7090c9cf209b795d79e |
|
MD5 | ec659874ee208f5fb03850910cf93d1b |
|
BLAKE2b-256 | 480cc15f0186c439581f7902c4a49cd9ca849d7d25e451ec9375738803e64a9a |
Hashes for devart_sqlserver_connector-1.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86006c55285caa9703cbd65614ea57f8b4e970932da53136b22137ac68803fad |
|
MD5 | cee5473a8e1911455717046c50899d80 |
|
BLAKE2b-256 | 42d6872cd3ca09044868fbbbcfe0a56877d2a6c352e556713cb77fa23d652827 |
Hashes for devart_sqlserver_connector-1.1.1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22bceaee05a051826bfea47d3e9e5aaa9e46f33bfec20aa583e9eeafd716c78c |
|
MD5 | 2d3787bec45d98284091918d4e051235 |
|
BLAKE2b-256 | 55ea5fa70003fdd1f1c58f47d56c2e3628186703f03412d2ee1dfa1555d0c921 |
Hashes for devart_sqlserver_connector-1.1.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3689e7f5a6b2375f845188207c3242a3c144991c201b6cb386e2397b9e8f63e2 |
|
MD5 | 10fc30621e2c1801243f79913e4c2576 |
|
BLAKE2b-256 | c5a934c556fbe0c2be9a53dee999dcc74a9a0f9ef7a20da58b6f75affcad8b47 |
Hashes for devart_sqlserver_connector-1.1.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1e56cb13d8ae1f1e02bee007ab49cdf73d9e3c739dfdce640b6ac9e2b6b5064 |
|
MD5 | f494aad1204b2a2a7474a5cd9720196f |
|
BLAKE2b-256 | 7590445652c238c6a08549b099225a4297ab269f402a9d00b6df98f33e6e9953 |
Hashes for devart_sqlserver_connector-1.1.1-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b996ff246114da1851249f683fb8631e366b14af2d77fda852009d355088282 |
|
MD5 | db6e1f02b8b7f1d0ab7c50fb565d5c42 |
|
BLAKE2b-256 | 6d4eb54959ce681226881b21dbc21d2a2d13ab25c95582871b5c401e44bb400e |
Hashes for devart_sqlserver_connector-1.1.1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67f81d9df81d8bc9c827525cc5cf494ac80a385a7f8fff2fcd94b657e367e95f |
|
MD5 | 6dc65b56b374fe955443c7e696909e2a |
|
BLAKE2b-256 | c6f4c07ac96a1f55650d59e3511a60ac6b2f31c78b541419436efeabfe546899 |
Hashes for devart_sqlserver_connector-1.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fb36d5be96c302ca5b8f32b6641dfd37af296fdb45201e131577e783a015803 |
|
MD5 | 69f4558fcb98bb74b5e4e5f8f17877f3 |
|
BLAKE2b-256 | b4b2a673d0924d7ccf89432655bf6c8659c3b12757b04ab22066a4c222c4417a |
Hashes for devart_sqlserver_connector-1.1.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f514225779e672121d470b8ce184e452c005011b53d28ee293015baad15c602a |
|
MD5 | 58ced789bb0e84b0f0250db94c4226b5 |
|
BLAKE2b-256 | 6fbd7ab03a91e52d5f5138929e6f69b60816aa012d57544a4064596e8645a1b8 |
Hashes for devart_sqlserver_connector-1.1.1-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da74419f32b0f0820d997c6840b30c35f79fb2519c6b77f165ee5ba54c83903d |
|
MD5 | d4a96f64986496ba119a1c3a877fefe2 |
|
BLAKE2b-256 | f028fb87677f978d1f62e1931afbec2cb0f2d4c2a5677513e6a59769441135fd |
Hashes for devart_sqlserver_connector-1.1.1-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db6397c9fd7873636c1f71b6397b665924fa64a522ac704d0751a46d0c91d520 |
|
MD5 | 3df0e8249db08e96143dd178b9d749ec |
|
BLAKE2b-256 | ded45f068bcc59137dd2302651b136aad532cbe7b39b166125bf8995f1c7fad8 |
Hashes for devart_sqlserver_connector-1.1.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 501310b3a88aa323656c8a226772e5ed3da2b2303125b6bdf8d191d95b8dba3f |
|
MD5 | 7c93b06a68e43013a74f881a15cabdfa |
|
BLAKE2b-256 | 99f0bfef2738255cb152e3407759ef680e4585d091498aaecd82ca3df69cfa5e |
Hashes for devart_sqlserver_connector-1.1.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b24ff9213cb488db12db0217ed87d83492bd5ad775c363bd3a86e78652216ad |
|
MD5 | 57a31af13ef0e15f12478ea413624e3d |
|
BLAKE2b-256 | 039993b71bb3f161a02816ca797a86081b8ee864cfc7b06f46e4eee8a98b1cb6 |
Hashes for devart_sqlserver_connector-1.1.1-cp37-cp37m-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d65013c6f45edce8a4333f4e5b7147fe8baa7336e395b35b73f82c52c1436e2f |
|
MD5 | f2aa701a69d0bf33962abba3025e0936 |
|
BLAKE2b-256 | b21ef555051d5e96892402a36030c2943b78d139e58bb05a713f207c29f94614 |
Hashes for devart_sqlserver_connector-1.1.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7722be5463bda54bf25490cb0db1dbb292d376181d8ceeff00e48c97b8eb9de5 |
|
MD5 | 6ae08424f1054112fb641d4d24cffe52 |
|
BLAKE2b-256 | c87198fb1958652b64abfba702e2330460a05a8d653e63e5dd90f98427177fec |