Command-line interface for learning the Click package
Project description
Multitool is a command-line interface template for learning how to package command-line tools using the Click package.
To learn more about Click, see the docs: https://click.palletsprojects.com/
To create a virtual environment:
pip3 install virtualenv
virtualenv venv
source venv/bin/activate
pip3 install -e .
python3 -m multitool -V
python3 -m multitool -h # or just `multitool -h`
pip3 install -r requirements.txt
./runtests.sh
deactivate
Usage:
Usage: multitool [OPTIONS] COMMAND [ARGS]...
First paragraph.
This is a very long second paragraph and as you can see wrapped very early
in the source text but will be rewrapped to the terminal width in the
final output.
This is
a paragraph
without rewrapping.
And this is a paragraph that will be rewrapped again.
Options:
-V, --version Show the version and exit.
--repo-home TEXT
--debug / --no-debug
-h, --help Show this message and exit.
Commands:
ansi-colors
callbacks-eager
cat
chmod
clear
clone
commit
convert
copy Move file SRC to DST.
cp
delete delete the repo
digest
dropdb
echo Print value of SRC environment variable.
edit Edit FILENAME if the file exists.
encrypt
feature-switches
get-commit-message
get-streams
getchar
greet
hello Simple program that greets NAME for a total of COUNT...
info
init init the repo
initdb
inout Copy contents of INPUT to OUTPUT.
launch This can be used to open the default application...
less
log
login
parse-bool
parse-datetime
parse-float
parse-int
parse-str
parse-uuid
pause
perform
print-stdout
progress-bar
prompt
prompt2
putitem
read-config Print APP_NAME config file.
read-user
repeat
repeat-float
roll
runserver
sync
touch Print FILENAME if the file exists.
write-file Write 'Hello World!' to FILENAME.
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
multitool-0.1.0.tar.gz
(10.0 kB
view details)
Built Distribution
multitool-0.1.0-py3-none-any.whl
(12.2 kB
view details)
File details
Details for the file multitool-0.1.0.tar.gz
.
File metadata
- Download URL: multitool-0.1.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 755d9159e87c0254852a7409293e466cc0399a175c6b8baeaa46a5d70c6c2407 |
|
MD5 | 7876c8416c3481c2cd96c1f9b2552166 |
|
BLAKE2b-256 | 2849244d0ba80abb44117ff45e7a811f4388e57186bdee7b9b9272f6606c53bf |
Provenance
File details
Details for the file multitool-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: multitool-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9623d428c213759da9608b46512ceca329676a9c29543bd3ed4a33c45229137f |
|
MD5 | 743ea3e695ceda623c0cb6e1c89bd253 |
|
BLAKE2b-256 | 1e5619baac9d64a9172f0b02041dd8297417c795a8acdd58d907b4ab1680bb8e |