Repository navigation
Releases
PTGit v0.1.1
Clearer CLI output and documentation, with updated GitHub Actions dependencies.
Changes
- Reworked the README and guides around installation, commands, and pull request setup.
- Simplified CLI help, lint findings, and error messages.
- Removed publishing guides, validation logs, generated demos, and duplicate release notes.
- Moved lab fixtures into
tests/fixtures. - Updated GitHub Actions dependencies to Node.js 24, removed the unused PyPI publishing job, and stopped duplicate test runs on tags.
Install or upgrade
python -m pip install --upgrade "git+https://github.com/ivanimmanuel-dev/PTGit.git@v0.1.1"
ptgit init --forceFor GitHub workflows:
- uses: ivanimmanuel-dev/PTGit@v0.1.1Validation
All 59 tests pass on Windows and Linux with Python 3.10–3.14. Checks also cover fresh installations, staged and unstaged Git diffs, package builds, and the Action's report upload.
Downloads include a Python wheel, source archives, and SHA256SUMS.txt.
PTGit v0.1.0
PTGit brings readable Git diffs to Cisco Packet Tracer labs. Compare two .pkt saves to see changes to device configurations, IP addresses, VLANs, interfaces, and cables.
Included in v0.1.0
- Readable diffs: compare saved labs directly or use normal
git diffandgit diff --cached. - Lab inspection: view configuration and topology with
ptgit show. - Static checks: find common configuration problems with
ptgit lint. - JSON export: export a deterministic lab snapshot with
ptgit export --json. - GitHub Action: add Packet Tracer diffs and lint findings to workflow summaries, with a downloadable JSON report.
Layout changes, internal save IDs, and runtime counters are ignored. ACL and route-map command order is preserved.
Install
Requires Python 3.10+ and Git.
python -m pip install "git+https://github.com/ivanimmanuel-dev/PTGit.git@v0.1.0"
cd networking-labs
ptgit init
git diff -- lab.pktFor a standalone comparison:
ptgit diff old.pkt new.pktPTGit runs offline with no third-party runtime dependencies. Packet Tracer does not need to be installed to inspect a saved lab.
GitHub Action
name: PTGit
on: [pull_request]
permissions:
contents: read
jobs:
packet-tracer-diff:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: ivanimmanuel-dev/PTGit@v0.1.0Open the workflow's Job Summary to read the diff. See Action options and examples.
Validation and coverage
Tested on Windows and Linux in Packet Tracer 9.0.1.0858.
This version reads .pkt files and compares selected configuration and topology fields. Device renames appear as removal/addition. .pka activities, simulation events, IoT programs, and service settings outside the comparison model are not included. See the comparison rules and validation results.
Downloads
packet_tracer_git-0.1.0-py3-none-any.whl— Python package; install withpython -m pip install <wheel-file>.packet_tracer_git-0.1.0.tar.gz— Python source distribution.packet_tracer_git-0.1.0-source.zip— source, examples, tests, and documentation.SHA256SUMS.txt— checksums for the attached packages.
Report bugs or share lab compatibility results through GitHub Issues.