Skip to main content

A Python-first command runner

Project description

plz

plz is a python-first command runner. plz allows you to define commands in python, and run them from the command line. No more bash scripts, makefiles or copy pasting commands from the docs.

plz can be used for many things, but it is especially useful for python projects, as no other installation is required.

Installation

  1. Using python 3.9 or later, run pip install plz
  2. Create a plzfile.py in the root of your project
  3. Using your terminal, execute plz in the root of your project

Note: Development dependencies are best included in a requirements.dev.txt file, and installed with pip install -r requirements.dev.txt. Add plz to your requirements.dev.txt file to make it available in development, out of the box.

Usage

Contribution

Installation

  1. Python 3.9
  2. Create a virtual environment: python -m venv .venv
  3. Activate the virtual environment:
    • On macOS and Linux: source .venv/bin/activate
    • On Windows: .venv\Scripts\activate
  4. Upgrade pip: pip install --upgrade pip
  5. Install dependencies: pip install -r requirements.dev.txt
  6. In the root directory: pip install -e .

Features

[x] List with plz -l (and default) [x] Default [x] Help flags (-h and --help) [x] dependencies - single, list, with or without args [x] plz -h [x] running commands [ ] environment variables [x] .env file [ ] task definition [x] in-line [ ] plz scope (in config) [ ] verbosity level [ ] verbose loading env variables

Backlog Should

[x] move to toml based setup [x] arguments (support from command line and in docs) [x] test Task [x] test run_task [x] test main help [x] test task help [x] test dependencies [ ] test coverage [ ] CI with test [ ] CI with test coverage [ ] CD [ ] doc pages [ ] load specific file [ ] heirachial loading

Could

[ ] order commands [ ] plz .create-demo [ ] async commands [ ] plz.progress [ ] support options for commands [ ] use argparse lib [ ] "Did you mean?" offer another command if something resembles it.

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

pyplz-0.1.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

pyplz-0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file pyplz-0.1.tar.gz.

File metadata

  • Download URL: pyplz-0.1.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyplz-0.1.tar.gz
Algorithm Hash digest
SHA256 fe4242880edb8cb0e397a741f4bc4180c0f5a7e12ef526bd726e07d9a6d8b32f
MD5 ed5af104f31f2863b04dc4090c0c34b6
BLAKE2b-256 ba21ca9d9f2ceeb13ee9accdc05f4669ac7a5cdfa39e078df1eefa2b030af49b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyplz-0.1.tar.gz:

Publisher: package_release.yml on oribarilan/plz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyplz-0.1-py3-none-any.whl.

File metadata

  • Download URL: pyplz-0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyplz-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a17293c517187272e5fe77eb97baba79874b898cae202889d935a6620d8e5129
MD5 0f0dc2bdf994c21ed9d2e501535bf07b
BLAKE2b-256 d00b3cfbf4a5b311bd40d94c465a1ddaf23e3b5b8e0d20270cbb9cc87359a9f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyplz-0.1-py3-none-any.whl:

Publisher: package_release.yml on oribarilan/plz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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