mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 18:59:23 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			296 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			296 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from datahub.sdk import DataHubClient, DatasetUrn, GlossaryTermUrn
 | |
| 
 | |
| client = DataHubClient.from_env()
 | |
| 
 | |
| dataset = client.entities.get(DatasetUrn(platform="hive", name="realestate_db.sales"))
 | |
| dataset.set_terms([GlossaryTermUrn("Classification.HighlyConfidential")])
 | |
| client.entities.update(dataset)
 | 
