Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

InkPy - provide tool to fill Django style template in odt file

Project Description

Django app provide interface to fill Django style template in odt file, and additionally convert odt to pdf file. Can be run synchronously or asynchronously mode.

Configurations

This tool provide interface to fill Django style template in odt file. Your task is to provide a python script which takes 2 arguments: odt file path, and the path to save the file pdf.

The recommended way is to use the services LibreOffice / OpenOffice.org, which provides conversion from odt file to pdf from the console or Python script.

We recommend to use the library PyODConverter: https://github.com/dieselpoweredkitten/pyodconverter

We need also to define the value in the configuration file, and add the application to INSTALLED_APPS:

INKPY = {
    'script_path': '/path/to/your/convert/script.py',
    'tmp_dir': '/tmp/inkpy'
}
INSTALLED_APPS = INSTALLED_APPS + ['inkpy',]

To install LibreOffice in Ubuntu use:

$ sudo apt-get install libreoffice libreoffice-common openjdk-7-jre unoconv

To run LibreOffice service use:

$ soffice --nologo --headless --nofirststartwizard --accept='socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;StarOffice.Service'

Change Log

0.1.0-alpha

Released on June 3, 2014

This is the feature relese.

  • expanded generate_pdf function with locale param,
  • travis-ci support,

0.0.2-alpha

Released on May 14, 2014

This is the bugfix release.

  • bugfix installation error,

0.0.1-alpha

Released on March 14, 2014

This is the alpha release of Inkpy.

  • alpha release
Release History

Release History

This version
History Node

0.1.0-alpha

History Node

0.0.2-alpha

History Node

0.0.1-alpha

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
inkpy-0.1.0-alpha.tar.gz (7.3 kB) Copy SHA256 Checksum SHA256 Source Jun 3, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting