Metadata-Version: 2.4
Name: lupaxa-github-intel
Version: 0.1.0
Summary: Monitor an explicit collection of GitHub repositories from the local machine.
Author: The Lupaxa Project
Maintainer: The Lupaxa Project
License-Expression: MIT
Project-URL: Homepage, https://github.com/lupaxa-gh-toolbox/github-intel
Project-URL: Documentation, https://github-intel.thelupaxaproject.org/
Project-URL: Repository, https://github.com/lupaxa-gh-toolbox/github-intel
Project-URL: Issues, https://github.com/lupaxa-gh-toolbox/github-intel/issues
Keywords: cli,github,github-intel,python,toolbox
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENCE
Requires-Dist: aiosqlite<1,>=0.20
Requires-Dist: httpx<1,>=0.28
Requires-Dist: platformdirs<5,>=4
Requires-Dist: pydantic<3,>=2.10
Requires-Dist: rich<15,>=14
Requires-Dist: ruamel.yaml<0.19,>=0.18
Requires-Dist: textual<9,>=3
Requires-Dist: typer<1,>=0.15
Provides-Extra: dev
Requires-Dist: build<2.0.0,>=1.2.2; extra == "dev"
Requires-Dist: mkdocs==1.6.1; extra == "dev"
Requires-Dist: mkdocs-material==9.7.7; extra == "dev"
Requires-Dist: mypy<2.0.0,>=1.17.0; extra == "dev"
Requires-Dist: pre-commit<5.0.0,>=4.2.0; extra == "dev"
Requires-Dist: pytest<9.0.0,>=8.4.0; extra == "dev"
Requires-Dist: pytest-asyncio<2,>=1.5; extra == "dev"
Requires-Dist: pytest-cov<7.0.0,>=6.2.0; extra == "dev"
Requires-Dist: respx<1,>=0.22; extra == "dev"
Requires-Dist: ruff<1.0.0,>=0.12.0; extra == "dev"
Requires-Dist: twine<7.0.0,>=6.1.0; extra == "dev"
Requires-Dist: types-setuptools<81.0.0,>=80.1.7; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest>=8.4; extra == "test"
Requires-Dist: pytest-asyncio<2,>=1.5; extra == "test"
Requires-Dist: pytest-cov>=5.0; extra == "test"
Requires-Dist: respx<1,>=0.22; extra == "test"
Dynamic: license-file

<p align="center">
  <a href="https://github.com/lupaxa-gh-toolbox">
    <img src="https://raw.githubusercontent.com/the-lupaxa-project/brand-assets/master/logos/organisations/gh-toolbox/readme-logo.png" alt="The Lupaxa Project: GitHub Toolbox" />
  </a>
</p>

<h1 align="center">GitHub Intel</h1>

**GitHub Intel** monitors an explicit list of GitHub repositories. It stores the results locally and can show them without a network connection. Groups organise the list. Profiles decide which checks run.

## Features

- An explicit repository list. Nothing is discovered.
- Profiles for releases, workflows, issues, pull requests, and quality.
- Profile inheritance. An explicit false overrides an inherited true.
- A local SQLite cache, so lists and reports work offline.
- Release and workflow checks, without a file inventory or an issues list.
- Human tables, JSON, CSV, and Markdown.
- A terminal interface for the same cached view.
- Dates in a configurable pattern. The default is `DD/MM/YYYY HH:mm UTC`.
- Authentication through the GitHub CLI. The token is not stored.

## Installation

Install the latest release from PyPI.

```bash
pip install lupaxa-github-intel
```

Verify the installation.

```bash
github-intel --version
```

Private repositories use the GitHub CLI login:

```bash
gh auth login
```

## Quick Start

The first `repo add` creates `~/.config/github-intel/`.

```bash
github-intel repo add owner/name --group examples --profile upstream
github-intel config validate
github-intel sync
github-intel repo list
github-intel repo show owner name
```

`github-intel` with no arguments opens the terminal interface when the terminal is interactive.

## Command-Line Interface

`github-intel repo list` reads the cache. `github-intel sync` is the command that calls GitHub.

### Repositories

| Command                                            | Description                                      |
| -------------------------------------------------- | ------------------------------------------------ |
| `github-intel repo add OWNER/NAME`                 | Add a repository. This does not call GitHub      |
| `github-intel repo list`                           | Show the cached table                            |
| `github-intel repo show ORG REPO`                  | Show one repository                              |
| `github-intel repo set-profile OWNER/NAME PROFILE` | Choose the checks for one repository             |

### Synchronisation and Reports

| Command                          | Description                                      |
| -------------------------------- | ------------------------------------------------ |
| `github-intel sync`              | Refresh stale or missing information             |
| `github-intel sync --force`      | Ignore cache freshness and `sync.interval`       |
| `github-intel report`            | Write a Markdown report                          |
| `github-intel audit`             | Show repositories with failing checks            |

### Configuration

| Command                          | Description                                      |
| -------------------------------- | ------------------------------------------------ |
| `github-intel config init`       | Write the default files. `--force` overwrites    |
| `github-intel config validate`   | Load the files and report the repository count   |
| `github-intel config paths`      | Print configuration and cache paths              |
| `github-intel profile show NAME` | Show the effective checks                        |

> **Note:** `--config FILE` selects a different main file. Without it, the files are `config.yml`, `profiles.yml`, and `repositories.yml` in `~/.config/github-intel/`.

## Documentation

Online documentation:

[https://github-intel.thelupaxaproject.org/](https://github-intel.thelupaxaproject.org/)

Serve the docs locally:

```bash
make init
make python-install-dev
make mkdocs-serve
```

## Development

Install makefile skills, then the development extra:

```bash
make init
make python-install-dev
```

Lint, type-check, and test:

```bash
make python-check
```

<a href="https://github.com/the-lupaxa-project">
    <img src="https://raw.githubusercontent.com/the-lupaxa-project/brand-assets/master/logos/components/footer-for-child-orgs.svg" alt="The Lupaxa Project Footer" width="100%" />
</a>
