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.0a0.tar.gz (5.7 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.0a0-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: srcviewserver-0.1.0a0.tar.gz
  • Upload date:
  • Size: 5.7 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.0a0.tar.gz
Algorithm Hash digest
SHA256 e2105800befb7fe8c7ceba11ae8c09c660acfd79a2a0462d68db2c140e036c1a
MD5 5dde54ffd7ba2768e06f558984b84226
BLAKE2b-256 9116b2becd06b16249b00d909d6e8bcd82dbf4230ba1b354b424808bf126a79d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for srcviewserver-0.1.0a0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6ba8612c0eb9f2eb4f1eccffe7d02fedb1d65809752c759c93698a8af953df79
MD5 d8a12de0340eab2a9b17232fb5238a9d
BLAKE2b-256 d261ab9539aa6c660d5ebfc9f253ee1f281ef6026aff931e70f7879e672f63b3

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