Python client for interacting with D365 OData API (OData v4)
Project description
D365 Client
A Python client for interacting with Microsoft Dynamics 365 using the OData v4 API.
Requirements
- Python >= 3.10
Installation
From PyPI
pip install d365-client
From TestPyPI
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple d365-client
Quick start
from d365_client import D365
d365 = D365(
tenant_id='...',
client_id='...',
client_secret='...',
resource_url='https://...dynamics.com',
)
d365.products.create({
'ProductNumber': 'JMC-PROD-002',
'ProductName': 'Work Title',
})
d365.products.all({'$filter': "ProductNumber='JMC-PROD-002'"})
d365.products.get('JMC-PROD-002')
d365.products.update('JMC-PROD-002', {
'ProductName': 'Work Title (Updated)',
})
d365.products.delete('JMC-PROD-002')
Verify installation
python -c "import d365_client; print(d365_client.version)"
Available entities
The following entities are available:
- Customers V3 (/CustomersV3/)
- Financial Dimension Values (/FinancialDimensionValues/)
- Products V2 (/ProductsV2/)
- Purchase Order Headers V2 (/PurchaseOrderHeadersV2/)
- Purchase Order Lines V2 (/PurchaseOrderLinesV2/)
- Released Products V2 (/ReleasedProductsV2/)
- Sales Order Headers V2 (/SalesOrderHeadersV2/)
- Sales Order Lines (/SalesOrderLines/)
- Vendors V2 (/VendorsV2/)
Notes
- This library uses OAuth2 client credentials (tenant_id, client_id, client_secret) to obtain an access token.
- API methods generally return (data, status_code).
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 Distribution
Built Distribution
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 d365_client-0.0.12.tar.gz.
File metadata
- Download URL: d365_client-0.0.12.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5279f4bfabab1c1f4fa352c07584bf698fea5ae3d38a45688672dc54bb35736b
|
|
| MD5 |
4b9f8e4833165c9afb7572434ae88c0f
|
|
| BLAKE2b-256 |
4bc04417114ec22dac0112b73f77795fb13ebe41b6de025b0696d47e9096e716
|
File details
Details for the file d365_client-0.0.12-py3-none-any.whl.
File metadata
- Download URL: d365_client-0.0.12-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d8c903534b363635ead47c39fd80b503af6b505a77c5ccdf0690facf405a889
|
|
| MD5 |
85a448843cc9549de39ebfff8a6567f5
|
|
| BLAKE2b-256 |
95e355821132a60fa9e4c9e2aa28afff6aea3300870cf1fe6bd4f76212b2ea37
|