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. Use the environment variable "GHC_TOKEN" instead.
  -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

Use GHC_TOKEN

GHC_TOKEN=xxxxxxxx ghc homoluctus -f json -t python aws

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.3.tar.gz (8.5 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.3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghc-0.1.3.tar.gz
  • Upload date:
  • Size: 8.5 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.3.tar.gz
Algorithm Hash digest
SHA256 f7c5ebd04c9b48d470d3759a98d52e6a633320e8484be4a0ae5c02cc8722f16e
MD5 f55b357ef96ec2c626383d56228a044f
BLAKE2b-256 5728725a1b8d88afe57701d211f6b5ec6d8876098c677b7b78a5e2e7fb337222

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ghc-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5fc44dd365126821e2c9daf26fa5938eb913a3528b47014d24d4d2f22894994a
MD5 9c0bff6d8082b5ae56154547a39b7f40
BLAKE2b-256 76a27775175cb301ff3aaa63bc6feaada72ac8caea3340ad9a863db43de7446f

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