Python Connector for Dynamics 365
Python Connector for Dynamics 365 is a connectivity solution for accessing Dynamics 365 Customer Engagement (formerly Dynamics CRM) 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, macOS, and Linux.
Standard SQL syntax
The connector fully supports the ANSI SQL standard and lets you execute SQL statements against your Dynamics 365 data just like you would normally work with relational databases. Simple queries are directly converted to Dynamics 365 API calls and executed on the Dynamics 365 side. Complex queries are transformed into simpler queries, which are then converted to Dynamics 365 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 establish a connection to Dynamics 365, import the connector and authenticate using basic or OAuth 2.0 authentication.
Import the connector
First, import the Dynamics 365 connector module:
import devart.dynamics365 as dynamics365
Establish a connection
Connect to your Dynamics 365 environment using the connect() module method and obtain a connection object.
You can connect to Dynamics 365 using either basic authentication or OAuth 2.0 authentication.
Basic authentication
For basic authentication, provide your Dynamics 365 server URL and authentication credentials:
my_connection = dynamics365.connect(
Authentication="Basic", Server="your_dynamics365_url", UserId="your_username", Password="your_password"
)
Replace the example values with your actual connection values.
OAuth 2.0 authentication
For OAuth 2.0 authentication, provide your OAuth credentials:
response = dynamics365.signin(Server="your_dynamics365_url")
my_connection = dynamics365.connect(
Authentication="OAuth",
Server="your_dynamics365_url",
RefreshToken=response["Refresh Token"]
)
Replace the example values with your actual connection values.
Querying data
Once connected to Dynamics 365, you can execute SQL queries to retrieve data from your Dynamics 365 data.
Execute a query
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 product")
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/dynamics/ordering.html
To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/dynamics/activate-a-license.htm
What's new
Python Connector for Dynamics 365 1.4
- Added support for Python 3.15
Metadata
Release files for devart-dynamics365-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: 1.2 GB
Release files / devart_dynamics365_connector-1.4.0-cp315-cp315-win_amd64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 41.6 MB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
33be591c2222cf992fdc3d839ea746d1e1d9365e5c8b62539ca9a81cde599014
|
|
BLAKE2b-256 checksum How to use checksums |
5764288b4f32ee5a5aac0f70ecfe27d137048b83898d4333e630602c87b6217b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp315-cp315-win32.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp315-cp315-win32.whl |
|---|---|
| Size | 38.1 MB |
| Tags | CPython 3.15 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
284793ba699ef68d012638366b709e0cca92fd2b23317284a24c3f677684473c
|
|
BLAKE2b-256 checksum How to use checksums |
84d738059bec161312a3b30b499060ebbd69b9a231e7c6102fd5839c3c757113
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp315-cp315-manylinux_2_34_x86_64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp315-cp315-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 39.2 MB |
| Tags | CPython 3.15 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
ddbc3cda993f59576b84ffb2324067732bbe898cef44c521be761ef4f517ad76
|
|
BLAKE2b-256 checksum How to use checksums |
d24de75f43797a862f25a8ea60c9354d2acb6ac5adbcad055b6304a2626bab82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp315-cp315-macosx_10_9_universal2.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp315-cp315-macosx_10_9_universal2.whl |
|---|---|
| Size | 75.9 MB |
| Tags | CPython 3.15 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
d8a00ca2e23cfc74236df2ed06bcadb512ed06b907f0f170b5590425799ba035
|
|
BLAKE2b-256 checksum How to use checksums |
5e79cf472fc39ad88400540daa1d902ef1e1ba11d1118071d168f67e9554cf72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp314-cp314-win_amd64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 41.6 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b70d03b60ac29fb22b63d2b5f7cea18579ef53f7e16a04c7bd6604b452fcf23c
|
|
BLAKE2b-256 checksum How to use checksums |
44e922112dd31233549f6cd50d3a67ee5b6961b55072c9218eceb7914a74f8c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp314-cp314-win32.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp314-cp314-win32.whl |
|---|---|
| Size | 38.1 MB |
| Tags | CPython 3.14 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
0ea9b68cdef3905617b5b665c21191d053949650aaa0eaf60d58d80a6fa667c8
|
|
BLAKE2b-256 checksum How to use checksums |
97a1d47348dfa256e35158bfc43503762a214703db712a46f31f47a944c51449
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 39.2 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
1212ed673ebbce50790c8c621a29c06eedddea20891b09bef263e1797f549965
|
|
BLAKE2b-256 checksum How to use checksums |
b2a63e525d60e82f54bfcc367ae7fda713bccec8c6ff37575b37b0d35711196f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp314-cp314-macosx_10_9_universal2.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp314-cp314-macosx_10_9_universal2.whl |
|---|---|
| Size | 75.9 MB |
| Tags | CPython 3.14 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
571156ac1fd7b54b55343718542025e45b4e346d5e1e70cdb0da0faf7520690e
|
|
BLAKE2b-256 checksum How to use checksums |
ab97a04c38474ad5fec773879fed7596542abfa2e821aea74b904c5295013974
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp313-cp313-win_amd64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 40.4 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b45273057c46b01852e886d5c3aca3657d6249409d76216f2d5d11ac051e201d
|
|
BLAKE2b-256 checksum How to use checksums |
467dc70507f1ea2d3d08305585aa6afed220d9a20f5821bc4b5c96fb9f5301ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp313-cp313-win32.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp313-cp313-win32.whl |
|---|---|
| Size | 37.2 MB |
| Tags | CPython 3.13 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
03d41ee242c02059e5584cd2835ffb2e8d8f2eab968f41e8fe2b894a866aac9e
|
|
BLAKE2b-256 checksum How to use checksums |
da85084b27bce716bddb02a8f2bec297a46d6499cb4dfd56e0ea98bff5760f4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 39.2 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
552e0117b7010a7a2b6c9ddaaf8b5b5ab36a88913ca709152d30be632609c971
|
|
BLAKE2b-256 checksum How to use checksums |
f3c13cc9e5a514a69ed79b2e00a55878978aa3d2d43d733e5737d39caf46fe30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp313-cp313-macosx_10_9_universal2.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp313-cp313-macosx_10_9_universal2.whl |
|---|---|
| Size | 75.9 MB |
| Tags | CPython 3.13 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
b03ce5d21276be253ddfb1562e6a7e9b19436ac694a89cac3d2dd0949b256467
|
|
BLAKE2b-256 checksum How to use checksums |
1878ae8b26156cecb2cb195823325363dd52d3b0e66a1e7261b836676eb733ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp312-cp312-win_amd64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 40.4 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
485af347648fcd2849476f2fd77bdd7a4b30c8a9a3548bc59da13045f791c3a3
|
|
BLAKE2b-256 checksum How to use checksums |
d436ded1004c4215c881c4e9a92c011bee31f32a00454ad0ac18a0b27eec211c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp312-cp312-win32.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp312-cp312-win32.whl |
|---|---|
| Size | 37.2 MB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
9650933dedf41b5d95f560ff8fe758c56990b907dcd80317b7759bf1e3891618
|
|
BLAKE2b-256 checksum How to use checksums |
1a5660d6c92e42fe4a7947310a1d2bb5e10670bc6b0e5adea07039f773f17ed5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 39.2 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
923f521b501e53fa60ac5c3846a652d120cf8dfb88be87157ce7ad9b2e3b6a56
|
|
BLAKE2b-256 checksum How to use checksums |
5796305d199e73db61461fa9510f2030e219d1ebd5e1852d41d23f7158f6b338
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp312-cp312-macosx_10_9_universal2.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp312-cp312-macosx_10_9_universal2.whl |
|---|---|
| Size | 75.9 MB |
| Tags | CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
7049f534412e33a7934c1f24c3714274292f75a5c5df60e64f0251fec0ac4bd5
|
|
BLAKE2b-256 checksum How to use checksums |
a474d98c793347556603f08a02b332c62a1316544112888b7e4620069cf3be23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp311-cp311-win_amd64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 40.4 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ce705ed6070e81ae7dc6f6595275a16259f92aae190d6e2d4761a3ae0fb3e818
|
|
BLAKE2b-256 checksum How to use checksums |
b15ece32400cc3557ec78bf335cc038c8ce3c969a7f2d0845a3d6a6eeceab14d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp311-cp311-win32.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp311-cp311-win32.whl |
|---|---|
| Size | 37.2 MB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
090f1f5ac80f0e1d3eb4ceebf42f178ec3a58518320cb8797fe8100b1ca5fac2
|
|
BLAKE2b-256 checksum How to use checksums |
db4e6d20da07c88465f6a216eb5a0b30cc9a71b89bd5d51f99d29a55e9bc5c11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 39.2 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
ef41780be00ae5ad074680d4c86307f80536880ce5b23181c37bff3358db5257
|
|
BLAKE2b-256 checksum How to use checksums |
7f6424c624f5e61485291d0ba4e730d3e818e1c468f19a78b33474a723492860
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp311-cp311-macosx_10_9_universal2.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp311-cp311-macosx_10_9_universal2.whl |
|---|---|
| Size | 75.9 MB |
| Tags | CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
39fd65c421d3ee920418f0ff29e0ea03c326ef4b47e16598738bbea24dd77a86
|
|
BLAKE2b-256 checksum How to use checksums |
323924e8c98fbaef498c8579cc29bfeda560847b393b6638c548c1f5802080ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp310-cp310-win_amd64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 40.4 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
17407cb05e4728a2a90899f2399bf0763bed2a1425304c8010f8645b62583789
|
|
BLAKE2b-256 checksum How to use checksums |
baf8b6a483f9e86f612646e7af38ceee3353967b62e91755b8995bc96fadba92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp310-cp310-win32.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp310-cp310-win32.whl |
|---|---|
| Size | 37.2 MB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
22e88dae566cf09a83ddd7c5139ec5b08ae32fcc9e4c0746be4f1dbf64fea4d7
|
|
BLAKE2b-256 checksum How to use checksums |
933ba3acecadf2865db1abd1a5df186943976962a06a95104913d86301ac3998
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 39.2 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
b40ae6f924161415256639285c08c520a3057204d31a3257eae6415e5e8af3d6
|
|
BLAKE2b-256 checksum How to use checksums |
61926af0e1d4c627801830feb4b48767627b7acc72d1a4dfe6fcedc1eabcdf47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_dynamics365_connector-1.4.0-cp310-cp310-macosx_10_9_universal2.whl
| Download URL | devart_dynamics365_connector-1.4.0-cp310-cp310-macosx_10_9_universal2.whl |
|---|---|
| Size | 75.9 MB |
| Tags | CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
3bd46bc27fa0360b1ef97172ea630e3f81a50e3c2d27caef26f1defe71ed3496
|
|
BLAKE2b-256 checksum How to use checksums |
fbee2077b0966890a9cd37e8504392eebb8b8c449516ca980fdb06b65d3e763c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Security for devart-dynamics365-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.