• Stars
    star
    210
  • Rank 187,585 (Top 4 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ReStructuredText viewer

restview

buildstatus appveyor coverage

A viewer for ReStructuredText documents that renders them on the fly.

Pass the name of a ReStructuredText document to restview, and it will launch a web server on localhost:random-port and open a web browser. Every time you reload the page, restview will reload the document from disk and render it. This is very convenient for previewing a document while you're editing it.

You can also pass the name of a directory, and restview will recursively look for files that end in .txt or .rst and present you with a list.

Finally, you can make sure your Python package has valid ReStructuredText in the long_description field by using

restview --long-description

Synopsis

Usage: restview [options] filename-or-directory [...]

-h, --help show this help message and exit
--version show program's version number and exit
-l PORT, --listen=PORT
 listen on a given port (or interface:port, e.g. *:8080) [default: random port on localhost]
--allowed-hosts HOSTS
 allowed values for the Host header (default: localhost only, unless you specify -l *:port, in which case any Host: is accepted by default)
-b, --browser open a web browser [default: only if -l was not specified]
-B, --no-browser
 don't open a web browser
-e COMMAND, --execute=COMMAND
 run a command to produce ReStructuredText on stdout
-w FILENAME, --watch=FILENAME
 reload the page when a file changes (use with --execute); can be specified multiple times
--long-description
 run "python setup.py --long-description" to produce ReStructuredText; also enables --pypi-strict and watches the usual long description sources (setup.py, README.rst, CHANGES.rst)
--css=URL-or-FILENAME
 use the specified stylesheet; can be specified multiple times [default: html4css1.css,restview.css]
--report-level REPORT_LEVEL
 set the "report_level" option of docutils; restview will report system messages at or above this level (1=info, 2=warnings, 3=errors, 4=severe)
--halt-level HALT_LEVEL
 set the "halt_level" option of docutils; restview will stop processing the document when a system message at or above this level (1=info, 2=warnings, 3=errors, 4=severe) is logged
--strict halt at the slightest problem; equivalent to --halt- level=2
--pypi-strict enable additional restrictions that PyPI performs

Installation

On .deb based systems (e.g. Ubuntu)

sudo apt-get install python-pip
sudo pip install restview

On .rpm based systems (e.g. Fedora)

su
yum install python-pip
pip install restview

More Repositories

1

objgraph

Visually explore Python object graphs
Python
686
star
2

profilehooks

Python decorators for profiling/tracing/timing a single function
Python
315
star
3

check-manifest

Tool to check the completeness of MANIFEST.in for Python packages
Python
282
star
4

indicator-netspeed

Stupid network speed indicator for Unity, inspired by the old netspeed GNOME applet
C
104
star
5

findimports

Static analysis of Python import statements
Python
103
star
6

dozer

WSGI middleware for profiling CPU/memory and inspecting logs
Python
89
star
7

irclog2html

Convert IRC logs to HTML
Python
80
star
8

coverage-highlight.vim

Vim plugin to highlight Python source code lines that lack test coverage
Python
56
star
9

strace-process-tree

Tool to help me make sense out of `strace -f` output.
Python
55
star
10

pdf2html

Wrapper for pdftohtml that tries to extract paragraph structure
Python
49
star
11

python-imports.vim

Vim plugin that adds Python import statements semi-automatically
Vim Script
47
star
12

imgdiff

Compare two images side-by-side
Python
44
star
13

ghcloneall

Script to clone/update all user/organization repos from GitHub
Python
36
star
14

check-python-versions

Check that supported Python versions in a setup.py match tox.ini, .travis.yml and a bunch of other files
Python
21
star
15

zodbbrowser

ZODB browser
Python
18
star
16

scripts

My ~/bin
Shell
16
star
17

bootable-iso

Bootable USB disk that lets you choose an ISO image
Python
16
star
18

memgraphinator

Graph the memory usage of a single process
Python
16
star
19

dotvim

My ~/.vim
Vim Script
15
star
20

dotfiles

My personal Linux shell settings
Shell
12
star
21

gitlab-jobs

Show a summary of GitLab job durations
Python
12
star
22

mgp2pdf

MagicPoint to PDF converter
Python
8
star
23

taghelper.vim

vim plugin that shows the current function/tag in the statusline
Python
7
star
24

chelper.vim

Vim plugin that shows the current C function name in the status line
Python
7
star
25

webtreemap-du

Visualize disk usage using web-based treemaps
Python
7
star
26

project-summary

Script to generate a summary page for all my projects.
JavaScript
6
star
27

vboxpanel

Simple webapp to control headless VirtualBox machines
Python
6
star
28

Inupy

Abandoned fork to turn Dozer into Pylons debug tool
JavaScript
5
star
29

pyspacewar

A game with Newtonian mechanics
Python
5
star
30

test-switcher.vim

Vim plugin that switches between code and tests
Python
4
star
31

eazysvn

Subversion branching and merging made a bit easier
Python
4
star
32

gitlab-trace

Show a GitLab pipeline status or job trace
Python
4
star
33

ztk-py3-status

Produce a list of Zope Foundation packages and Python versions they support
Python
3
star
34

source-locator.vim

Vim plugin to find the source line from filename + line number
Python
3
star
35

qml-time-tracker

A prototype user interface of a time tracking application for the Nokia N9
C++
3
star
36

pytag.vim

Vim plugin: a smarter :tag for Python projects
Python
3
star
37

python-project-skel

Reusable Makefile rules for automating Python package releases
Makefile
3
star
38

ppa-copy-packages

Copy Ubuntu PPA packages from one release pocket to another
Python
3
star
39

SnakeMUD

A 48-hour game for the Global Game Jam 2012
JavaScript
2
star
40

ubuntu-images

Makefile that downloads Ubuntu ISO images and verifies them
Makefile
2
star
41

planet-mg

Blogs I read
JavaScript
2
star
42

gedmin.as

Blogofile source for http://gedmin.as/
Mako
2
star
43

py-test-runner.vim

Run (Python) unit tests under cursor
Python
2
star
44

adventofcode2020

Python
1
star
45

ShoppingList

A mobile web app for my own use
Python
1
star
46

vim-plugins

ghcloneall config for Vim plugins I maintain
Shell
1
star
47

letsencrypt-java

Adding LetsEncrypt root certificates to the Java keystore on Windows. Obsolete.
Batchfile
1
star
48

repozo-testcases

Some ad-hoc functional testcases to reproduce repozo (the ZODB online backup tool) bugs
Python
1
star
49

check-pypi-wheels

Check if PyPI has the right wheels available for a set of packages
Python
1
star
50

zcml-tool

Hacks to parse and analyze ZCML files because I got sick of tracing them by hand
Python
1
star
51

python-refactorings.vim

Vim plugin for a bunch of hacky random Python code refactorings
Vim Script
1
star
52

ep2013-dojo

EuroPython 2013 coding dojo: write a Scorched Earth clone in 60 minutes
Python
1
star