Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

d365_client-0.0.12.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

d365_client-0.0.12-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

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

Hashes for d365_client-0.0.12.tar.gz
Algorithm Hash digest
SHA256 5279f4bfabab1c1f4fa352c07584bf698fea5ae3d38a45688672dc54bb35736b
MD5 4b9f8e4833165c9afb7572434ae88c0f
BLAKE2b-256 4bc04417114ec22dac0112b73f77795fb13ebe41b6de025b0696d47e9096e716

See more details on using hashes here.

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

Hashes for d365_client-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 5d8c903534b363635ead47c39fd80b503af6b505a77c5ccdf0690facf405a889
MD5 85a448843cc9549de39ebfff8a6567f5
BLAKE2b-256 95e355821132a60fa9e4c9e2aa28afff6aea3300870cf1fe6bd4f76212b2ea37

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page