Skip to main content

Python Connector for Microsoft Excel Online

Python Connector for Microsoft Excel Online is a connectivity solution for accessing Microsoft Excel Online from Python applications to read and update data. It fully implements the Python DB API 2.0 specification. The connector is distributed as a wheel package for Windows and Windows Server.

Standard SQL syntax

The connector fully supports the ANSI SQL standard and lets you execute SQL statements against your Microsoft Excel Online data just like you would normally work with relational databases. Simple queries are directly converted to Microsoft Excel Online API calls and executed on the Microsoft Excel Online side. Complex queries are transformed into simpler queries, which are then converted to Microsoft Excel Online API calls. The embedded SQL engine then processes the results in the local cache and applies advanced SQL features from the original complex query.

Connecting

To connect to Microsoft Excel Online, import the connector and use the connect() method with your connection parameters.

Import the connector

First, import the Microsoft Excel Online connector module:

import devart.excelonline as excelonline

Establish a connection

Call the connect() method and obtain a connection object.

response = excelonline.signin()
my_workbook = excelonline.getworkbook()
my_connection = excelonline.connect(
    WorkbookId=my_workbook["Workbook Id"]
    RefreshToken=response["Refresh Token"]
)

Replace the example values with your actual connection values.

Querying data

Once connected to Microsoft Excel Online, you can execute SQL queries to retrieve data from your Excel workbooks.

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 all_types")

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/excelonline/ordering.html

To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/excelonline/activate-a-license.htm

What's new

Python Connector for Microsoft Excel Online 1.2

  • Added support for Python 3.15

Metadata

Release files for devart-excelonline-connector 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for devart-excelonline-connector 1.2.0
File Actions
devart_excelonline_connector-1.2.0-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for devart_excelonline_connector-1.2.0-cp315-cp315-win_amd64.whl
devart_excelonline_connector-1.2.0-cp315-cp315-win32.whl CPython 3.15 CPython 3.15 Windows x86-32 Details for devart_excelonline_connector-1.2.0-cp315-cp315-win32.whl
devart_excelonline_connector-1.2.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for devart_excelonline_connector-1.2.0-cp314-cp314-win_amd64.whl
devart_excelonline_connector-1.2.0-cp314-cp314-win32.whl CPython 3.14 CPython 3.14 Windows x86-32 Details for devart_excelonline_connector-1.2.0-cp314-cp314-win32.whl
devart_excelonline_connector-1.2.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for devart_excelonline_connector-1.2.0-cp313-cp313-win_amd64.whl
devart_excelonline_connector-1.2.0-cp313-cp313-win32.whl CPython 3.13 CPython 3.13 Windows x86-32 Details for devart_excelonline_connector-1.2.0-cp313-cp313-win32.whl
devart_excelonline_connector-1.2.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for devart_excelonline_connector-1.2.0-cp312-cp312-win_amd64.whl
devart_excelonline_connector-1.2.0-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details for devart_excelonline_connector-1.2.0-cp312-cp312-win32.whl
devart_excelonline_connector-1.2.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for devart_excelonline_connector-1.2.0-cp311-cp311-win_amd64.whl
devart_excelonline_connector-1.2.0-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details for devart_excelonline_connector-1.2.0-cp311-cp311-win32.whl
devart_excelonline_connector-1.2.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for devart_excelonline_connector-1.2.0-cp310-cp310-win_amd64.whl
devart_excelonline_connector-1.2.0-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details for devart_excelonline_connector-1.2.0-cp310-cp310-win32.whl

Total release size: 65.3 MB

Release files / devart_excelonline_connector-1.2.0-cp315-cp315-win_amd64.whl

Download URL devart_excelonline_connector-1.2.0-cp315-cp315-win_amd64.whl
Size 5.6 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
79d7b64c48d6caf1479ea9612caf1a949608a398cbd72f67add1d39c94b79c7f
BLAKE2b-256 checksum
How to use checksums
289b8b7e2edba44261f575d3774dfd4068eeba447a1b0c51970045114601cf11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_excelonline_connector-1.2.0-cp315-cp315-win32.whl

Download URL devart_excelonline_connector-1.2.0-cp315-cp315-win32.whl
Size 5.3 MB
Tags CPython 3.15 Windows x86-32
SHA-256 checksum
How to use checksums
35cfde0f79d0b49054f82b415868e93d869e57fc226c6dd4e01a5cfba34c1ef2
BLAKE2b-256 checksum
How to use checksums
e0eff7789aa31e86adafc9a02184ed2adeabfb01c1081e4c6b005c68f0943df2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_excelonline_connector-1.2.0-cp314-cp314-win_amd64.whl

Download URL devart_excelonline_connector-1.2.0-cp314-cp314-win_amd64.whl
Size 5.6 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
4ecae8725d1f5db8878af70987061644589f78f29ac60fcdac01fa16f2a15c93
BLAKE2b-256 checksum
How to use checksums
5b44191996a22aa0ea4f29645e52a74e6ff84e6df7606aeb7e52a22b6ce3ea8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_excelonline_connector-1.2.0-cp314-cp314-win32.whl

Download URL devart_excelonline_connector-1.2.0-cp314-cp314-win32.whl
Size 5.3 MB
Tags CPython 3.14 Windows x86-32
SHA-256 checksum
How to use checksums
711cde954ca7619b054540d743e072c67824e200cebad0cde345e3f291361632
BLAKE2b-256 checksum
How to use checksums
12463c8b1ae43dd0e518db063febe34fe11ffefc5e6e4389dea2809576053b03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_excelonline_connector-1.2.0-cp313-cp313-win_amd64.whl

Download URL devart_excelonline_connector-1.2.0-cp313-cp313-win_amd64.whl
Size 5.6 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
a7b0bcb0aea918d9d2ed58be5b1b591f1ce08dacd80c2fc437deb9f6bd1dab80
BLAKE2b-256 checksum
How to use checksums
4458e2a41ec631371f1e165f63a7630d232e64ca62db0da1d8cc62db028aa6cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_excelonline_connector-1.2.0-cp313-cp313-win32.whl

Download URL devart_excelonline_connector-1.2.0-cp313-cp313-win32.whl
Size 5.3 MB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
94b8706f5b0b4c798498e22c9680d5c4793ee82ba51412863cf934c2b73f257e
BLAKE2b-256 checksum
How to use checksums
fbb11d227d46f05d4527997016962d40d0bcd96f755ae8757f21437da8a96527
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_excelonline_connector-1.2.0-cp312-cp312-win_amd64.whl

Download URL devart_excelonline_connector-1.2.0-cp312-cp312-win_amd64.whl
Size 5.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
9eb9ae99b85c095281bdc49b4ed1211b1b44bc8df14ae3f8685fe33db108f85c
BLAKE2b-256 checksum
How to use checksums
26c134650fc117616579e9d0c08930e9fc6610d33f5b16e8c2d9da691d32dc72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_excelonline_connector-1.2.0-cp312-cp312-win32.whl

Download URL devart_excelonline_connector-1.2.0-cp312-cp312-win32.whl
Size 5.3 MB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
295128264cbdb94d0712e510ed8b1bf69453e9c58fffc25247f852974ab81978
BLAKE2b-256 checksum
How to use checksums
0e59f2692d9f2f87cf4cf3da5d72b7e695d5910e25fc5f94b20ddebb4809b783
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_excelonline_connector-1.2.0-cp311-cp311-win_amd64.whl

Download URL devart_excelonline_connector-1.2.0-cp311-cp311-win_amd64.whl
Size 5.6 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
9fc954819aff3f8a3234994134e315a981ca00a2de8c13364ceaf8cae007ff31
BLAKE2b-256 checksum
How to use checksums
019c2e132908856985bc3bb1d9a2fbcf3a681c225a83d5bb404e520822f23ba2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_excelonline_connector-1.2.0-cp311-cp311-win32.whl

Download URL devart_excelonline_connector-1.2.0-cp311-cp311-win32.whl
Size 5.3 MB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
5e050d144cbb30389becab2212c3be09d8eda1742d73837d28392f88379eec10
BLAKE2b-256 checksum
How to use checksums
bac47c74eb482ca053584d13c226562ebfff41762f309b3fd3a9ebad7e0b2fe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_excelonline_connector-1.2.0-cp310-cp310-win_amd64.whl

Download URL devart_excelonline_connector-1.2.0-cp310-cp310-win_amd64.whl
Size 5.5 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
17be7abd703558d16a90c42fd2c5ea8226078cf80fdf8cbc8370104a2e191b58
BLAKE2b-256 checksum
How to use checksums
9c4dddfb6cc47b2a0f491882cc85d94f5c9d22f9d66654f6fdaf54016ea49cf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_excelonline_connector-1.2.0-cp310-cp310-win32.whl

Download URL devart_excelonline_connector-1.2.0-cp310-cp310-win32.whl
Size 5.3 MB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
cb1db6773e111f347a019e124ee3938a00b38e31fe40c00d47259c082425223d
BLAKE2b-256 checksum
How to use checksums
ef496da4f048d4dabfbdce03368e16ae15554c6dfb9dbb8ce5ddfae393c5d52f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Security for devart-excelonline-connector 1.2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page