Skip to content

Instantly share code, notes, and snippets.

@simon-contreras-deel
Created August 1, 2019 09:40
Show Gist options
  • Save simon-contreras-deel/3d8b71012a36e5f386e1c26121fd1eb1 to your computer and use it in GitHub Desktop.
Save simon-contreras-deel/3d8b71012a36e5f386e1c26121fd1eb1 to your computer and use it in GitHub Desktop.
[set dataset tags] #cartoframes #python
USERNAME = ''
APIKEY = ''
TABLE = ''
from carto.auth import APIKeyAuthClient
auth_client = APIKeyAuthClient(
base_url='https://{}.carto.com'.format(USERNAME),
api_key=APIKEY
)
from carto.datasets import DatasetManager
ds_manager = DatasetManager(auth_client)
table_metadata = ds_manager.get(TABLE)
table_metadata.tags = ['tag1', 'tag2']
table_metadata.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment