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.2.tar.gz (38.8 kB view details)

Uploaded Source

Built Distribution

pytoolbelt_cli-0.6.2-py3-none-any.whl (54.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytoolbelt_cli-0.6.2.tar.gz
  • Upload date:
  • Size: 38.8 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.2.tar.gz
Algorithm Hash digest
SHA256 3d3ef9e88f3ed2b21356c21b9c2c5ca14e9c0609b96cfeb149f7fc012c1cf382
MD5 0d058c91c32bccd96a49445be9707251
BLAKE2b-256 734dedb59ec732d7e51f9f9f26c53fc59c1b63084d83ca6ba47af1f8e7aba723

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytoolbelt_cli-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f9f15440fec7c63310d878f3716e5a61f93da1a9340e09026a96a0f98e8fcf1
MD5 2d6c9cacc83dc362669b66d56bf04cf2
BLAKE2b-256 2f047888ea2b8e85423ca7622ad7940658c25ac844c1d040ce3e4ba797c589a8

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