This script allows a user to print out the list of explainer commits
after a given date until the current date. explainers.py
contains the
list of Privacy Sandbox explainers, and
can be easily edited.
Note: these instructions assume a unix-like environment. On Windows, make sure that the Windows Subsystem for Linux is first installed, then a bash-like shell in Windows can be installed.
A virtual environment is an optional, but recommended step:
-
Create a new virtual environment. Here we give it a name
env
, but you can name it whatever you like:python3 -m venv env
-
Activate the virtual environment:
source env/bin/activate
-
Clone the repository and navigate to the working directory:
git clone https://github.com/GoogleChromeLabs/privacy-sandbox-explainer-updates.git cd privacy-sandbox-explainer-updates/
-
Install Python dependencies (virtual environments are recommended, not documented here):
pip3 install -r requirements.txt
-
Run the following command in a terminal:
mv copyme.env .env
-
Create a personal access token. You only need to select the
public_repo
scope, and the expiry is up to you. -
Paste the token inside the newly created
.env
file, afterTOKEN=
.
Navigate to the privacy-sandbox-explainer-updates
directory in your terminal and run the following:
`python3 pseupdates.py --since=2022-04-01`
Copyright 2022 Google LLC. SPDX-License-Identifier: Apache-2.0