This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

# Plankton - html to pdf REST service

Uses wkhtmltopdf as backend. Only works with python 3.5 or greater.

Enspired by: https://github.com/openlabs/docker-wkhtmltopdf and https://github.com/incuna/django-wkhtmltopdf.

## Installation 1. `pip install plankton` 2. download and install wkhtmltopdf http://wkhtmltopdf.org/downloads.html. 3. Run server“`plankton-server“`

If you want to run in docker container:

  1. Clone repo `git clone git@github.com:django-stars/plankton.git`
  2. `cd plankton`
  3. Build docker image `docker build -t plankton .`
  4. Run container `docker run -p 9003:8080  plankton`.

You can specify wkhtmltopdf command and port: `plankton-server --wkhtmltopdf_command '/usr/local/bin/wkhtmltopdf' --port 9000`

## Usage

POST `http://127.0.0.1:9003/html-to-pdf/`

DATA `{"page": "http://google.com.ua"}`

You can provide wkhtmltopdf options:

DATA `{"page": "http://google.com.ua", "options": {"javascript-delay": 2000, "cookie": [["key1","val1"], ["key2", "val2"]]}}`

## TODO Project currently under developing and there are lot of things to do:

  1. debug mode
  2. HTTP OPTIONS
  3. logging
  4. security
Release History

Release History

0.1.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
plankton-0.1.2.tar.gz (5.2 kB) Copy SHA256 Checksum SHA256 Source Sep 30, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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