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
Built Distribution
File details
Details for the file dynamics-client-0.0.3.tar.gz
.
File metadata
- Download URL: dynamics-client-0.0.3.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27408dcc55cc6a71db0c008adb876bc1a425a7d428192b40117ed63ef1a9d774 |
|
MD5 | 8f5aa7d2a5778c6b0c8ef09d606ba737 |
|
BLAKE2b-256 | 0ff7b959d9dcd2c757e0cc1da3c0b290304d40239e1fcb6ada588aad0c5972ce |
File details
Details for the file dynamics_client-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: dynamics_client-0.0.3-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8d366947a190b84a299212d2f6cf3b65a8ed0040dd22c1eb1ad6dda55b6d2f4 |
|
MD5 | b36075909a160d4d39fb3281ed21076b |
|
BLAKE2b-256 | a6aa73e197c86ea5ab3d58a2e71e6e6cda318c6d0c02aa5eb7dfb293f17084a4 |