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
    • Specify 'ghc/result.md' as output filename and if 'ghc' does not exist, create new directory

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
Result
{
  "count": 11,
  "repositories": [
    {
      "description": null,
      "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": "algorithms",
      "url": "https://github.com/homoluctus/algorithms"
    },
    {
      "description": "Sample for logging decorator",
      "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": "decolog",
      "url": "https://github.com/homoluctus/decolog"
    },
    {
      "description": "This tool helps to migrate DynamoDB to MySQL",
      "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": "dymy",
      "url": "https://github.com/homoluctus/dymy"
    },
    {
      "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"
    },
    {
      "description": "List up GitHub user / org repositories filtered by topics (ghc = GitHub Collector)",
      "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": "ghc",
      "url": "https://github.com/homoluctus/ghc"
    },
    {
      "description": "Python logging outputs as JSON",
      "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": "json-pyformatter",
      "url": "https://github.com/homoluctus/json-pyformatter"
    },
    {
      "description": "Analysis tool for Postfix log in /var/log/maillog",
      "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": "maillogger",
      "url": "https://github.com/homoluctus/maillogger"
    },
    {
      "description": "Notify today's wether information",
      "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": "ohtenki",
      "url": "https://github.com/homoluctus/ohtenki"
    },
    {
      "description": "Audit action for python dependencies (requirements.txt, Pipfile and poetry.lock)",
      "is_archive": false,
      "is_template": false,
      "language": "Shell",
      "language_logo_url": null,
      "name": "pip-audit-action",
      "url": "https://github.com/homoluctus/pip-audit-action"
    },
    {
      "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": "GitHub template for Python3.8",
      "is_archive": false,
      "is_template": true,
      "language": "Makefile",
      "language_logo_url": null,
      "name": "python-template",
      "url": "https://github.com/homoluctus/python-template"
    }
  ]
}

Output Markdown

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

Total Count: 11

|Name|URL|Language|Description|
|:--:|:--:|:--:|:--|
|algorithms|https://github.com/homoluctus/algorithms|![Python](https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png)|None|
|decolog|https://github.com/homoluctus/decolog|![Python](https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png)|Sample for logging decorator|
|dymy|https://github.com/homoluctus/dymy|![Python](https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png)|This tool helps to migrate DynamoDB to MySQL|
|ecranner|https://github.com/homoluctus/ecranner|![Python](https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png)|Scan the vulnerability of Docker images stored in ECR|
|ghc|https://github.com/homoluctus/ghc|![Python](https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png)|List up GitHub user / org repositories filtered by topics (ghc = GitHub Collector)|
|json-pyformatter|https://github.com/homoluctus/json-pyformatter|![Python](https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png)|Python logging outputs as JSON|
|maillogger|https://github.com/homoluctus/maillogger|![Python](https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png)|Analysis tool for Postfix log in /var/log/maillog|
|ohtenki|https://github.com/homoluctus/ohtenki|![Python](https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png)|Notify today's wether information|
|pip-audit-action|https://github.com/homoluctus/pip-audit-action|Shell|Audit action for python dependencies (requirements.txt, Pipfile and poetry.lock)|
|pyinsights|https://github.com/homoluctus/pyinsights|![Python](https://cdn.jsdelivr.net/npm/programming-languages-logos/src/python/python_24x24.png)|The CLI tool to query AWS CloudWatch Logs Insights :mag:|
|python-template ![template](https://img.shields.io/badge/template-green.svg)|https://github.com/homoluctus/python-template|Makefile|GitHub template for Python3.8|

> Generated by [ghc](https://github.com/homoluctus/ghc)
Result

Repositories

Total Count: 11

Name URL Language Description
algorithms https://github.com/homoluctus/algorithms Python None
decolog https://github.com/homoluctus/decolog Python Sample for logging decorator
dymy https://github.com/homoluctus/dymy Python This tool helps to migrate DynamoDB to MySQL
ecranner https://github.com/homoluctus/ecranner Python Scan the vulnerability of Docker images stored in ECR
ghc https://github.com/homoluctus/ghc Python List up GitHub user / org repositories filtered by topics (ghc = GitHub Collector)
json-pyformatter https://github.com/homoluctus/json-pyformatter Python Python logging outputs as JSON
maillogger https://github.com/homoluctus/maillogger Python Analysis tool for Postfix log in /var/log/maillog
ohtenki https://github.com/homoluctus/ohtenki Python Notify today's wether information
pip-audit-action https://github.com/homoluctus/pip-audit-action Shell Audit action for python dependencies (requirements.txt, Pipfile and poetry.lock)
pyinsights https://github.com/homoluctus/pyinsights Python The CLI tool to query AWS CloudWatch Logs Insights :mag:
python-template template https://github.com/homoluctus/python-template Makefile GitHub template for Python3.8

Generated by ghc

Use GHC_TOKEN instead of --token option

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghc-0.1.7.tar.gz
  • Upload date:
  • Size: 10.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.7.tar.gz
Algorithm Hash digest
SHA256 2671514f55ddc30e167ff2807a6a2d7732643c4070d3d222b890f615b6ae8325
MD5 6e2db14889c097b1c3e95466934f330a
BLAKE2b-256 4aaecdb0d60bcdbb965dbb08e7243c610b58565ff1016abc5bdc59f2693a5271

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ghc-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5cc6b915a26903726bf2e3276f2384de87895be3362502fd437ecb7e9ddad804
MD5 389235c1bd254fc6b7e58af87d361e95
BLAKE2b-256 b1d4bce67202a49d546526bfb63e041638a81091eb76ed4a9650e626c1ad0031

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