A CLI tool to help teams share internal tooling written in python.
Project description
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
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
Built Distribution
File details
Details for the file pytoolbelt_cli-0.6.4.tar.gz
.
File metadata
- Download URL: pytoolbelt_cli-0.6.4.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91783bb9ccffc56676a5875f0f6e0b505b1867f48d448d0ad85d527555c2a854 |
|
MD5 | 91d7cd36054666be28ed7b86fa2634a6 |
|
BLAKE2b-256 | 076bba2c0fa2a162d9a3f2d1497cfdf66b299c97eb9a066c79b7ea3ed42676e6 |
File details
Details for the file pytoolbelt_cli-0.6.4-py3-none-any.whl
.
File metadata
- Download URL: pytoolbelt_cli-0.6.4-py3-none-any.whl
- Upload date:
- Size: 56.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fedbf4f0241a4e36c7c2315a208e28629f865cc77ab95e3e8a27b02c1c1b951 |
|
MD5 | 62d5da12cb2f459d03e968f6e6541304 |
|
BLAKE2b-256 | d46ecaed64c6ab643fe5fc720e775a051190297e3aac7e7b9f7213aca1702098 |