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

Uploaded Source

Built Distribution

pytoolbelt_cli-0.6.3-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytoolbelt_cli-0.6.3.tar.gz
  • Upload date:
  • Size: 40.0 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.3.tar.gz
Algorithm Hash digest
SHA256 57d61aa8a40a870acec08d24e4a0fcaeb6cdb055a9788e0961d29ffc86e0119c
MD5 2aba31bef42f83ef908881e8725dcc54
BLAKE2b-256 4a2b8c13327e4a5820f1d675554f7dbfd3844400d587946f0a859910dcea3de4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytoolbelt_cli-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7cedd2d590ef67aa9b1ad3314c47112e529896f4daa8a5ebb991cb27d1f30504
MD5 73a08665d03ce68cca491e6cbeae4459
BLAKE2b-256 dd9227fc5207935a822f60d16aaeed42e595d0f98e413c1e6d016bdf1e14b0cc

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