-
Notifications
You must be signed in to change notification settings - Fork 699
How to set your privacy configuration?
Douding edited this page Nov 3, 2023
·
1 revision
Currently, there are three privacy configurations for pygwalker, default is events.
- offline: fully offline, no data is send or api is requested
- update-only: only check whether this is a new version of pygwalker to update
- events: share which events about which feature is used in pygwalker, it only contains events data about which feature you arrive for product optimization. No DATA YOU ANALYSIS IS SEND.
This will write your privacy level into your configuration file, which will be used every time the pygwalker code is executed.
pygwalker config --set privacy=events
pygwalker config --reset privacy
pygwalker config --list
pygwalker config --help
If you just want to temporarily change your privacy level (Only takes effect when pygwalker is currently called), you can use GlobalVarManager
to control it.
from pygwalker import GlobalVarManager
GlobalVarManager.set_privacy("events")
from pygwalker import GlobalVarManager
print(GlobalVarManager.privacy)
$ pygwalker config --help
usage: pygwalker config [-h] [--set [key=value ...]] [--reset [key ...]] [--reset-all] [--list]
Modify configuration file. (default: /Users/douding/Library/Application Support/pygwalker/config.json)
Available configurations:
- privacy ['offline', 'update-only', 'events'] (default: events).
"offline": fully offline, no data is send or api is requested
"update-only": only check whether this is a new version of pygwalker to update
"events": share which events about which feature is used in pygwalker, it only contains events data about which feature you arrive for product optimization. No DATA YOU ANALYSIS IS SEND.
- kanaries_token ['your kanaries token'] (default: empty string).
your kanaries token, you can get it from https://kanaries.net.
refer: https://space.kanaries.net/t/how-to-get-api-key-of-kanaries.
by kanaries token, you can use kanaries service in pygwalker, such as share chart, share config.
options:
-h, --help show this help message and exit
--set [key=value ...]
Set configuration. e.g. "pygwalker config --set privacy=update-only"
--reset [key ...] Reset user configuration and use default values instead. e.g. "pygwalker config --reset privacy"
--reset-all Reset all user configuration and use default values instead. e.g. "pygwalker config --reset-all"
--list List current used configuration.