Python Connector for SQLite
Python Connector for SQLite is a connectivity solution for accessing SQLite 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 supports two SQLite library linking modes: static linking and dynamic linking. Static linking enables a direct connection to SQLite, so you don't have to deploy the SQLite libraries on user workstations. You can use the built-in encryption capabilities in the Direct mode to protect your data from unauthorized access?the statically linked library provides SQLite database encryption without requiring you to purchase an encryption extension.
Connecting
To establish a connection to an SQLite database, import the connector and use
the connect() method with your connection parameters.
Import the connector
First, import the SQLite connector module:
import devart.sqlite
Establish a connection
Connect to a database using the connect() module method and obtain a connection object.
You can connect in Direct mode or by using a dynamically linked SQLite client library.
Direct mode
In Direct mode, the connector works without requiring an external SQLite client library. Provide the path to your database file:
my_connection = sqlite.connect(
Direct=True,
Database="your_database"
)
Replace the example value with the path to your actual database file.
Dynamically linked SQLite client library
You can also connect using a dynamically linked SQLite client library. Provide the path to the client library file along with the database file:
my_connection = devart.sqlite.connect(
Direct=False,
Database="your_database",
ClientLibrary="your_sqlite_lib"
)
Replace the example values with your actual database and client library paths.
Querying data
Once connected to SQLite, you can execute SQL queries to retrieve data from your SQLite database.
Execute a query
Create a cursor object using the cursor() connection method.
my_cursor = my_connection.cursor()
Execute a SQL query using the execute() cursor method.
my_cursor.execute("SELECT * FROM employees")
Retrieve results using one of the fetch*() methods.
for row in my_cursor.fetchall():
print(row)
Parameterized queries
You can use parameterized queries to pass variable values to your SQL statements. This allows you to reuse the same query with different data and helps to prevent SQL injection attacks.
Pass parameters as a list or tuple to the
execute()
method:
query = "SELECT Id, Name FROM Contact WHERE Name = ? AND Email = ?"
params = ["Jordan Sanders", "jordansanders@example.com"]
my_cursor.execute(query, params)
results = my_cursor.fetchall()
for row in results:
print(row)
Each placeholder ? in the query is replaced with a corresponding value from the parameter list.
Ordering and activating the license
You can purchase a license for the connector on the ordering page:
https://www.devart.com/python/sqlite/ordering.html
To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/sqlite/activate-a-license.htm
What's new
Python Connector for SQLite 1.4
- Added support for Python 3.15
Metadata
Release files for devart-sqlite-connector 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 57.3 MB
Release files / devart_sqlite_connector-1.4.0-cp315-cp315-win_amd64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
18ff4d90f1d0f0701f44683de2a02b9ac8bd19f3c50e718b6cbf82ce4a342ac8
|
|
BLAKE2b-256 checksum How to use checksums |
d6dca93e020b1423b8ef5377294629d14f4abc8151fb5ce3372374bcc48aac7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp315-cp315-win32.whl
| Download URL | devart_sqlite_connector-1.4.0-cp315-cp315-win32.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.15 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
97228f7162fc85d1bac511d060b89df4834ca3ac7231eb4664ed939fd5ab57be
|
|
BLAKE2b-256 checksum How to use checksums |
7751ff9a6bb83a117489a1a73bc3256afe532b8a6a4a46cb74df705fb18949d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp315-cp315-manylinux_2_34_x86_64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp315-cp315-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.15 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
dcb3fac002b790404adac8c226be6ebf01566fe0305db6476d2ac3781bd8f998
|
|
BLAKE2b-256 checksum How to use checksums |
ec0fb9e398c97a9ec829ae8d0266b62b9b08a4025740e11b0e4bbbdd5e254849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp315-cp315-macosx_10_15_universal2.whl
| Download URL | devart_sqlite_connector-1.4.0-cp315-cp315-macosx_10_15_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.15 macOS 10.15+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
1675a07c180bb9a7fdd9b951640b5b1e256c72c9de8e28b3243e43453cdbc642
|
|
BLAKE2b-256 checksum How to use checksums |
a51b2a529b1bd4576ae9f953158c8a04147114c461a99bc8d17c089df3b831f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp314-cp314-win_amd64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
aae7553b27f360e1fb942ac21f4205a6f4125e129ce12399781eaffa03e329db
|
|
BLAKE2b-256 checksum How to use checksums |
11fce5a3c01d768fb7855109bc80f1817d834d235c8181099fede35a291be661
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp314-cp314-win32.whl
| Download URL | devart_sqlite_connector-1.4.0-cp314-cp314-win32.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.14 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
a9ba2d2bd44cee7999e06f9bec2cc3f2e220976a682416488a48c703ceef8587
|
|
BLAKE2b-256 checksum How to use checksums |
c62817c66d660af0edd7dbad0544e90f5f9500c62ca54b0cfd1a16750ac57908
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
46c2ce7a8ddfbce6382959e60b330c02447a11baf893bf86eb837c85566d36cb
|
|
BLAKE2b-256 checksum How to use checksums |
e7e8b0bf0f1b56f4025094c2bdfcd11093bd56e71c8b1cbb405008c1be56156d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp314-cp314-macosx_10_15_universal2.whl
| Download URL | devart_sqlite_connector-1.4.0-cp314-cp314-macosx_10_15_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
aca94816877963a4522374f5443a11a8c5a8734641c9b86c82db8080df2cf07c
|
|
BLAKE2b-256 checksum How to use checksums |
ce7eb722137a07b4b3e86662e63392d22b09b00ce3bfe869c13379ad906496b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp313-cp313-win_amd64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
e7b0985e9abcf15e3763bbfa052e1566aa39152c595e603ebbe3669d4f06af8f
|
|
BLAKE2b-256 checksum How to use checksums |
c88b44e4f66c8cc197b519bb4d38b41391b69f8a4504145fddb506216398dcd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp313-cp313-win32.whl
| Download URL | devart_sqlite_connector-1.4.0-cp313-cp313-win32.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.13 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
e684d24260afa917b33ecc57411df103cc4b81bfba0fc32575e0f521d11ec2ce
|
|
BLAKE2b-256 checksum How to use checksums |
7daf62f147c70be838d11a9faad55bd1d714190dd3d644dde13a0a6d350411c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
4f545183900c4386007961efe12b59cffe1440fd0373ac73073c67c67ede7844
|
|
BLAKE2b-256 checksum How to use checksums |
4052e1d1b3e6d10afae8e30d230bda5d045a5ff9322ea39fba6f836f20ab22da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp313-cp313-macosx_10_13_universal2.whl
| Download URL | devart_sqlite_connector-1.4.0-cp313-cp313-macosx_10_13_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
d52d4a9e0110000dc344d5be07f92a888abed6ab3824a08533cdc69921793f76
|
|
BLAKE2b-256 checksum How to use checksums |
828010bbe8e12a9703da7b0412ed80e386f6f268b8ca99d0c8558945e0a71b95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp312-cp312-win_amd64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9f0f91a78364faf1fa48bed0cefde6f2f38c658f44d360f6d4fd7e20a5f2dd47
|
|
BLAKE2b-256 checksum How to use checksums |
0398c6a06ef8219d983a789718f6aaf7d82cdb767f92b2c73a46e22f4d007511
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp312-cp312-win32.whl
| Download URL | devart_sqlite_connector-1.4.0-cp312-cp312-win32.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
80ec5cbf09ace34ab257e24e5833545543aa91453b8011facbcc7651b8eb6835
|
|
BLAKE2b-256 checksum How to use checksums |
9f9c4e6f3049953191cafb32564108a464a91ee00665acdc916d1865ab82143a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
17444a5355bf3af2b8f57d14844553b030a60c58c5b66f05c35fbacd686a8771
|
|
BLAKE2b-256 checksum How to use checksums |
9d1d9525a9fb7e7a2695e2b52fccc186061dbc4b99f1587b6ea0b8a79a570613
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp312-cp312-macosx_10_9_universal2.whl
| Download URL | devart_sqlite_connector-1.4.0-cp312-cp312-macosx_10_9_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
fca9947ff452891a40b717576daae0dd6e10c915fe9aaa8f47f5099542e97233
|
|
BLAKE2b-256 checksum How to use checksums |
cbe5fcb3b3a8b90157473c96bae8054fd69a2eec4acef6244678b729c71cee50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp311-cp311-win_amd64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
eea928a7c9a771e4830fd8f2197d5b72f79dd3df89f38c17497e14035abf77cf
|
|
BLAKE2b-256 checksum How to use checksums |
e72e8deb676e05e9e425647218a63e079f598b67b785d9fa89bfa6bfa1067cc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp311-cp311-win32.whl
| Download URL | devart_sqlite_connector-1.4.0-cp311-cp311-win32.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
512a2ec781d023230760e1302141ece769ca0a7ae45acf0f13014ea0345c483d
|
|
BLAKE2b-256 checksum How to use checksums |
71a880e48d04e287851f9f8351f5c4a0d160aea2db839ccb78532d19176a16cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
cee1d163b7506c8280f3e8c17c576cd808002465c53d159a7031890f4a8559e4
|
|
BLAKE2b-256 checksum How to use checksums |
83dee0ef22eacaa0c9b4034cfa6b6755ebcc62a4ba382b97ac6ebbf4fbba2a81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp311-cp311-macosx_10_9_universal2.whl
| Download URL | devart_sqlite_connector-1.4.0-cp311-cp311-macosx_10_9_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
7648c421ee08a01df62cb43b05da19036e870a32395bb6711a777e94ecf64bde
|
|
BLAKE2b-256 checksum How to use checksums |
b59235d942104a42a0516218943434e05d238aceb8e497ac16ea998667f943ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp310-cp310-win_amd64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
891cb9da871fda451ba05881a802e2cc58df9629d803165c6cfa59cf787801e8
|
|
BLAKE2b-256 checksum How to use checksums |
a37f7745dc61deadc04d7924cd81dbf25c00d931de739197ce3537dfd43af7dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp310-cp310-win32.whl
| Download URL | devart_sqlite_connector-1.4.0-cp310-cp310-win32.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
e48a5cda325e35b3f3314c5ecbdadcfa37e02275ee6e661dcf863e6ed1069d66
|
|
BLAKE2b-256 checksum How to use checksums |
a069e8d8f230405f852ec4ac4591b91ee4c940dfe1c415ae4a6edb432dc17432
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | devart_sqlite_connector-1.4.0-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
9299a9bb854b14f9842fc68095eb8e77dcc0a3f7b39444767d206a79689a94c3
|
|
BLAKE2b-256 checksum How to use checksums |
691011313279f778007763d20afc8c9b203dabb033fb2f1fb5ffbdc1b31e9ab7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_sqlite_connector-1.4.0-cp310-cp310-macosx_10_9_universal2.whl
| Download URL | devart_sqlite_connector-1.4.0-cp310-cp310-macosx_10_9_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
5b5fbe95c3a930e17f08bb6bc794fadbb8a07709d244388db39be63a6ed80253
|
|
BLAKE2b-256 checksum How to use checksums |
9cb8580da1d1056ebaceccc928a079b5e7e8b93e9e1805af92ad52d901c2bc05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Security for devart-sqlite-connector 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.