1 Star 0 Fork 0

DJ / psydiff

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
Yin Wang 提交于 2016-10-12 22:31 . remove sourcegraph picture

psydiff

a structural comparison tool for Python

Psydiff is a structural differencer for Python. It parses Python into ASTs, compare them, and then generate interactive HTML.

Demo

A demo of Psydiff's output (Psydiff diffing itself over a recent big change) can be found here:

http://www.yinwang.org/resources/pydiff1-pydiff2.html

Installation

  1. Copy the whole directory to somewhere in your file system
  2. Add the path to the system's "PATH variable"

Usage

Just run psydiff.py from the command line:

./psydiff.py demos/list1.py demos/list2.py

This will generate a HTML file named list1-list2.html in the current directory. You can then use your browser to open this file and browse around the code.

The HTML is a standalone entity (CSS styles and JavaScript embedded). You can put it anywhere you like and still be able to view it.

Contact

Yin Wang (yinwang0@gmail.com)

License (GPLv3)

psydiff - a structural comparison tool for Python

Copyright (c) 2011-2014 Yin Wang

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dang050/psydiff.git
git@gitee.com:dang050/psydiff.git
dang050
psydiff
psydiff
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891