KTP (Kernel Transfer Protocol) is a Rust application designed to manage kernel file transfers and Git repository operations. It supports multiple transfer protocols and integrates kernel configuration and compilation tools.
- SCP (via SSH): Securely transfer kernel files using SCP.
- HTTP/HTTPS: Download kernel files over HTTP or HTTPS.
- FTP: Transfer files using FTP with optional username and password.
- Clone, fetch, and sync Git repositories.
- Supports commit messages, author info, and pushing changes.
- Run the
KTP.mkinstallation script to set up the kernel environment. - Launch
make menuconfigkernel configuration interface. - Optionally auto-compile the kernel after configuration.
- Automatically trigger kernel compilation after file transfer or configuration.
- SCP (SSH-based secure file transfer)
- FTP (with optional credentials)
- HTTP/HTTPS
- Git Fetcher (Git operations support)
# Transfer kernel files via SCP
ktp scp --source=path/to/source --dest=/path/to/destination --username=your_username
# Transfer kernel files via HTTP
ktp http --source=http://example.com/kernel --dest=/path/to/destination
# Fetch from Git repo and optionally push changes
ktp git --source=https://github.com/user/repo.git --local-path=/local/repo --push=true- Specify the transfer protocol (SCP, HTTP, FTP, Git) via CLI.
- Transfer kernel files or perform Git operations.
- Launch kernel configuration interface (
make menuconfig) post-transfer. - Trigger automatic kernel compilation if enabled.
A Python application combining RepoWatcher and AIAnalyzer for monitoring repositories and analyzing them in real-time or offline. Supports FTP, SCP, HTTP, and local directory monitoring.
- Monitors repositories or directories for changes.
- Supports SCP, FTP, HTTP/HTTPS, and local directories.
- Offers livestream or offline modes for repository changes.
- Performs AI-based analysis on repository contents.
- Supports livestream analysis for HTTP/HTTPS repositories.
- Can analyze local directories in offline mode.
- Commands like
startbegin AI analysis. exitterminates the program.
# Run RepoWatcher and AIAnalyzer for livestream HTTP repo
python3 main.py --uri http://example.com/repo --stream-type livestream- Monitor repository or local directory using RepoWatcher.
- Analyze repository content based on stream type:
- Offline: Local directory analysis.
- Livestream: Live HTTP/HTTPS stream analysis.
- User commands (
start,exit) control analysis lifecycle.
- Single mode: Monitor and analyze a single Git repository URL.
- Multiple mode: Monitor and analyze multiple Git repositories simultaneously.
Example for multiple mode:
aipropengine_ktp --uri https://github.com/Zamanhuseyinli/KTP --stream-type offlinestream --mode multipleThis saves repositories under gitroot_multi for collective AI analysis.
Both the Rust-based KTP and Python-based RepoWatcher/AIAnalyzer can be combined for a smooth kernel development workflow.
- Kernel Transfer with KTP
- Transfer kernel files via SCP, FTP, or HTTP using KTP.
- Repo Monitoring with RepoWatcher
- Run Python RepoWatcher to monitor the transferred repo for changes.
- AI Analysis with AIAnalyzer
- Once RepoWatcher detects changes, AIAnalyzer performs analysis on the updated kernel or project files.
# Step 1: Transfer kernel files via KTP (SCP example)
ktp scp --source=path/to/source --dest=/path/to/destination --username=your_username
# Step 2: Monitor repo changes using RepoWatcher (livestream)
python3 main.py --uri scp://remotehost/repo --stream-type livestream
# Step 3: AI analysis triggered automatically upon detected changes- Unified CLI: Combine Rust KTP and Python RepoWatcher CLI for a streamlined user experience.
- Cloud Integration: Monitor cloud repositories (GitHub, GitLab) and trigger AI analysis.
- Extended Protocol Support: Add SFTP and other protocols.
- Continuous Integration (CI): Automate AI analysis after each transfer or commit.
git clone https://github.com/Zamanhuseyinli/ktp.git
cd ktp
cargo build --release
pip install -r requirements.txt
python setup.py install
aipropengine_ktp --helppip install -r requirements.txt
python Makemanifest- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
This project is licensed under the GPLv2 License. See the LICENSE file for details.
