Skip to main content

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:

  1. Init the client:
from dynamics import DynamicsClient

client = DynamicsClient(...)
client = DynamicsClient.from_environment()
  1. Set the table:
client.table = "..."
  1. Set row (Required for PATCH and DELETE, otherwese optional):
client.row_id = "..."
  1. Set query options (optional):
client.select = [...], client.expand = {...}, etc.
  1. 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


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 details)

Uploaded Source

Built Distribution

dynamics_client-0.0.3-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

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

Hashes for dynamics-client-0.0.3.tar.gz
Algorithm Hash digest
SHA256 27408dcc55cc6a71db0c008adb876bc1a425a7d428192b40117ed63ef1a9d774
MD5 8f5aa7d2a5778c6b0c8ef09d606ba737
BLAKE2b-256 0ff7b959d9dcd2c757e0cc1da3c0b290304d40239e1fcb6ada588aad0c5972ce

See more details on using hashes here.

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

Hashes for dynamics_client-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f8d366947a190b84a299212d2f6cf3b65a8ed0040dd22c1eb1ad6dda55b6d2f4
MD5 b36075909a160d4d39fb3281ed21076b
BLAKE2b-256 a6aa73e197c86ea5ab3d58a2e71e6e6cda318c6d0c02aa5eb7dfb293f17084a4

See more details on using hashes here.

Supported by

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