New level of functionality and performance in data access via Python
Project description
Python Connector for Dynamics 365 Business Central
Python Connector for Dynamics 365 Business Central is a connectivity solution for accessing Dynamics 365 Business Central 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 Dynamics 365 Business Central data just like you would normally work with relational databases. Simple queries are directly converted to Dynamics 365 BC API calls and executed on the Dynamics 365 BC side. Complex queries are transformed into simpler queries, which are then converted to Dynamics 365 BC API calls. The embedded SQL engine then processes the results in the local cache and applies advanced SQL features from the original complex query.
Using the connector
To retrieve data from [!ProductNameMix]:
Import the module.
import devart.dynamicsbc as dynamicsbc
Connect to a database using the connect() module method and obtain a connection object:
If you're using basic authentication:
my_connection = dynamicsbc.connect(
Authentication="Basic",
Server="your_dynamics365_url",
UserId="your_username",
AccessKey="your_access_key",
CompanyId="your_company_id"
)
If you're using OAuth 2.0 authentication:
response = dynamicsbc.signin()
my_environments = dynamicsbc.getenvironments(
RefreshToken=response["Refresh Token"]
)
my_companies = dynamicsbc.getcompanies(
RefreshToken=response["Refresh Token"],
Environment=my_environments[0]
)
my_connection = dynamicsbc.connect(
Authentication="OAuth",
RefreshToken=response["Refresh Token"],
Environment=my_environments[0],
CompanyId=my_companies[0]["Company Id"]
)
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 Company")
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/dynamicsbc/ordering.html
To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/dynamicsbc/activate-a-license.htm
What's new
Python Connector for Dynamics 365 Business Central 1.0 Beta
- Initial release of Python Connector for Dynamics 365 Business Central
- Added support for Windows 32-bit and 64-bit
- Added support for Windows Server 32-bit and 64-bit
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d83af8a04a322808eca6a57d8833d1a409e53a5ea0ea6c38ec4e8bbf360e3d2d
|
|
| MD5 |
3d86a22e36ab36f3f3c0d10a246c592e
|
|
| BLAKE2b-256 |
df8f0d51f1ba806c7dee25754f13bcfcbdba50b9a80175442d4c04afce4d6c42
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp313-cp313-win32.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp313-cp313-win32.whl
- Upload date:
- Size: 5.3 MB
- Tags: CPython 3.13, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
329fda98ca316be7cd473788120914c8ce5e4fc8dd89a7c6b4d79d0e476b12c5
|
|
| MD5 |
f292a5b01df8febfa575263f5d29b0a3
|
|
| BLAKE2b-256 |
23f11c3d5500a25b62eba1b9fa7e7cce27c2a5202de7d543c4124ee8ff4832b8
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09e29cfb4068b870f622725f7458d5cd12a76f22d7bf2879828271f31c70db73
|
|
| MD5 |
8888b59e3cc2c3c22d0a81d8dcb76ff9
|
|
| BLAKE2b-256 |
27163300bc93a574cea568b70950136e3ed9fad5102d5a0f9061effb6deb1ca8
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp312-cp312-win32.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp312-cp312-win32.whl
- Upload date:
- Size: 5.3 MB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbc5eaa679db0686ad2105183b76256c11c560ace724b94c0f54eb8db2bc6ae5
|
|
| MD5 |
971346b2b49b71a75fc80b44610f0f86
|
|
| BLAKE2b-256 |
2ac5d9da58515c6cb502587d98b601b39864ba5a87a07eaf81a7ecd141c1a1ae
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c67c8cbfe3d09cf2c5a6327bb6fcc1deae7e9c014273aa7050e9d1a37f81edc
|
|
| MD5 |
2dadab440dff1b330348a6e32f3e8969
|
|
| BLAKE2b-256 |
57cf54d737291a002a3ec27b9e21d1490ff37976329fd8a25b637d0c1b712735
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp311-cp311-win32.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp311-cp311-win32.whl
- Upload date:
- Size: 5.3 MB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26b53fbf6665fb39d6565e2c9508c032650585d2c9d630cdb7696a4b66c66749
|
|
| MD5 |
276f72c2c118d328dbfb6aa9ccb077f1
|
|
| BLAKE2b-256 |
470e504c24608df3cc7404647cebda48da6bd9157f047717a552aedbae1871b1
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f17be8e57909a92ac7db33134e11bd261871454f3b06cd27bd3b9af3495e1c2
|
|
| MD5 |
2d4b456e52d9d705a0040950745567c1
|
|
| BLAKE2b-256 |
b610cb4abbcd8270f44a5d2375e2a1b03df32cc82738edf269b062821461137e
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp310-cp310-win32.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp310-cp310-win32.whl
- Upload date:
- Size: 5.3 MB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27892285af3a31a0fad84bee58e7038d292d57c203fe77bfff191693a10c378d
|
|
| MD5 |
68f64b78396b58717f9f90a1d43022be
|
|
| BLAKE2b-256 |
480dca6839bad13eff7e4eb6902b681b5a9f6d540049f0ac40fddde4368c0b05
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9425af8a44075fe42602366a94f9ae25f2ed81544682cc779a2a1a91c09465b
|
|
| MD5 |
b1642a93c26cf237decce8f6c45bf3d3
|
|
| BLAKE2b-256 |
1cbe157939af8e6c3a81c4becc891f8f897cfeec4e6f52ebb9eff78fa4756b66
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp39-cp39-win32.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp39-cp39-win32.whl
- Upload date:
- Size: 5.3 MB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e18cec4190080cd3360c75c75060ed4519e4a91b49b26c9e655b8ac1906a2391
|
|
| MD5 |
5b8943268dcad764c4ff745bc34c73b5
|
|
| BLAKE2b-256 |
26695e4a5e851da307e167848c76a412f06148248c97790f7610d6ff1fc8014c
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f47d93bf49ac26836db1e947c35c905357aecfee517bccf197fd2ed42eeba0c
|
|
| MD5 |
0006f5021306a55238f097575c8e5dc7
|
|
| BLAKE2b-256 |
4ad03cf799f0864046a7bdcae075af21fdaf47ec9dc1d08dc30628d96a84050a
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp38-cp38-win32.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp38-cp38-win32.whl
- Upload date:
- Size: 5.3 MB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0039320aec8924edb48772c6015e06689f99817788cfb0511c61cda60aa0b5e
|
|
| MD5 |
8b567da41b6f162c8468e9253eba8fe6
|
|
| BLAKE2b-256 |
6b6de971078e36ccbf87345d0d4a384c586da98e52c3720c68c37f06b2b314bc
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7d99671aa84eb06254d7a0da3d242eefccc21261d40589b098c461f94a3a3d8
|
|
| MD5 |
c2c66f1b2c5d0cacc28ab808a25bf917
|
|
| BLAKE2b-256 |
6cd950034663c8721ad234869c8f706098580caac1c3d39fc5f1ec6228d75b56
|
File details
Details for the file devart_dynamicsbc_connector-1.0.0-cp37-cp37m-win32.whl.
File metadata
- Download URL: devart_dynamicsbc_connector-1.0.0-cp37-cp37m-win32.whl
- Upload date:
- Size: 5.3 MB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e13ffc0b05ac151de634090f094ae510287a961dbb9845447f509cace655b66
|
|
| MD5 |
20ff05285d6cde266c62a13b30591fff
|
|
| BLAKE2b-256 |
befcbbfb451d322e53fa93660f20a42f92b48f359d93c0ea805df94a08573a02
|