Skip to content

WPP-Public/vizzlyco-python

Repository files navigation

Vizzly Python library

Python library to generate dashboard and data access tokens used for vizzly.co.

Installation

pip3 install git+https://github.com/vizzly-co/python.git#egg=vizzly

Usage

import vizzly

# Generated by https://docs.vizzly.co/security
private_key = """
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIMd64JFtp7nbYIsws03dy6fBirhpio4aLwPdW/6Xg1WRoAoGCCqGSM49
AwEHoUQDQgAERbmqmGHbjlNMXjHZMJsoFsDnQDT7k4aV5wBdlXIKe0GH+FWSwawt
c8XAMURwSA7iAY2QzmzJ4RQ6ZKp1UVkpLA==
-----END EC PRIVATE KEY-----
"""

# Access token to permit dashboard configuration management
dashboard_access_token = vizzly.sign_dashboard_access_token(
  expiry_ttl_in_minutes=60,
  project_id='prj_123',
  user_reference='usr-123',
  private_key=private_key
)

# Access token to permit data access
data_access_token = vizzly.sign_data_access_token(
  expiry_ttl_in_minutes=20,
  data_set_ids='*',
  secure_filters={},
  private_key=private_key
)

# Access token to allow access to the Config Manager UI. https://docs.vizzly.co/query-engines/self-hosted/config-manager-ui
query_engine_access_token = vizzly.sign_query_engine_access_token(
  expiry_ttl_in_minutes=60,
  allow_data_preview_access=True,
  allow_database_schema_access=True,
  private_key=private_key
)

Website

https://vizzly.co

Docs

https://docs.vizzly.co

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages