orgco
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.
Metadata
Release files for orgco 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| orgco-0.2.0.tar.gz | 6.8 kB | Without provenance | Details for orgco-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| orgco-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for orgco-0.2.0-py2.py3-none-any.whl |
Total release size: 16.4 kB
Release files / orgco-0.2.0.tar.gz
| Download URL | orgco-0.2.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fed0b61c0619189785e4cdf1c6802e4e37026e512913baa0be99ec3d7cc7abe
|
|
BLAKE2b-256 checksum How to use checksums |
85f038c64c55e2cf3d9712f934682d73ad33c87593e3e37b6faf7c591c21926e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / orgco-0.2.0-py2.py3-none-any.whl
| Download URL | orgco-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
322e29ca8a71f0c44f9a10729cc35d59e96257bb0ccf817be8f01e5410ea5c28
|
|
BLAKE2b-256 checksum How to use checksums |
de4c57fe138e37f44b9c5bafb98afbf6c9a5d47e0595658367099aaec761bc3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for orgco 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.