Convert any document.
python setup.py install
python run.py
or using gunicorn:
gunicorn chalupas:app
POST /convert/
Parameter | Type | Required |
---|---|---|
document | file or string | yes |
from | string | yes |
to | string | yes |
curl -F "document=@tests/fixtures/demo.docx" --form "from=docx" --form "to=html" 127.0.0.1:5000/convert/
curl -F "document=#This is a test" --form "from=md" --form "to=docx" 127.0.0.1:5000/convert/
file
HTML | MD | RST | DOCX | |
---|---|---|---|---|
HTML | x | yes | yes | yes |
MD | yes | x | yes | yes |
RST | yes | yes | x | yes |
DOCX | yes | yes | yes | x |
python setup.py test
Before start to deploying you need to have root access into a remote server using SSH with a public key.
Install ansible and run:
cp deploy/hosts.example hosts
vim hosts # add your remote server
ansible-playbook -i hosts deploy/site.yml