Skip to main content

A simple HTTP server that serves source files with syntax highlighting.

Project description

srcviewserver

A simple HTTP server that serves source files with syntax highlighting.

Source files with a recognized language extension are highlighted and wrapped in an HTML page.
All other files are served as-is (binary streaming). Directories get an HTML listing.

Installation

pip install srcviewserver

Usage

srcviewserver [--port PORT] [--bind ADDRESS]
Option Default Description
--bind -b 127.0.0.1 Address to bind to.
--port -p 8000 Port to listen on.

Navigate to http://127.0.0.1:8000/ and browse the directory tree.

Contributing

Contributions are welcome! Please submit pull requests or open issues on the GitHub repository.

License

This project is licensed under the MIT License.

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

srcviewserver-0.1.0a1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

srcviewserver-0.1.0a1-py2.py3-none-any.whl (6.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file srcviewserver-0.1.0a1.tar.gz.

File metadata

  • Download URL: srcviewserver-0.1.0a1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for srcviewserver-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 aef0a7fd72afcdafe00fd8aa436d4096e8717f6c6dd62aa2d9faa7795ea4764f
MD5 6e7b8c8ba5c16bbf459dde72c699fb7b
BLAKE2b-256 0cee058561644bc16af80a885eddc52184e2ad28713f74868f8754a612574924

See more details on using hashes here.

File details

Details for the file srcviewserver-0.1.0a1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for srcviewserver-0.1.0a1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5e424d5c038c8a1247f400eea407766bfbc25d439c7cdbfcb700ce4bd86c3092
MD5 add70de0d2b55159be471af8719a4263
BLAKE2b-256 0577ff7211b2bad7003769b93894f00c4a7b97eb9351aa84a088fdd1a431999a

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