Python Connector for Microsoft Access
Python Connector for Microsoft Access is a connectivity solution for accessing Microsoft Access 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
Python offers a standard pyodbc module, which you can use to access Microsoft Access databases through the Microsoft Access ODBC Driver. This method has several disadvantages:
- Microsoft offers Access ODBC drivers only for the Windows platform.
- Users might experience issues opening databases created in the latest versions of Microsoft Access.
- Users have to install either Microsoft Access or Microsoft Access Database Engine Redistributable on their machine.
- By default, Microsoft Access is a single-user database system. An Access database cannot be opened concurrently in multiple applications. Our connector provides the following advantages:
- A direct access to a database without installing Microsoft Access or Microsoft Access Database Engine Redistributable on the user's machine
- Support for all major desktop platforms: Windows, macOS, and Linux
- Support for the .mdb and .accdb file formats, including databases created in the latest Microsoft Access versions
- A read-only multi-user mode to enable several users to read data from a database simultaneously
Connecting
To establish a connection to a Microsoft Access database, import the connector
and use the connect() method with your connection parameters.
Import the connector
First, import the Access connector module:
import devart.access as access
Establish a connection
Call the connect() method and obtain a connection object.
my_connection = access.connect(
Database="path_to_db"
)
Replace Database with the actual path to your Access database file.
Querying data
Once connected to Microsoft Access, you can execute SQL queries to retrieve data from your Access 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/access/ordering.html
To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/access/activate-a-license.htm
What's new
Python Connector for Microsoft Access 1.4
- Added support for Python 3.15
- Added the SharedMode and SharedTimeout options, which allow using the same database simultaneously from multiple applications
- Improved compatibility with the Access 97 (Microsoft Jet 3) format
Metadata
Release files for devart-access-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: 68.5 MB
Release files / devart_access_connector-1.4.0-cp315-cp315-win_amd64.whl
| Download URL | devart_access_connector-1.4.0-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fd0d097dca6a0718c277a533daaa623bbe7ac7fb7875dca617fffb17476a454d
|
|
BLAKE2b-256 checksum How to use checksums |
94a70d7bde543a68f21fe082f4aad7923f7d7148b14d7e6a20ee8506f9b187f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp315-cp315-win32.whl
| Download URL | devart_access_connector-1.4.0-cp315-cp315-win32.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.15 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
96ad6cd7147e9eb1f810f0b3a3847372e7237b497d82ef0d4756483232c3356e
|
|
BLAKE2b-256 checksum How to use checksums |
774921837dacbb51af2e48e43bd45ab836f7adbae76ed20b0158abdffca2ce26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp315-cp315-manylinux_2_34_x86_64.whl
| Download URL | devart_access_connector-1.4.0-cp315-cp315-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.15 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
bb58418dc44d696f3a51f750d0ee607d5e7893e96cff88c85b92fc97e86920c8
|
|
BLAKE2b-256 checksum How to use checksums |
a03b1fec9d899348bdf3c6fc304d2eb3d7e7d5b0e7ccfd08992bc676eda5ac6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp315-cp315-macosx_10_15_universal2.whl
| Download URL | devart_access_connector-1.4.0-cp315-cp315-macosx_10_15_universal2.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.15 macOS 10.15+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
a2eedef6b4693aa9ea93c7ccc4c1e2e63bb51a05ff7d913b82ad172051871749
|
|
BLAKE2b-256 checksum How to use checksums |
1f531471a514b6a0780909fd605a420d8529d66be2d243d326819dd67004dd87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp314-cp314-win_amd64.whl
| Download URL | devart_access_connector-1.4.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1ec3c01edb288ddb8cc0ba22f3b248dc1892c62bb31302f9467edd25fdb5b1a0
|
|
BLAKE2b-256 checksum How to use checksums |
81687f7a2f4ef85901e6eec089d8a609193438caa1dc229464f53200b445d575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp314-cp314-win32.whl
| Download URL | devart_access_connector-1.4.0-cp314-cp314-win32.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.14 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
e026b528a4702179e3627b75a2835a892fd6369045a6119db7a1d285f76d6fee
|
|
BLAKE2b-256 checksum How to use checksums |
13c8d37cf8058061db4f2faf6ed96b94b04801059c610674b13e15e3fc966b4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | devart_access_connector-1.4.0-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
14088238ea8b4e0729bf1ba4f97eab2bf9fca79b686819f6d74ad6c1c3c55f06
|
|
BLAKE2b-256 checksum How to use checksums |
cbc758fa74d0efdab942eb77145b2484374fe2271b90b7ef38d1d866924f6b08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp314-cp314-macosx_10_15_universal2.whl
| Download URL | devart_access_connector-1.4.0-cp314-cp314-macosx_10_15_universal2.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
8ada907083ea114757b6e6f65058f3b0f55c3bd0a028526d6163f40810a4bd44
|
|
BLAKE2b-256 checksum How to use checksums |
6bc3d8af77d80bb507e47386de85f89a8bfe2fffe125d23ed75c745c0d90c791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp313-cp313-win_amd64.whl
| Download URL | devart_access_connector-1.4.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d6b73a8362fe76739ea3eeedfcc31a8b565d06e5189d6bcbdb6342eb80804c1e
|
|
BLAKE2b-256 checksum How to use checksums |
a9bcfc39cc667de2948c8998c47b8904a3624778db1977cfb811e55f1b1f8dfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp313-cp313-win32.whl
| Download URL | devart_access_connector-1.4.0-cp313-cp313-win32.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.13 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
0089ef490b5523478a7eadb93d9e8fd72b7b45722c8016abc62b15c629f0c329
|
|
BLAKE2b-256 checksum How to use checksums |
bb8deeee23b7e9f691e6ebee22cbd14b5e36afdd8a47b7ec9af64a492ca8d051
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | devart_access_connector-1.4.0-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
36da258b8c5b7e700c1a18b9f09faa8f5634ccc31cda5858c9ce9ae089b02512
|
|
BLAKE2b-256 checksum How to use checksums |
0bc31e34aaeb7124fbf1e4be9c72d289368ed36d4531a697e6eda02a6c8984ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp313-cp313-macosx_10_13_universal2.whl
| Download URL | devart_access_connector-1.4.0-cp313-cp313-macosx_10_13_universal2.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
06e50556db8b08882d3c0518823ebe513d7820ce51cc1e1e72891674251e92d8
|
|
BLAKE2b-256 checksum How to use checksums |
e0837029371984b4ec10df3d920cd8769287d8931eb8b5a5a468f78d9b56f71e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp312-cp312-win_amd64.whl
| Download URL | devart_access_connector-1.4.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fbfb88e04c9b6d3a390a6a319ce698dae7bc8916107eaae286321b9e96c56910
|
|
BLAKE2b-256 checksum How to use checksums |
5f1e893ea096e8734550e0c8a1b4f1c2bbd3663724a338018a6b8ab1512419d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp312-cp312-win32.whl
| Download URL | devart_access_connector-1.4.0-cp312-cp312-win32.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
26219474cac8e9206f4efcb54496e0d3f9bb0671c7b977cbcd9853af2f9dcd0f
|
|
BLAKE2b-256 checksum How to use checksums |
2bd8c8a33cc93336461d10d84c5ddf9836636bdeb57d9de60dee7577f0a5e34f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | devart_access_connector-1.4.0-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
1213c2a89dbde962fdf2a3d37e5069165210d39d2d0ba1418de50541d12286c9
|
|
BLAKE2b-256 checksum How to use checksums |
3c6be0e32956141e0f8d6c7fa6bcfc4a2329d1b8dc3cc5bff4467f7938258620
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp312-cp312-macosx_10_9_universal2.whl
| Download URL | devart_access_connector-1.4.0-cp312-cp312-macosx_10_9_universal2.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
4df01b1c31142a66256ab22a36956fccb9fdac6a0957286eb21272683b62a77e
|
|
BLAKE2b-256 checksum How to use checksums |
5be2e490ee016de0d9799019622ad533f68f07036f52c910e9fadcb9b009c4a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp311-cp311-win_amd64.whl
| Download URL | devart_access_connector-1.4.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b3d117f4847eae236b387d03dfe170218a86e9036736e51bec4213b277049bdb
|
|
BLAKE2b-256 checksum How to use checksums |
bd2774aca8db2fe257d4abeb8c8c7c01748f93af9f380763eb087658a4cd8f3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp311-cp311-win32.whl
| Download URL | devart_access_connector-1.4.0-cp311-cp311-win32.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
90bfd148dac0273dab197918e0d2896bb3512f38af03f439511dd0ddfea9ca06
|
|
BLAKE2b-256 checksum How to use checksums |
54453db8de6c86ec3c1e16dea7860f6c4a36142a705eb09c63bf4f60e0aef45a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | devart_access_connector-1.4.0-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
4fee1bf717bba1d402880fa8799f47987b4a51268f9af8288a7751e8de1db3f5
|
|
BLAKE2b-256 checksum How to use checksums |
eca11832eac28634de78e0bf51b525d559bbe36a99a3de060e9c17b1e2596de6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp311-cp311-macosx_10_9_universal2.whl
| Download URL | devart_access_connector-1.4.0-cp311-cp311-macosx_10_9_universal2.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
ab216fbde28bf2cf166fe527952b3ad4119a0b0f836132dd1bb0a76df00f6925
|
|
BLAKE2b-256 checksum How to use checksums |
37056caa64bc96691c706e4563266c022b38886d7b4524e29ba68c1c9aaa3109
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp310-cp310-win_amd64.whl
| Download URL | devart_access_connector-1.4.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1b1e2f8e248c18466c36a65afa5a19ed69bbfd9315103d427a3db59843e79ba3
|
|
BLAKE2b-256 checksum How to use checksums |
f20a22432c3f7dca23513a6c196fc012df537b7293924dcef5ddf807583de352
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp310-cp310-win32.whl
| Download URL | devart_access_connector-1.4.0-cp310-cp310-win32.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
089ce0272a8f5344424cf1394b41d3f913ddddfb1d9841cd4a7e23ba227dc3cb
|
|
BLAKE2b-256 checksum How to use checksums |
5b8c9dd84f55d8e9c10683309e23af95c049a0d99a76c9b0836e6c7700b602e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | devart_access_connector-1.4.0-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
49fb4f6fa05c91bcb9b90e700f7d45a251388025a31914452a9e98809acc7e54
|
|
BLAKE2b-256 checksum How to use checksums |
ef64402b1777e1c97f31bd9d88f24b545caff7b6279a1a2fc9f64deea2adcef5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_access_connector-1.4.0-cp310-cp310-macosx_10_9_universal2.whl
| Download URL | devart_access_connector-1.4.0-cp310-cp310-macosx_10_9_universal2.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
ac3b0cdbfbbfbff7da93c6a81e35edcbfd9ca81615fb7a4396d244b2d8165ede
|
|
BLAKE2b-256 checksum How to use checksums |
d427d3b1eae09ab5b43273bf49abf63cb72f0a736a0084740107afaaf16ab865
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Security for devart-access-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.