██████╗ ██╗ ██╗ █████╗ ██████╗ ██████╗ ██╗ █████╗ ███╗ ██╗
██╔════╝ ██║ ██║██╔══██╗██╔══██╗██╔══██╗██║██╔══██╗████╗ ██║
██║ ███╗██║ ██║███████║██████╔╝██║ ██║██║███████║██╔██╗ ██║
██║ ██║██║ ██║██╔══██║██╔══██╗██║ ██║██║██╔══██║██║╚██╗██║
╚██████╔╝╚██████╔╝██║ ██║██║ ██║██████╔╝██║██║ ██║██║ ╚████║
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝
Git User Authentication & Repository Development Interface Assistant & Navigator
🔒 Secure Authentication Management
- SSH key generation and management
- Personal Access Token secure storage
- GitHub CLI credential management
- System keyring integration
🧩 Configuration Management
- Git config backup and restore
- SSH key backup with encryption
- Automated config migration
🧪 Code Quality Tools
- Pre-commit hook automation
- Code formatting with black
- Import sorting with isort
- Type checking with mypy
📊 Security Features
- Audit logging for auth events
- Key rotation management
- Configurable security levels
- Encrypted backup storage
pip install guardian-git
git clone https://github.com/yourusername/guardian.git
cd guardian
pip install -e ".[dev]"
# Initialize Guardian
guardian init
# Setup SSH authentication
guardian auth setup-ssh
# Configure GitHub tokens
guardian auth setup-github
# Install pre-commit hooks
guardian hooks install
# Format code
guardian format .
# Run all checks
guardian check
# Backup current configuration
guardian backup create
# Restore from backup
guardian backup restore <backup-name>
# Rotate SSH keys
guardian auth rotate-keys
guardian init
: Initialize Guardian in current directoryguardian auth
: Authentication management commandsguardian format
: Code formatting commandsguardian hooks
: Pre-commit hook managementguardian backup
: Configuration backup commandsguardian check
: Run all configured checks
guardian/
├── auth/
│ ├── setup-ssh # SSH key setup
│ ├── setup-github # GitHub token setup
│ └── rotate-keys # Key rotation
├── format/
│ ├── run # Run formatters
│ └── check # Check formatting
└── hooks/
├── install # Install pre-commit hooks
└── update # Update hook configurations
Guardian can be configured via guardian.yaml
in your project root:
security:
level: enhanced # basic, enhanced, or paranoid
backup_encryption: true
audit_logging: true
formatting:
black_enabled: true
isort_enabled: true
mypy_enabled: true
hooks:
pre_commit:
- black
- isort
- mypy
Contributions are welcome! Please see our Contributing Guide for details.
- Clone the repository
- Install development dependencies:
pip install -e ".[dev]"
- Install pre-commit hooks:
pre-commit install
- Run tests:
pytest
MIT License - see LICENSE for details.