pvw-cli 1.0.10__py3-none-any.whl → 1.0.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pvw-cli might be problematic. Click here for more details.

purviewcli/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "1.0.10"
1
+ __version__ = "1.0.11"
2
2
 
3
3
  # Import main client modules
4
4
  from .client import *
purviewcli/cli/entity.py CHANGED
@@ -168,6 +168,40 @@ def bulk_create(ctx, payload_file):
168
168
  console.print(f"[red]✗ Error executing entity bulk-create: {str(e)}[/red]")
169
169
 
170
170
 
171
+ @entity.command(name="bulk-update")
172
+ @click.option(
173
+ "--payload-file",
174
+ required=True,
175
+ type=click.Path(exists=True),
176
+ help="File path to a valid JSON document containing entities to update/create (same shape as bulk-create).",
177
+ )
178
+ @click.pass_context
179
+ def bulk_update(ctx, payload_file):
180
+ """Bulk update/create entities from a JSON payload file (uses qualifiedName to match existing entities)."""
181
+ try:
182
+ if ctx.obj.get("mock"):
183
+ console.print("[yellow]🎭 Mock: entity bulk-update command[/yellow]")
184
+ console.print(f"[dim]Payload File: {payload_file}[/dim]")
185
+ console.print("[green]✓ Mock entity bulk-update completed successfully[/green]")
186
+ return
187
+
188
+ args = {"--payloadFile": payload_file}
189
+
190
+ from purviewcli.client._entity import Entity
191
+
192
+ entity_client = Entity()
193
+ result = entity_client.entityBulkCreateOrUpdate(args)
194
+
195
+ if result:
196
+ console.print("[green]✓ Entity bulk-update completed successfully[/green]")
197
+ console.print(json.dumps(result, indent=2))
198
+ else:
199
+ console.print("[yellow]⚠ Entity bulk-update completed with no result[/yellow]")
200
+
201
+ except Exception as e:
202
+ console.print(f"[red]✗ Error executing entity bulk-update: {str(e)}[/red]")
203
+
204
+
171
205
  # === BULK OPERATIONS ===
172
206
 
173
207
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pvw-cli
3
- Version: 1.0.10
3
+ Version: 1.0.11
4
4
  Summary: Microsoft Purview CLI with comprehensive automation capabilities
5
5
  Author-email: AYOUB KEBAILI <keayoub@msn.com>
6
6
  Maintainer-email: AYOUB KEBAILI <keayoub@msn.com>
@@ -56,7 +56,7 @@ Requires-Dist: pytest-asyncio>=0.20.0; extra == "test"
56
56
  Requires-Dist: pytest-cov>=4.0.0; extra == "test"
57
57
  Requires-Dist: requests-mock>=1.9.0; extra == "test"
58
58
 
59
- # PURVIEW CLI v1.0.10 - Microsoft Purview Automation & Data Governance
59
+ # PURVIEW CLI v1.0.11 - Microsoft Purview Automation & Data Governance
60
60
 
61
61
  > **LATEST UPDATE (October 2025):**
62
62
  > - **🚀 NEW: Complete Data Product CRUD Operations** - Full update and delete support with smart partial updates
@@ -73,7 +73,7 @@ Requires-Dist: requests-mock>=1.9.0; extra == "test"
73
73
 
74
74
  ## What is PVW CLI?
75
75
 
76
- **PVW CLI v1.0.10** is a modern, full-featured command-line interface and Python library for Microsoft Purview. It enables automation and management of *all major Purview APIs* including:
76
+ **PVW CLI v1.0.11** is a modern, full-featured command-line interface and Python library for Microsoft Purview. It enables automation and management of *all major Purview APIs* including:
77
77
 
78
78
  - **NEW Unified Catalog (UC) Management** - Complete governance domains, glossary terms, data products, OKRs, CDEs (NEW)
79
79
  - Entity management (create, update, bulk, import/export)
@@ -141,7 +141,7 @@ For more advanced usage, see the sections below or visit the [documentation](htt
141
141
 
142
142
  ## Overview
143
143
 
144
- **PVW CLI v1.0.10** is a modern command-line interface and Python library for Microsoft Purview, enabling:
144
+ **PVW CLI v1.0.11** is a modern command-line interface and Python library for Microsoft Purview, enabling:
145
145
 
146
146
  - Advanced data catalog search and discovery
147
147
  - Bulk import/export of entities, glossary terms, and lineage
@@ -1,11 +1,11 @@
1
- purviewcli/__init__.py,sha256=_I3tsbwtiNWMLdOPJucoN065O07-LzduqWuSZvMD_TU,414
1
+ purviewcli/__init__.py,sha256=dZabjy1DRPdTFgczuBorfIVXE9tYm-8Z5MQK1meA86I,414
2
2
  purviewcli/__main__.py,sha256=n_PFo1PjW8L1OKCNLsW0vlVSo8tzac_saEYYLTu93iQ,372
3
3
  purviewcli/cli/__init__.py,sha256=UGMctZaXXsV2l2ycnmhTgyksH81_JBQjAPq3oRF2Dqk,56
4
4
  purviewcli/cli/account.py,sha256=YENHkBD0VREajDqtlkTJ-zUvq8aq7LF52HDSOSsgku8,7080
5
5
  purviewcli/cli/cli.py,sha256=ZuthJ24ixbKmqRd-1zv8-jXQtQjn2qQR2plg8TyD0Mg,5801
6
6
  purviewcli/cli/collections.py,sha256=cuSp-XiONXyXWHuUGrDYL462j7WNYRF08mU99gPQlg8,18606
7
7
  purviewcli/cli/domain.py,sha256=zI7YPhcCa4u4MIwnWHQPngTUCKOs6C_rEkdpW-Kl6hM,20897
8
- purviewcli/cli/entity.py,sha256=ZEm-j9BoqFTjkmdm0IftEyn7XGs_W-1LY9pQ0oQgrmQ,87860
8
+ purviewcli/cli/entity.py,sha256=aL45xjPUjs0COEq3j5abplEopE8jY0N13dVOpiTMFnw,89166
9
9
  purviewcli/cli/glossary.py,sha256=Lt4ifyESuuaZLOzssv4GcQEO2AQKYS8Zy8L9UFfdglU,25696
10
10
  purviewcli/cli/health.py,sha256=1-0T1pi9Vo6TXgf17vHmyUPah2o-IFnPf8x0aCi3PP4,10547
11
11
  purviewcli/cli/insight.py,sha256=Kevqla6iZ7hPgb-gIWQiXSl2er-N0-Z7Q--IH1icWbs,3853
@@ -53,8 +53,8 @@ purviewcli/client/settings.py,sha256=nYdnYurTZsgv9vcgljnzVxLPtYVl9q6IplqOzi1aRvI
53
53
  purviewcli/client/sync_client.py,sha256=gwCqesJTNaXn1Q-j57O95R9mn3fIOhdP4sc8jBaBcYw,9493
54
54
  purviewcli/plugins/__init__.py,sha256=rpt3OhFt_wSE_o8Ga8AXvw1pqkdBxLmjrhYtE_-LuJo,29
55
55
  purviewcli/plugins/plugin_system.py,sha256=C-_dL4FUj90o1JS7Saxkpov6fz0GIF5PFhZTYwqBkWE,26774
56
- pvw_cli-1.0.10.dist-info/METADATA,sha256=4eRRPzIM5h-0dfRwUBLxLUaQpeG8ft258So4TBLxk8c,28082
57
- pvw_cli-1.0.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
58
- pvw_cli-1.0.10.dist-info/entry_points.txt,sha256=VI6AAbc6sWahOCX7sn_lhJIr9OiJM0pHF7rmw1YVGlE,82
59
- pvw_cli-1.0.10.dist-info/top_level.txt,sha256=LrADzPoKwF1xY0pGKpWauyOVruHCIWKCkT7cwIl6IuI,11
60
- pvw_cli-1.0.10.dist-info/RECORD,,
56
+ pvw_cli-1.0.11.dist-info/METADATA,sha256=704lbXcsxaSK_H62_8SHSmhQqKrTtSA5tclHP7KwVlc,28082
57
+ pvw_cli-1.0.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
58
+ pvw_cli-1.0.11.dist-info/entry_points.txt,sha256=VI6AAbc6sWahOCX7sn_lhJIr9OiJM0pHF7rmw1YVGlE,82
59
+ pvw_cli-1.0.11.dist-info/top_level.txt,sha256=LrADzPoKwF1xY0pGKpWauyOVruHCIWKCkT7cwIl6IuI,11
60
+ pvw_cli-1.0.11.dist-info/RECORD,,