XY manages document and spreadsheet formats as text.
XY is a convention and tool for storing document and spreadsheet data in text files while maintaining support for editing in traditional .docx
and .xlsx
programs.
Text files are great because they be stored in verson control and diffed/branched/merged/etc. But sometimes there is a need or precident for supporting traditional document and spreadsheet formats. Unfortunately, these formats do not play nice with version control. That's where XY comes in.
Create a new document or spreadsheet:
$ xy MyDocument.docxy
$ xy MySpreadsheet.xlsxy
Or convert an exsting file to the XY format:
$ xy --convert MyDocument.docx
$ xy --convert MySpreadsheet.xlsx
When editing, the file will be opened using the associated .docx
or .xlsx
editor:
$ xy MyFile.docxy
- Python 3.3: http://www.python.org/download/releases/3.3.4/#download
- an
.xlsx
or.docx
editor
XY can be installed with pip
:
pip install XY
Or directly from the source code:
python setup.py install
After installation, use the command-line interface:
$ xy --help
- GNU Make:
- Windows: http://cygwin.com/install.html
- Mac: https://developer.apple.com/xcode
- Linux: http://www.gnu.org/software/make (likely already installed)
- virtualenv: https://pypi.python.org/pypi/virtualenv#installation
- Pandoc: http://johnmacfarlane.net/pandoc/installing.html
Create a virtualenv:
make env
Run the tests:
make test
make tests # includes integration tests
Build the documentation:
make doc
Run static analysis:
make pep8
make pylint
make check # pep8 and pylint
Prepare a release:
make dist # dry run
make upload