Skip to main content
==================================
Works 4.x to Word Python Converter
==================================

General
=======
Works 4.x to Word Python Converter bulk converts those ancient archaic Microsoft Works Word Processor 4.x (.wps) files to Microsoft Word 2007 format (.docx). If run with no arguments it will just create the converted file beside each processed file with the same name except the extension. The script does NO changes to the existing files unless you specifically tell it to (see *Usage*).

Requirements
============
`Python 2.7x<http://www.python.org/download>`_ and the following Python packages (but if you use Easy_Install or PIP you don't need to worry about these - they'll be automagically installed for you):
1. `Python Docx<http://pypi.python.org/pypi/docx/0.1.2>`_
2. `PIL (Python Image Library)<http://pypi.python.org/pypi/PIL/1.1.6>`_
3. `LXML<http://lxml.de/installation.html>`_ (or many might prefer a `exe installer<http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml>`_)
4. `Send2Trash<http://pypi.python.org/pypi/Send2Trash/1.2.0>`_
5. `Python dateutil<http://pypi.python.org/pypi/python-dateutil/2.1>`_

Installation
===========
**Special note for Windows users:** Unfortunately most Windows system aren't be set up to build & install LXML from the source so unless you know otherwise just presume that it will be *much* easier to manually download and run the `LXML exe installer<http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml>`_ and do that first before proceeding with installation.

Installation via PIP::
pip install works-4x-to-word-python-converter
or Easy_Install::
easy_install works-4x-to-word-python-converter
is suggestioned (PIP more so since it is a better python package installation solution). You can also download the source files, eggs or for Windows users a nice executable installer from here.

Usage
=====
If you have your Python scrips dir in your path (which you really should) usage is very simple::
works_to_word.py -S C:\source\files
(Replacing C:\source\files with the actual location of the source files of course)
If it isn't set you just have to include the full path which on Windows with Python 2.7x defaults to C:\Python27\Scripts like so::
C:\Python27\Scripts\works_to_word.py -S C:\source\files
Or if you have multiple python versions installed and you want to use a non-default one::
C:\Python27\Python.exe C:\Python27\Scripts\works_to_word.py -S C:\source\files

Source location is not the only option you have; there are half a dozen arguments you can use::
-h, --help show this help message and exit
-S SOURCEPATH, --sourcePath=SOURCEPATH
Set the source path to process, if unset defaults to
location from which program is run
-D DESTPATH, --destPath=DESTPATH
Set the destination path to save processed files to,
if unset defaults to saving beside the existing files
--delete Deletes the source files after processing - ARE YOU
SURE YOU WANT TO DO THIS?!
-A, --archive Archive the source files after processing - but
doesn't delete them, consider using with the dangerous
--delete flag
-d, --debug If called with the --debug flag instead of just
warning that a file failed will raise the error so
that you can debug it properly - or send problematic
file to nick.wilde.90@gmail.com


Changelog
=========

Version 2.0.1:
Added readme
Fixed packaging error that distribute_setup.py wasn't automatically being included so for some systems it could not be found and hence installation would fail.
Added LICENCE.txt to package.
Added python-dateutil to requirements since with the latest version of Python docx it is required but the package for python-docx does not automatically include it even when used with PIP or Easy_Install.

Version 2.0.0:
Created proper python package
Added command line argument processing
-h/--help
-S/--sourcePath
-D/--destPath
--delete
-A/--archive
-d/--debug
Improved error handling

Versions <= 1.0 2011-2012 quick and dirty script to do a needed job on the double.

Future Plans
============
No plan for timing but possible future plans may include:
GUI
Option to scan inside archives for sourcefiles

Acknowledgements
================

Thanks to Guido et al for the awesome language that Python is.
Thanks to the authors of all the required packages that enable this to actually do something.
Thanks to Wrye (of The Elder Scrolls IV Oblivion fame) for my first python hints/suggestions/'that's not the best way to do it' (and the amazing program that is Wrye Bash)
Thanks to Amorilia for all his suggestions of improvement to my python code over the years

Release files for Works-4x-to-Word-Python-Converter 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Works-4x-to-Word-Python-Converter 2.0.1
File Size Uploaded
Works-4x-to-Word-Python-Converter-2.0.1.zip 16.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for Works-4x-to-Word-Python-Converter 2.0.1
File
Works_4x_to_Word_Python_Converter-2.0.1-py2.7.egg Legacy Egg format - - Details
Works_4x_to_Word_Python_Converter-2.0.1-py2.6.egg Legacy Egg format - - Details
Works-4x-to-Word-Python-Converter-2.0.1.win32.msi Details
Works-4x-to-Word-Python-Converter-2.0.1.win32.exe Details

Total release size: 419.8 kB

Release files / Works-4x-to-Word-Python-Converter-2.0.1.zip

Download URL Works-4x-to-Word-Python-Converter-2.0.1.zip
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2376034e2b2a981cbab4f781e2e7150c44fcdf0c7dd478823969f0d333f1dc1a
BLAKE2b-256 checksum
How to use checksums
50ea96ebe533bc2f7e7de79d81f7bc5c9bc4ef4110451cadee19108e18f33b5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Works_4x_to_Word_Python_Converter-2.0.1-py2.7.egg

Download URL Works_4x_to_Word_Python_Converter-2.0.1-py2.7.egg
Size 17.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
e3789eed70a0ed6b02bcd75735e1198bf9fa96fdb94f0c6e09c2aeff8b289d33
BLAKE2b-256 checksum
How to use checksums
308582c97f4fdbedf8acc8b92ddcca9bcfc9a8923237bf1c97792af2aeb6ee61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Works_4x_to_Word_Python_Converter-2.0.1-py2.6.egg

Download URL Works_4x_to_Word_Python_Converter-2.0.1-py2.6.egg
Size 15.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
936eca96e499e98b206f615530a5a629624918276ddd22919df122b9626d12e8
BLAKE2b-256 checksum
How to use checksums
2dd42b0bb9c4f21966a3723ccaa55cfa8057a22fb08b255752691d63c04614c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Works-4x-to-Word-Python-Converter-2.0.1.win32.msi

Download URL Works-4x-to-Word-Python-Converter-2.0.1.win32.msi
Size 163.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7f023f5e5b5d6a9e01303d9f7fce70ec06a62a37205f93cc9e6963b0592a5166
BLAKE2b-256 checksum
How to use checksums
c27e4f78f0cdc08e0f23b443aa99f81cf1dd4ccd33d70d2313b212300e691dc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Works-4x-to-Word-Python-Converter-2.0.1.win32.exe

Download URL Works-4x-to-Word-Python-Converter-2.0.1.win32.exe
Size 207.9 kB
Tags Source
SHA-256 checksum
How to use checksums
aeaac1161d017a030604e08d70a8e49bcec87000483a3a73db77baed73e850f0
BLAKE2b-256 checksum
How to use checksums
6e050f9617f00edea9649a5ddb11e44d4494bec1bc0561e3f824d6054b26f2e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.0.1 This release

5 release files

2.0.0

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page