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!

With orgco you can convert Emacs' orgmode to other formats.

Project Description

With orgco you can convert Emacs’ orgmode to other formats.

Supported output formats:

  • HTML
  • reStructuredText (rst)

Supported orgmode tags:

  • headers
  • code (inline and multi-line)
  • lists (ordered, unordered and definition lists)
  • tables
  • links (external and images)
  • italic, bold, underlined, stroked markups

To use orgco install it from PyPI:

$ pip install orgco

Orgco provides 2 simple functions to convert orgmode to html (convert_html()) and rst (convert_rst()).

from orgco import convert_html

with open('my_orgmode.org') as f:
    html = convert_html(f.read())
print(html)

The HTML converter takes some optional parameters:

  • header=True: To decide if the output should only contain the inner body or act as a normal HTML file with header and body.
  • highlight=True: To enable code highlighting.
  • includes=['style.css']: To include some additional CSS files.

Orgco comes also with a command line tool:

usage: orgco.py [-h] -i INPUT -o OUTPUT -f FORMAT [--header] [--highlight]
                [--includes INCLUDES [INCLUDES ...]]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
  -o OUTPUT, --output OUTPUT
  -f FORMAT, --format FORMAT
  --header
  --highlight
  --includes INCLUDES [INCLUDES ...]

Copyright (c) 2013-2015, Friedrich Paetzke (paetzke@fastmail.fm). All rights reserved.

Release History

Release History

This version
History Node

0.2.0

History Node

0.1.1

History Node

0.0.11

History Node

0.0.10

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
orgco-0.2.0-py2.py3-none-any.whl (9.6 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Aug 15, 2015
orgco-0.2.0.tar.gz (6.8 kB) Copy SHA256 Checksum SHA256 Source Aug 15, 2015

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