Skip to main content

List up GitHub user / org repositories filtered by topics (ghc = GitHub Collector)

Project description

ghc (GitHub Collector)

PyPI PyPI - Python Version GitHub

List up GitHub user / org repositories filtered by topics

Feature

  • List up GitHub org repositories
    • filtered by topics
  • Support several formats
    • JSON
    • Markdown
  • Output the results to stdout or file

Installtion

pip install ghc

Usage

usage: ghc [-h] [--token TOKEN] [-t [TOPICS [TOPICS ...]]] [-f {json,md}] [-o FILENAME] [-V] owner

List up GitHub user / org repositories filtered by topics

positional arguments:
  owner                 Repository user or organization name to search

optional arguments:
  -h, --help            show this help message and exit
  --token TOKEN         Personal Access Token to access the private repository
  -t [TOPICS [TOPICS ...]], --topics [TOPICS [TOPICS ...]]
                        Filter repository using topics
  -f {json,md}, --format {json,md}
                        Format the results with json or md (markdown). Default is json
  -o FILENAME, --output FILENAME
                        Filename to output the results. Output stdout if not specified
  -V, --version         Show command version

Examples

Output JSON

ghc homoluctus --token xxxxxxxx -f json -t python aws | jq
Result
{
  "count": 2,
  "repositories": [
    {
      "description": "The CLI tool to query AWS CloudWatch Logs Insights :mag:",
      "is_archive": false,
      "is_template": false,
      "language": "Python",
      "language_logo_url": "https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png",
      "name": "pyinsights",
      "url": "https://github.com/homoluctus/pyinsights"
    },
    {
      "description": "Scan the vulnerability of Docker images stored in ECR",
      "is_archive": false,
      "is_template": false,
      "language": "Python",
      "language_logo_url": "https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png",
      "name": "ecranner",
      "url": "https://github.com/homoluctus/ecranner"
    }
  ]
}

Output markdown

nghc homoluctus --token xxxxxxx -f md -t python aws
Result (Raw)
# Repositories

Total Count: 2

|Name|URL|Language|Archived|Template|Description|
|:--:|:--:|:--:|:--:|:--:|:--|
|pyinsights|https://github.com/homoluctus/pyinsights|![Python](https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png)|False|False|The CLI tool to query AWS CloudWatch Logs Insights :mag:|
|ecranner|https://github.com/homoluctus/ecranner|![Python](https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png)|False|False|Scan the vulnerability of Docker images stored in ECR|
Result

Repositories

Total Count: 2

Name URL Language Archived Template Description
pyinsights https://github.com/homoluctus/pyinsights Python False False The CLI tool to query AWS CloudWatch Logs Insights :mag:
ecranner https://github.com/homoluctus/ecranner Python False False Scan the vulnerability of Docker images stored in ECR

Roadmap

  • Ignore filter
  • Output to user-defined template

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ghc-0.1.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ghc-0.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file ghc-0.1.1.tar.gz.

File metadata

  • Download URL: ghc-0.1.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure

File hashes

Hashes for ghc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dd1f5a804861a8c0b8199d1bb4ec50631f3b2f5cf21ff722ab36f130d7fe396d
MD5 7220f4e7ffb4de3d66cf6f199ca579a7
BLAKE2b-256 3b3c85121983f0ee33da4a3491f3973a127de0fb0745d9c3c46e261e1b645270

See more details on using hashes here.

File details

Details for the file ghc-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ghc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure

File hashes

Hashes for ghc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9095101962a9d9061f3c63f50c1276b1e7915d29da89cd087733baed06bfe3e
MD5 e76df02a485b000eada60e9373f9dbe3
BLAKE2b-256 23dc8af74b95a463ae64594555ee1ea72a694eb5801a35aeb492b7da0a4c99d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page