How to use the carto.kuvizs.KuvizManager function in carto

To help you get started, we’ve selected a few carto examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CartoDB / carto-python / carto / kuvizs.py View on Github external
Creates a Kuviz.

        :param html: The visualization HTML
        :param name: The visualization name
        :type html: str
        :type name: str

        :return: A Kuviz instance with the `url` and `visualization` properties
                    of the new Kuviz
        """
        data = base64.b64encode(html.encode()).decode('ascii')
        if password:
            return super(KuvizManager, self).create(data=data, name=name,
                                                    privacy=PRIVACY_PASSWORD, password=password)
        else:
            return super(KuvizManager, self).create(data=data, name=name)
github CartoDB / cartoframes / cartoframes / viz / kuviz.py View on Github external
def _get_kuviz_manager(auth_client):
    return KuvizManager(auth_client)