Skip to main content

CLI to automate the development workflow.

Project description

logo

License PyPI GitHub Code Style CI codecov Downloads

toil: "Long, strenuous or fatiguing labour"

help

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.

pipx-install

You can always fall back to pip

pip-install

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)
  • VSCode (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

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

See which ones you have on GitHub, but not on your computer

show-diff

Easily grab a project, regardless of where it is

This project is available on your local machine...

checkout-local

This one is on GitHub...

checkout-remote

Create a new project and virtual environment in one go

new-venv

(And include custom packages, see the docs)

And even do this from a cookiecutter template

new-cookie

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

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!

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pytoil-0.27.0.tar.gz (41.9 kB view details)

Uploaded Source

Built Distribution

pytoil-0.27.0-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

Details for the file pytoil-0.27.0.tar.gz.

File metadata

  • Download URL: pytoil-0.27.0.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pytoil-0.27.0.tar.gz
Algorithm Hash digest
SHA256 8788b4024f21d58f5e9f2e97713fa91daa7082bce2c77517ef3ae27fb8b4e6bf
MD5 c151e641235633ca60a90fcc7c39aa5c
BLAKE2b-256 753effe23d24bff78688666f46ec985785b2d519b4a0cbeb28ec01d2ff563ec4

See more details on using hashes here.

File details

Details for the file pytoil-0.27.0-py3-none-any.whl.

File metadata

  • Download URL: pytoil-0.27.0-py3-none-any.whl
  • Upload date:
  • Size: 58.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pytoil-0.27.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d384cfc44626e5ab66633d1f4821953d9192cfe39582b8403824ea148eb99ee
MD5 48c337b446b65674a8bb35c99c0db7a2
BLAKE2b-256 40d145b197287ef992719f478f345355414a38f9dc0299e2213402c6bd024f4b

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