Skip to main content

Analyze your GitHub commit history and generate your Engineer Personality Diagnosis

Project description

git-persona

GitHubのコミット履歴からエンジニアの仕事スタイルを16タイプに診断するCLIツール。

Analyze your GitHub commit history and discover your Engineer Personality Diagnosis.

╭────────────────────────────────────────────────────────────────╮
│                                                                │
│  🕵️  The Shadow Debugger  [SNRT]                               │
│                                                                │
│  Midnight, minimal messages, maximum fixes. You materialise   │
│  in the git log like a ghost, resolve the issue, and vanish   │
│  before anyone asks questions.                                 │
│                                                                │
│  Verdict: Forensics teams would love your diffs.              │
│           Your commit messages, not so much.                  │
│                                                                │
╰────────────────────────────────────────────────────────────────╯

インストール / Installation

pip install git-persona-cepi

使い方 / Usage

GitHubトークンの取得

  1. https://github.com/settings/tokens を開く
  2. Generate new token (classic) をクリック
  3. repo スコープにチェックを入れてトークンを発行
  4. 発行されたトークン(ghp_ で始まる文字列)をコピー

gh CLI を使っている場合はトークン不要です。 gh auth login 済みなら git-persona analyze だけで動きます。

基本の使い方

# 自分のアカウントを診断(プライベートリポジトリも含む)
git-persona analyze --token ghp_XXXXXXXXXX

# gh CLI でログイン済みならトークン不要
git-persona analyze

# 日本語で出力
git-persona analyze --lang ja

# 他のユーザーを診断
git-persona analyze --username torvalds

# 全コミット履歴を対象にする(デフォルトは直近90日)
git-persona analyze --deep

# JSON形式で出力
git-persona analyze --output json

診断タイプ / Personality Types

4つの軸から16タイプを判定します:

左極 右極
S/B Surgeon(小さく精密なコミット) Bulldozer(大きな変更セット)
M/N Morning Lark(昼型) Night Owl(夜型)
P/R Pioneer(新機能志向) Repairman(修正・保守志向)
V/T Verbose(詳細なメッセージ) Terse(簡潔なメッセージ)

例:SNRT = Shadow Debugger、BMPV = Bold Visionary、BNPT = Caffeine-Powered Steamroller


オプション一覧 / Options

--token TEXT              GitHubパーソナルアクセストークン
--username TEXT           診断対象のGitHubユーザー名(省略時: 自分)
--days INTEGER            分析対象の日数 [デフォルト: 90]
--deep                    全コミット履歴を対象にする(--days を無視)
--no-cache                キャッシュを使わず最新データを取得
--output [terminal|json]  出力形式 [デフォルト: terminal]
--lang [en|ja]            出力言語 [デフォルト: en]
--timezone TEXT           時間分析に使うタイムゾーン(例: Asia/Tokyo)
--no-color                カラー出力を無効にする

License

MIT

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

git_persona_cepi-0.1.1.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

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

git_persona_cepi-0.1.1-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: git_persona_cepi-0.1.1.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for git_persona_cepi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 af10e9ba6754de09cb4fb922bc311f80d4150d8763cb59675d38556585e70a62
MD5 1aae30e8ed3d559dd81d14ab5e7a0d71
BLAKE2b-256 6716431c3846b72ba587ddad77c96c7982befbe0ce29c26c6252f77a505a124f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for git_persona_cepi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 226e32eb302c73cae130c5dde881964b02260efc4da6af4cff227242c54060a6
MD5 cf0773fcc42e69aafa6676c1fe76cea6
BLAKE2b-256 1e25ae5bb27030fb3786f054dba142f7cdf384b8699507017cd3ed6fb00af8e4

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