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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2105800befb7fe8c7ceba11ae8c09c660acfd79a2a0462d68db2c140e036c1a
|
|
| MD5 |
5dde54ffd7ba2768e06f558984b84226
|
|
| BLAKE2b-256 |
9116b2becd06b16249b00d909d6e8bcd82dbf4230ba1b354b424808bf126a79d
|
File details
Details for the file srcviewserver-0.1.0a0-py2.py3-none-any.whl.
File metadata
- Download URL: srcviewserver-0.1.0a0-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ba8612c0eb9f2eb4f1eccffe7d02fedb1d65809752c759c93698a8af953df79
|
|
| MD5 |
d8a12de0340eab2a9b17232fb5238a9d
|
|
| BLAKE2b-256 |
d261ab9539aa6c660d5ebfc9f253ee1f281ef6026aff931e70f7879e672f63b3
|