Skip to content

SAnCherepan/Test-code

Repository files navigation

Repo reader

This is a simple python package that can be used to get basic list of repositories in a GitHub repository group (a.k.a. organisation).

Installation

Python package:

python -m pip install --index-url https://test.pypi.org/simple/ repo_reader_sancherepan

Docker image:

docker pull sancherepan/repo-reader
docker run -it --rm sancherepan/repo-reader read-repos --help

Usage

In your code:

from repo_reader_sancherepan.repo_reader import RepoReader

reader = RepoReader("<your_github_auth_token>")
repos = reader.read_repos("<github_repo_group_name>")

In command line:

read-repos your_github_auth_token github_repo_group_name

In docker:

docker run -it --rm sancherepan/repo-reader read-repos your_github_auth_token github_repo_group_name