Metadata-Version: 2.1
Name: shoal
Version: 0.6.0
Summary: Lazy, Python-first, alternative to make, just, doit, and invoke
Home-page: https://github.com/kyleking/shoal
License: MIT
Author: Kyle King
Author-email: dev.act.kyle@gmail.com
Requires-Python: >=3.8.12,<4.0.0
Classifier: Development Status :: 1 - Planning
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: beartype (>=0.12.0)
Requires-Dist: invoke (>=2.0.0)
Requires-Dist: pydantic (>=1.10.4)
Requires-Dist: rich (>=12.6.0)
Project-URL: Bug Tracker, https://github.com/kyleking/shoal/issues
Project-URL: Changelog, https://github.com/kyleking/shoal/blob/main/docs/docs/CHANGELOG.md
Project-URL: Documentation, https://shoal.kyleking.me
Project-URL: Repository, https://github.com/kyleking/shoal
Description-Content-Type: text/markdown

# shoal

Python function and shell command task runner.

This package started as a completely standalone runner, but became a wrapper of [`invoke`](https://pypi.org/project/invoke). I chose `Invoke` over `doit` because `Invoke` allows more control over namespace creation and task discovery, which allows for partial and lazy loading of the tasks as needed.

Alternatives to `shoal` and/or `Invoke` are `make`, [`just`](https://github.com/casey/just), [`doit`](https://github.com/pydoit/doit), [duty](https://github.com/pawamoy/duty), [taskipy](https://github.com/illBeRoy/taskipy), [pypyr](https://github.com/pypyr/pypyr/), and many more.

For examples for how `shoal` is Used, take a look at [`calcipy`](https://pypi.org/project/calcipy) and [recipes](https://github.com/KyleKing/recipes)

## Installation

`poetry add shoal`

## Usage

`shoal` is a wrapper of `Invoke` where the app is run as a package. This means that you can either re-vendor the tasks as a new CLI or import them piecemeal to a `task.py` file.

Create a `<package>/tasks.py` file with:

```py
from shoal import shoalling  # noqa: F401
```

Add the file to your `pyproject.toml` scripts:

```toml
[tool.poetry.scripts]
shoal = "package.tasks:shoalling"
```

Then test with:

```sh
poetry run shoal --help
```

<!-- TODO: Provide examples of creating a task.py file and running with Invoke -->

For more example code, see the [scripts] directory or the [tests].

## Project Status

See the `Open Issues` and/or the [CODE_TAG_SUMMARY]. For release history, see the [CHANGELOG].

## Contributing

We welcome pull requests! For your pull request to be accepted smoothly, we suggest that you first open a GitHub issue to discuss your idea. For resources on getting started with the code base, see the below documentation:

- [DEVELOPER_GUIDE]
- [STYLE_GUIDE]

## Code of Conduct

We follow the [Contributor Covenant Code of Conduct][contributor-covenant].

### Open Source Status

We try to reasonably meet most aspects of the "OpenSSF scorecard" from [Open Source Insights](https://deps.dev/pypi/shoal)

## Responsible Disclosure

If you have any security issue to report, please contact the project maintainers privately. You can reach us at [dev.act.kyle@gmail.com](mailto:dev.act.kyle@gmail.com).

## License

[LICENSE]

[changelog]: ./docs/CHANGELOG.md
[code_tag_summary]: ./docs/CODE_TAG_SUMMARY.md
[contributor-covenant]: https://www.contributor-covenant.org
[developer_guide]: ./docs/DEVELOPER_GUIDE.md
[license]: https://github.com/kyleking/shoal/LICENSE
[scripts]: https://github.com/kyleking/shoal/scripts
[style_guide]: ./docs/STYLE_GUIDE.md
[tests]: https://github.com/kyleking/shoal/tests

