Projects


toggle-comment
Like sed but worse! A specialised utility for command-line workflows that may involve ensuring that certain lines are commented out, or flipping the status of a block of code programmatically (as Ctrl+/ in your editor would). Install via cargo install toggle-comment.
toggle-comment 0.5.0
A utility for setting or toggling the line-comment status of lines in text files

USAGE:
    toggle-comment [OPTIONS] <PATTERN> [INPUT]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --mode <comment|toggle|uncomment>    Commenting behaviour [default: toggle]
    -c, --comment-prefix <PREFIX>            Line comment prefix string [default: "# "]

ARGS:
    <PATTERN>    ed-like address pattern for selecting lines.
    <INPUT>      Sets the input file.
pylint-protobuf
A plugin for the pylint linter to check Protobuf-generated message usage. Needlessly complicated and hopelessly under-featured. Install via pip install pylint-protobuf.
$ cat <<EOF >example.proto
message Thing {
	required string value = 1;
}
EOF
$ protoc person.proto --python_out=.
$ cat <<EOF >example.py
from example_pb2 import Thing
a = Thing()
a.invalid_field = 123
EOF
$ pylint --load-plugins=pylint_protobuf example.py
************* Module example
E:  4, 0: Field 'invalid_field' does not appear in the declared fields of
protobuf-generated class 'Thing' and will raise AttributeError on access
(protobuf-undefined-attribute)
upower-stats
Convenience Python wrapper for battery charging and usage history.
type-anxiety
A quick demo for forcing you to write more.