Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 1.18 KB

README.md

File metadata and controls

33 lines (29 loc) · 1.18 KB

Local Development

Environment Setup

  • Clone this repository
  • Initialize your virtual environment (Guide)
    • python -m venv .venv
  • Activate environment:
    • source .venv/bin/activate
  • Install Poetry and the project dependencies:
    • pip install poetry
    • poetry install

Meltano Initial Setup

  • Install extractor:
    • meltano install extractor tap-github
  • Install loaders:
    • meltano install loader target-jsonl
    • meltano install loader target-csv

Create Github Token

  • Visit the Github tokens page
  • Click on the "Generate New Token" button
  • Give it a name, expiration, and permissions to access public repositories only
  • Click on "Generate Token"
  • Copy the token and add it to a .env file
    • TAP_GITHUB_AUTH_TOKEN=token
  • Alternatively, export it to the terminal
    • export TAP_GITHUB_AUTH_TOKEN=token

Run it!

  • Run the following command
    • meltano run tap-github target-jsonl
  • Feel free to modify the meltano.yml in the "select" to modify what to extract