Client for making Web API request from a Microsoft Dynamics 365 Database.
Project description
Dynamics Web API Client
pip install dynamics-client
Client for making Web API request from a Microsoft Dynamics 365 Database.
API Reference Docs: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/query-data-web-api
How to use:
- Init the client:
from dynamics import DynamicsClient
client = DynamicsClient(...)
client = DynamicsClient.from_environment()
- Set the table:
client.table = "..."
- Set row (Required for PATCH and DELETE, otherwese optional):
client.row_id = "..."
- Set query options (optional):
client.select = [...], client.expand = {...}, etc.
- Set headers (optional):
client.headers = {...} or client[...] = ...
Make a GET request:
result = client.GET()
Make a POST request:
result = client.POST(data={...})
Make a PATCH request:
result = client.PATCH(data={...})
Make a DELETE request:
result = client.DELETE()
Remember to reset between queries:
client.reset_query()
Query with no table nor query options set to get a list of tables in the database.
Use fetch_schema
for an xml representation of the relational ascpects of the data.
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
dynamics-client-0.0.3.tar.gz
(18.0 kB
view hashes)
Built Distribution
Close
Hashes for dynamics_client-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8d366947a190b84a299212d2f6cf3b65a8ed0040dd22c1eb1ad6dda55b6d2f4 |
|
MD5 | b36075909a160d4d39fb3281ed21076b |
|
BLAKE2b-256 | a6aa73e197c86ea5ab3d58a2e71e6e6cda318c6d0c02aa5eb7dfb293f17084a4 |