Skip to main content

A CLI tool to help teams share internal tooling written in python.

Project description

Blueprint fonts

Sharing python tooling within your organization, the easy way.

What is Pytoolbelt?

Pytoolbelt is a CLI, intended to simplify creating and sharing python tools within your organization. It treats a standard git repo as a toolbelt, which is a mono repo with all of your python tools you want to share within your organization. It also allows your team to define one or more python environments (venv) that can be re-used for multiple tools, Tools are installed as a zipapp from source, which can be run globally from your terminal.

Why Pytoolbelt?

Python is a wonderful language for writing scripts and small tools, but sharing them within your organization can be a pain. Navigating the python packaging ecosystem can be daunting, and creating a package for a simple script can be overkill. Not to mention that if you want to be able to pip install your tool, you need either to publish it to PyPi or to have a private package server (aka artifact repo), which is not always desirable or simply too much work.

Pytoolbelt aims to simplify this process by treating a git repo as a toolbelt. Installation is a simple as cloning the repo and running pytoolbelt tool install --name <toolname>, and the tool is installed as a zipapp, which can be run globally from your terminal.

Getting Started

pytoolbelt can be installed via pip (venv creation recommended):

pip install pytoolbelt-cli

pytoolbelt is also intended to be installed globally if desired. If that is the case, It is recommended to be installed via pipx

pipx install pytoolbelt-cli

Pipx is a tool that can be considered a "homebrew" for tools written in python. More information on pipx can be found here

Initialize pytoolbelt

To initialize a new pytoolbelt project and add the required directories to your $PATH, run the following command:

pytoolbelt init --path

this will add the ~/.pytoolbelt/tools directory to your $PATH in your .bashrc or .zshrc file.

Video Tutorials

Head over to the pytoolbelt YouTube channel for video tutorials on how to use pytoolbelt: Pytoolbelt YouTube Channel

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

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

pytoolbelt_cli-0.6.0.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

pytoolbelt_cli-0.6.0-py3-none-any.whl (54.5 kB view details)

Uploaded Python 3

File details

Details for the file pytoolbelt_cli-0.6.0.tar.gz.

File metadata

  • Download URL: pytoolbelt_cli-0.6.0.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pytoolbelt_cli-0.6.0.tar.gz
Algorithm Hash digest
SHA256 1d1a6390b2ca1f0ae1e56ce7e1450f5cb862e228c88387e2cd2c6fca3a231eff
MD5 e56062d8df9b6b3c58133ca805a10548
BLAKE2b-256 2136db1bf3e1e1dcf2daf4061f27d1a4c68b0f679a50a8a174aea5d5d8dd93fa

See more details on using hashes here.

File details

Details for the file pytoolbelt_cli-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytoolbelt_cli-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54b68d02626940e2152f6ca4c9a7ca6ca3ed12e317dec7579d52e5c58e431f31
MD5 f4fc4d9e99f1ceac010952b9898230cf
BLAKE2b-256 eb8136c99ab696b9581420c538be36d8cda07702124d294f5c1bc9bed5504d5f

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