Skip to content

How to set your kanaries token in pygwalker?

Douding edited this page Dec 29, 2023 · 3 revisions

Here are three ways to set you api key.

By login-cli to login in local(recommend, pygwalker >= 0.3.20)

pygwalker login

By invoking pygwalker conifg command(recommend)

pygwalker config --set kanaries_token=your_api_key

By setting your local environment variable

variable name: KANARIES_API_KEY

  • macos / linux

    echo 'export KANARIES_API_KEY="your api key"' >> ~/.zshrc

    or

    echo 'export KANARIES_API_KEY="your api key"' >> ~/. bash_profile
  • windows

    setx KANARIES_API_KEY “<your api key>

By invoking pygwalker function

from pygwalker import GlobalVarManager

GlobalVarManager.set_kanaries_api_key("your api key")

Ohter

About how to get kanaries token, please refer it: How to get api key of kanaries?