A simple CLI and automation tool
Project description
Wack
Aim
Wack is a personal project to provide a simple click (maybe typer / or custom in the future) cli tool.
Wack gives the user the ability to:
- Make simple files quickly (e.g. setup.py)
- Ability to write simple and quick cli commands, found when typing
$ wackinto the terminal - To automate simple tasks (e.g. making
pip installwrite to requirements.txt by default)
Install:
pip install wack
Now wack will be added to your terminal commands. Typing wack will give you:
Usage: wack [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
init
install
make
Setup wack:
wack init
This will make a wack.py file in the directory you're in. My recommendation is to do this in the root dir. It will look like the below:
from wack import command
from wack import echo
@command()
def hello_world():
echo("hello world")
Now when typing $ wack you will get:
Usage: wack [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
hello_world
init
install
make
Make features:
- .pre-commit-config.yaml
- .travis.yml (for pypi)
- setup.py
- wack.py
FYI, as of 0.1.4 (current version), click groups aren't supported, only commands, which need to be imported from wack. All other click features should work by default and can be imported from click or wack (as wack impliments from click import *).
TODO
- have a
makecommand for:- dotenv
- pre-commit
- more tests
- cookie-cutter for simple flask app?
- sqlalchemy / alembic setup
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 Wack-0.2.0.tar.gz.
File metadata
- Download URL: Wack-0.2.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b747091fc6583eb12b9cae91f6113f46dce2b4f9988d6b7ed67fbc2129d19c5
|
|
| MD5 |
d35267eeafa3662eb00d9fa3c19a7775
|
|
| BLAKE2b-256 |
b41d471e8abd145fe7aaa722bc96bf8b782f4cc76bedd75217ff9bfc10a96fb4
|
File details
Details for the file Wack-0.2.0-py3-none-any.whl.
File metadata
- Download URL: Wack-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00b36807a97694e2ec7d1d37bccad3a0a51b452d624df7a1913330a182f166a9
|
|
| MD5 |
80be4442bd40a8d1fae1a8eb3655a348
|
|
| BLAKE2b-256 |
0c649c520bc60f563ac59143c0144bf7b53036df48ff0cccbda65127df7dc013
|