Skip to content
Snippets Groups Projects

cli: Add list-datasets command

Merged Antoine Lambert requested to merge anlambert/swh-graph:cli-list-datasets into master

Add simple command to print the names of the Software Heritage graph datasets that can be downloaded with the following command:

$ swh graph download --name <dataset_name> <target_directory>

$ swh graph list-datasets -h
Usage: swh graph list-datasets [OPTIONS]

  List graph datasets available for download.

  Print the names of the Software Heritage graph datasets that can be
  downloaded with the following command:

  $ swh graph download --name <dataset_name> <target_directory>

Options:
  --s3-bucket TEXT  S3 bucket name containing Software Heritage graph
                    datasets. Defaults to 'sotwareheritage'
  -h, --help        Show this message and exit.
$ swh graph list-datasets 
2018-09-25
2020-05-20
2020-12-15
2021-03-23-cpython-3-5
2021-03-23-popular-3k-python
2021-03-23
2022-04-25
2022-12-07-history-hosting
2022-12-07
2023-09-06-history-hosting
2023-09-06-popular-1k
2023-09-06
2024-05-16-history-hosting
2024-05-16-sux
2024-05-16
2024-08-23-popular-500-python
2024-08-23
2024-08-23_popular-4-shell

Merge request reports

Pipeline #12434 passed

Pipeline passed for a459fb03 on anlambert:cli-list-datasets

Approval is optional

Merged by Antoine LambertAntoine Lambert 4 months ago (Dec 17, 2024 9:52am UTC)

Merge details

  • Changes merged into with a459fb03.
  • Did not delete the source branch.

Pipeline #12449 passed

Pipeline passed for a459fb03 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading