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.3.0.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file datapyrse-0.3.0.tar.gz
.
File metadata
- Download URL: datapyrse-0.3.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 | 61be50d203c1b6eed70e5476cf7b305649d369b83bb2251389a08a4e73894eb3 |
|
MD5 | ad894038fc9550392e23fb620e56ed00 |
|
BLAKE2b-256 | 61c7fd8eef611306a29f618ea75b8b57695f76f4961fc921f370d95dfa95802c |
File details
Details for the file datapyrse-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: datapyrse-0.3.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 | d99967601a29c76a9706e8466ef2161e50e1df73ca6e204343a5f0bd29937f80 |
|
MD5 | c3ba042554bdc18f56e739bd28de74ed |
|
BLAKE2b-256 | 48f027673b253f655a38fc97105790939b688dcbc8cf594b19a9a8899e9f2088 |