Shell Script Documentation
Write documentation in comments and render it with templates.
shellman can generate man pages, wiki pages and help text
using documentation written in shell scripts comments.
For example:
#!/bin/bash
## \brief Just a demo
## \desc This script actually does nothing.
main() {
case "$1" in
## \option -h, --help
## Print this help and exit.
-h|--help) shellman "$0"; exit 0 ;;
esac
}
## \usage demo [-h]
main "$@"
Output when calling ./demo -h:
Usage: demo [-h]
This script actually does nothing.
Options:
-h, --help Print this help and exit.
You can see more examples in the documentation: https://pawamoy.github.io/shellman/.
Demo
In the demo above we saw the three builtin templates: helptext, manpage and wikipage.
You can use your own templates
by specifying them with the --template path:my/template syntax.
You can also write a plugin, see the docs: https://pawamoy.github.io/shellman/plugins.
Installation
pip install shellman
With uv:
uv tool install shellman
Some projects using shellman
- shellm —
A collection of scripts and libraries
built on a core inclusion-system,
all installable with basher.
Here are a few examples:
- daemon — A library that facilitates the writing of daemonized scripts that consume files in a watched directory.
- debug — A simple script that sets the verbose/dry-run/debug Bash flags before running another script.
- format — Format your output with style and color.
- home — A home for your shell scripts!
- loop — Control the flow of your loops (pause/resume/etc.).
Metadata
Release files for shellman 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shellman-1.0.3.tar.gz | 61.5 kB | Without provenance | Details for shellman-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shellman-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for shellman-1.0.3-py3-none-any.whl |
Total release size: 100.1 kB
Release files / shellman-1.0.3.tar.gz
| Download URL | shellman-1.0.3.tar.gz |
|---|---|
| Size | 61.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbf5dc48c90df2eb18ab2fa5f1a097cfc7b560d5489d05178ace74d8e824cd35
|
|
BLAKE2b-256 checksum How to use checksums |
00d6c758ccc4d102d58a8eed695037b2137edfc5fdf41045a7815de30c65ab52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / shellman-1.0.3-py3-none-any.whl
| Download URL | shellman-1.0.3-py3-none-any.whl |
|---|---|
| Size | 38.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9080ff918a6388e2784788bb30566e42704d8495c62febe4d7c2b3f96eee7ce
|
|
BLAKE2b-256 checksum How to use checksums |
160c1facde33aa1ff40182fbf8b221f1f85bd64ab16b4b251d74c479a228557e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for shellman 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.