Skip to main content

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 $ wack into the terminal
  • To automate simple tasks (e.g. making pip install write 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 make command for:
    • dotenv
    • pre-commit
  • more tests
  • cookie-cutter for simple flask app?
  • sqlalchemy / alembic setup

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Wack-0.2.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Wack-0.2.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

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

Hashes for Wack-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0b747091fc6583eb12b9cae91f6113f46dce2b4f9988d6b7ed67fbc2129d19c5
MD5 d35267eeafa3662eb00d9fa3c19a7775
BLAKE2b-256 b41d471e8abd145fe7aaa722bc96bf8b782f4cc76bedd75217ff9bfc10a96fb4

See more details on using hashes here.

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

Hashes for Wack-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00b36807a97694e2ec7d1d37bccad3a0a51b452d624df7a1913330a182f166a9
MD5 80be4442bd40a8d1fae1a8eb3655a348
BLAKE2b-256 0c649c520bc60f563ac59143c0144bf7b53036df48ff0cccbda65127df7dc013

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page