Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/followtheprocess/pytoil
CLI to take the toil out of software development :robot:
https://github.com/followtheprocess/pytoil
automation cli click cookiecutter pipx python3
Last synced: 7 days ago
JSON representation
CLI to take the toil out of software development :robot:
- Host: GitHub
- URL: https://github.com/followtheprocess/pytoil
- Owner: FollowTheProcess
- License: apache-2.0
- Created: 2021-02-04T15:05:23.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T09:27:48.000Z (18 days ago)
- Last Synced: 2024-10-29T11:42:32.420Z (18 days ago)
- Topics: automation, cli, click, cookiecutter, pipx, python3
- Language: Python
- Homepage: https://FollowTheProcess.github.io/pytoil/
- Size: 4.67 MB
- Stars: 15
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing/code_of_conduct.md
- License: LICENSE
Awesome Lists containing this project
README
![logo](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/logo.png)
[![License](https://img.shields.io/github/license/FollowTheProcess/pytoil)](https://github.com/FollowTheProcess/pytoil)
[![PyPI](https://img.shields.io/pypi/v/pytoil.svg?logo=python)](https://pypi.python.org/pypi/pytoil)
[![GitHub](https://img.shields.io/github/v/release/FollowTheProcess/pytoil?logo=github&sort=semver)](https://github.com/FollowTheProcess/pytoil)
[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![CI](https://github.com/FollowTheProcess/pytoil/workflows/CI/badge.svg)](https://github.com/FollowTheProcess/pytoil/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/FollowTheProcess/pytoil/branch/main/graph/badge.svg?token=OLMR2P3J6N)](https://codecov.io/gh/FollowTheProcess/pytoil)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/FollowTheProcess/pytoil/main.svg)](https://results.pre-commit.ci/latest/github/FollowTheProcess/pytoil/main)
[![Downloads](https://static.pepy.tech/personalized-badge/pytoil?period=total&units=international_system&left_color=grey&right_color=green&left_text=Downloads)](https://pepy.tech/project/pytoil)> ***toil:***
> *"Long, strenuous or fatiguing labour"** **Source Code**: [https://github.com/FollowTheProcess/pytoil](https://github.com/FollowTheProcess/pytoil)
* **Documentation**: [https://FollowTheProcess.github.io/pytoil/](https://FollowTheProcess.github.io/pytoil/)
![help](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/help.svg)
## What is it?
*pytoil is a small, helpful CLI to take the toil out of software development!*
`pytoil` is a handy tool that helps you stay on top of all your projects, remote or local. It's primarily aimed at python developers but you could easily use it to manage any project!
pytoil is:
* Easy to use ✅
* Easy to configure ✅
* Safe (it won't edit your repos at all) ✅
* Snappy (it's asynchronous from the ground up and as much as possible is done concurrently, clone all your repos in seconds!) 💨
* Useful! (I hope 😃)Say goodbye to janky bash scripts 👋🏻
## Background
Like many developers I suspect, I quickly became bored of typing repeated commands to manage my projects, create virtual environments, install packages, fire off `cURL` snippets to check if I had a certain repo etc.
So I wrote some shell functions to do some of this for me...
And these shell functions grew and grew and grew.
Until one day I saw that the file I kept these functions in was over 1000 lines of bash (a lot of `printf`'s so it wasn't all logic but still). And 1000 lines of bash is *waaaay* too much!
And because I'd basically hacked it all together, it was **very** fragile. If a part of a function failed, it would just carry on and wreak havoc! I'd have to do `rm -rf all_my_projects`... I mean careful forensic investigation to fix it.
So I decided to make a robust CLI with the proper error handling and testability of python, and here it is! 🎉
## Installation
As pytoil is a CLI program, I'd recommend installing with [pipx].
```shell
pipx install pytoil
```![pipx-install](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/pipx_install.svg)
You can always fall back to pip
![pip-install](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/pip_install.svg)
pytoil will install everything it needs *in python* to work. However, it's full feature set can only be accessed if you have the following external dependencies:
* [git]
* [conda] (if you work with conda environments)
* A directory-aware editor e.g. [VSCode] etc. (if you want to use pytoil to automatically open your projects for you)
* [poetry] (if you want to create poetry environments)
* [flit] (if you want to create flit environments)## Quickstart
`pytoil` is super easy to get started with.
After you install pytoil, the first time you run it you'll get something like this.
![setup](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/setup.svg)
If you say yes, pytoil will walk you through a few questions and fill out your config file with the values you enter. If you'd rather not do this interactively, just say no and it will instead put a default config file in the right place for you to edit later.
Once you've configured it properly, you can do things like...
#### See your local and remote projects
![show-local](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/show_local.svg)
#### See which ones you have on GitHub, but not on your computer
![show-diff](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/show_diff.svg)
#### Easily grab a project, regardless of where it is
This project is available on your local machine...
![checkout-local](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/checkout_local.svg)
This one is on GitHub...
![checkout-remote](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/checkout_remote.svg)
#### Create a new project and virtual environment in one go
![new-venv](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/new_venv.svg)
(And include custom packages, see the [docs])
#### And even do this from a [cookiecutter] template
![new-cookie](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/new_cookie.svg)
And loads more!
pytoil's CLI is designed such that if you don't specify any arguments, it won't do anything! just show you the `--help`. This is called being a 'well behaved' unix command line tool.
This is true for any subcommand of pytoil so you won't accidentally break anything if you don't specify arguments 🎉
And if you get truly stuck, you can quickly open pytoil's documentation with:
![docs](https://github.com/FollowTheProcess/pytoil/raw/main/docs/img/docs.svg)
Check out the [docs] for more 💥
## Contributing
`pytoil` is an open source project and, as such, welcomes contributions of all kinds 😃
Your best bet is to check out the [contributing guide] in the docs!
[pipx]: https://pipxproject.github.io/pipx/
[docs]: https://FollowTheProcess.github.io/pytoil/
[contributing guide]: https://followtheprocess.github.io/pytoil/contributing/contributing.html
[git]: https://git-scm.com
[conda]: https://docs.conda.io/en/latest/
[VSCode]: https://code.visualstudio.com
[cookiecutter]: https://github.com/cookiecutter/cookiecutter
[poetry]: https://python-poetry.org
[flit]: https://flit.readthedocs.io