Skip to main content

No project description provided

Project description

Judoka

PyPI Changelog License

Judoka is a command line utility that lets you define project scoped commands and call them through their alias. It lets you just do (= judo) your work.

Installation

Install this library using pip:

$ pip install judoka

Usage

Create a .judorc file in your project root, like the example below:

greet = "cowsay 'Hi!'"

[frontend]
start = "npm run start"

[backend]
start = "docker compose up -d"

Then, just run any of the aliases:

$ judo greet
$ judo frontend:start
$ judo backend:start

Or, have a list of all the available commands in your project:

$ judo

You may also choose to include a .judorc file in your $HOME folder (~/.judorc). Commands defined in this file will always be loaded first and will be overwritten if an overlapping command was found.

Shell completions

To install judo shell completions, execute judo-completions [--apply] {bash|fish|zsh} to get instructions on how to install completions for your shell of choice. By including the --apply option, the installation instructions will be applied for you.

Note: Don't forget to reload your shell session after installation to load the completions.

Development

To contribute to this library, first checkout the code. Then create a new virtual environment:

cd judoka
python -mvenv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

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

judoka-0.3.3.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

judoka-0.3.3-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file judoka-0.3.3.tar.gz.

File metadata

  • Download URL: judoka-0.3.3.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for judoka-0.3.3.tar.gz
Algorithm Hash digest
SHA256 6d7ba0dd31e238a1621d7ef51d24224c5fb554d8bb6bf6afdb2ad4e1b2323fd8
MD5 8b437d1cf2e7f64a953298fa50657c8e
BLAKE2b-256 53b776c7f257b2061ffb16341d0aa43cee37ac1744e5b2cbfb3feab40ba422d9

See more details on using hashes here.

File details

Details for the file judoka-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: judoka-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for judoka-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 156aa08fd7619dbfc10ade3ce898cd786b565b0be6c51162672e06582b37064f
MD5 5da5fda43f8040503cd12ef7a7e8f847
BLAKE2b-256 2fe4830062c53396c89884bc4b58a89dcee3bc20f7bcb4c50994ceabee8cf9af

See more details on using hashes here.

Supported by

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