Skip to main content


Project description

Translates one or many Text/Markdown/Rest/HTML to html with bootstrap and opens the browser for you.


Install it throught pip:

pip install txt2bootstrap

Or, if you want to hack on this repo:

git clone
python install

Threre’s no requirement, unless you want to view markdown or ReST files, which if you do, you’ll need to install each needed module:

Markdown files -> Markdown
ReST files     -> docutils

If you don’t have any of them, the script will fallback to simple text, printing it directly (if there’s any html, it will be shown prettier by your browser).

If you have a problem with the selected browser, change the env var $BROWSER to the browser that you want to be opened.

How to use

One file:


Multiple files:

txt2bootstrap file.rst file.txt #...

Ways to use it

Joe is a writter who likes markdown and is not afraid of the terminal, so he writes his markdown file and previews it using this script, to check if he still remembers how to bold a word.

Rose is a front-end developer who wants a quick and dirty prototype, so she will write a simple html file not caring about the <body> or <head> tags or any of that gibberish and then view it using this script.

Michael is a pro developer who stumbled upon this script and actually found a bug so fixed it and sent a pull request.

Project details

Download files

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

Files for txt2bootstrap, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size txt2bootstrap-1.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page