A package used to mimic the functionality of the Dataverse SDK.
Project description
datapyrse
Overview
datapyrse
is a Python library designed to mimic the functionality of the Microsoft Dataverse SDK
Features
- Data Retrieval: Easily retrieve data from Dataverse entities.
- Data Manipulation: Perform CRUD operations on Dataverse data.
- Query Building: Build complex queries to filter and sort data.
- Integration: Seamlessly integrate with other data processing libraries.
Installation
To install datapyrse
, use pip:
pip install datapyrse
Usage
import uuid
from datapyrse.core import *
from datapyrse.core.query import *
service: ServiceClient = ServiceClient(
tenant_id="YOUR_TENANT_ID",
resource_url="YOUR_RESOURCE_URL", # e.g. https://yourorg.crm.dynamics.com
)
if not service.IsReady:
print("Service not ready")
exit(1)
# Retrieve multiple entities
query: QueryExpression = QueryExpression(
"new_tablename", ColumnSet(["new_name", "ownerid"])
)
entities: EntityCollection = service.retrieve_multiple(query)
for ent in entities.entities:
print(f"\nId: {ent.entity_id}")
for attribute in ent.attributes:
print(f" {attribute}: {ent.attributes[attribute]}")
print()
# Retrieve a single entity
entity: Entity = service.retrieve_single("new_tablename", uuid.UUID("YOUR_GUID"))
# Create a new entity
new_entity: Entity = Entity("new_tablename")
new_entity["new_name"] = "New Entity"
user_id: uuid.UUID = uuid.UUID("USER_GUID")
new_entity["ownerid"] = EntityReference("systemuser", user_id)
service.create(new_entity)
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
datapyrse-0.5.0.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file datapyrse-0.5.0.tar.gz
.
File metadata
- Download URL: datapyrse-0.5.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f6864d347783a82ad9ec38a75ca3bb53f0e0f836322d694277ddb3448cd4f38 |
|
MD5 | 27971734c96afc265cb35fb11d074c1e |
|
BLAKE2b-256 | 0317e37b47fc3a14ad196a2cee09413175dd6140fb13e5e3ea0a0be2f060df3e |
File details
Details for the file datapyrse-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: datapyrse-0.5.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d4f7654bd0dac7c0a4dcb2e1d41a7a44e25975264d2b6a3b63ef77174169f0e |
|
MD5 | 1fd3e059a5fd63b184f77289f13d1c05 |
|
BLAKE2b-256 | 12ed53b12a0e1f20eac9a00fedf4c67d08e1df7b37fcbaa1e1836712ba1aafe6 |