Skip to main content

Simple HTTP server for viewing Markdown files in your browser

Project description

viewmd

A simple HTTP server for viewing Markdown files in your browser.

Installation

Option 1: Using pipx (Recommended)

pipx installs CLI tools in isolated environments, preventing dependency conflicts:

# Install pipx if you don't have it
python3 -m pip install --user pipx
python3 -m pipx ensurepath

# Install viewmd
pipx install .

Option 2: Using pip

Install globally with pip:

pip install .

Or install in development mode (changes to source code take effect immediately):

pip install -e .

Option 3: Direct symlink (Manual)

chmod +x viewmd.py
sudo ln -s "$(pwd)/viewmd.py" /usr/local/bin/viewmd

Quick Start

# Run from any directory
viewmd

# Open http://localhost:8000

What It Does

  • Markdown files (.md) - Rendered as HTML with nice styling
  • Text files (.py, .json, .gitignore, etc.) - Displayed in browser
  • Directories - Shows file listing, auto-displays README.md
  • Other files - Served normally (images, PDFs, etc.)

Usage

viewmd          # Starts on port 8000
viewmd 3000     # Custom port

Uninstallation

# If installed with pipx
pipx uninstall viewmd

# If installed with pip
pip uninstall viewmd

Publishing to PyPI (Optional)

To make viewmd installable via pip install viewmd for everyone:

# Install build tools
pip install build twine

# Build the package
python -m build

# Upload to PyPI (requires account at pypi.org)
python -m twine upload dist/*

That's it. Simple.

Project details


Download files

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

Source Distribution

viewmd-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

viewmd-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file viewmd-0.1.0.tar.gz.

File metadata

  • Download URL: viewmd-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for viewmd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a869a73df8cc6f7b4ce4977d59c66fcc4c349299423699fdfeefd4da86767e4f
MD5 3713a5f50ab5379b4c611897723558fa
BLAKE2b-256 5618f9fd5c76885d584dfb30ff909b46ad0fca3e78c1864c668b04139e5159fd

See more details on using hashes here.

File details

Details for the file viewmd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: viewmd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for viewmd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f5e0cccfcb9f416a74427408f5396f6ec46ea179c5e92e76e5c742c912d4dcf
MD5 ccd270a6a13f2e16e936791bef9d319c
BLAKE2b-256 95028468e4e5dd05317aed39ec6c8ac54471b3628cbff93830cb9ae0d8dc12ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page