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.
Documentation
Check out the full documentation at github pages here
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.5.tar.gz
.
File metadata
- Download URL: pytoolbelt_cli-0.6.5.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 | 0a463a55df2f55125a24dc6b205e9653e96bc23416f0b10c1d5d199bd1d835b0 |
|
MD5 | 4da57d2543b439fcde9b46510c0aa3ac |
|
BLAKE2b-256 | 2011f3554a31033da0e51ebbaf6dea8f954a7f30f5fc06a4aa464a6380d9e4f7 |
File details
Details for the file pytoolbelt_cli-0.6.5-py3-none-any.whl
.
File metadata
- Download URL: pytoolbelt_cli-0.6.5-py3-none-any.whl
- Upload date:
- Size: 56.1 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 | 86b5e950d23d9860daf402c33f515a524d2f06eb53077aec2148965278c3b32f |
|
MD5 | 53dfc8bb4a0e515f4bf3a019d3eaab04 |
|
BLAKE2b-256 | 9e517eaf0f538150b2301ac574e72728b856be953bfdfba60d1bb34ab1d64a4f |