From 3fa2a99d8c7ae3cc9e57c21fe0d051340dab3f27 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Sun, 6 Aug 2023 15:14:17 +0100 Subject: [PATCH] Add print dataset urls output --- src/pypi_data/cli.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pypi_data/cli.py b/src/pypi_data/cli.py index 184634bd..e3a5f4ce 100644 --- a/src/pypi_data/cli.py +++ b/src/pypi_data/cli.py @@ -53,6 +53,13 @@ def print_git_urls(github_token: GithubToken, ssh_urls: bool = False): print(https_url) +@app.command() +def print_dataset_urls(github_token: GithubToken): + g = github_client(github_token) + for _, _, dataset_url in _get_urls(g): + print(dataset_url) + + def group_by_size(github: Github, target_size: int) -> Iterable[list[tuple[int, str]]]: urls = (u[2] for u in _get_urls(github)) with ThreadPoolExecutor() as pool: