Skip to main content

Creates functionality to manipulate the shell in support of tools defined within a tools directory.

Project description

Project: License

Package: PyPI - Python Version PyPI - Version PyPI - Downloads

Development: uv ruff ty pytest CI Code Coverage GitHub commit activity

Contents

Overview

dbrownell_ToolsDirectory is a Python utility that automates the setup of tool environments by generating shell initialization scripts. It scans a directory structure containing organized tools and their versions, then creates either Bash or Batch scripts that add these tools to your system path and configure their environment variables. This tool is handy for managing multiple tool versions across different operating systems and architectures, allowing you to maintain a centralized directory of tools and automatically generate the necessary shell commands to make them available in your terminal environment.

How to use dbrownell_ToolsDirectory

There are two ways to use dbrownell_ToolsDirectory: through convenience activation scripts or by using the CLI directly.

  1. Clone the repository locally:

    git clone https://github.com/davidbrownell/dbrownell_ToolsDirectory
    
  2. Run the activation script for your shell:

    For Bash (Linux/macOS):

    . <repository location>/src/dbrownell_ToolsDirectory/Scripts/activate.sh <tools directory>
    

    For Batch (Windows):

    <repository location>\src\dbrownell_ToolsDirectory\Scripts\activate.bat <tools directory>
    
  3. All tools and environment variables from <tools directory> will be added to your environment.

Example

Hard Drive
/Tools/
├── Tool1/
│   └── Tool1.env
├── Tool2/
│   └── bin/
└── Tool3/
    ├── v1.2.3/
    └── v4.5.6/
Tool1.env
FOO=BAR
FILENAME=./filename
After Activation
# Added by traversing the directory hierarchy
PATH=${PATH}:/Tools/Tool1:/Tools/Tool2/bin:/Tools/Tool3/v4.5.6

# Added through .env files within the directory hierarchy
FOO=BAR
FILENAME=/Tools/Tool1/filename

Installation

Installation Method Command
Via uv uv add dbrownell_ToolsDirectory
Via pip pip install dbrownell_ToolsDirectory

Development

Please visit Contributing and Development for information on contributing to this project.

Additional Information

Additional information can be found at these locations.

Title Document Description
Code of Conduct CODE_OF_CONDUCT.md Information about the norms, rules, and responsibilities we adhere to when participating in this open source community.
Contributing CONTRIBUTING.md Information about contributing to this project.
Development DEVELOPMENT.md Information about development activities involved in making changes to this project.
Governance GOVERNANCE.md Information about how this project is governed.
Maintainers MAINTAINERS.md Information about individuals who maintain this project.
Security SECURITY.md Information about how to privately report security issues associated with this project.

License

dbrownell_ToolsDirectory is licensed under the MIT license.

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

dbrownell_toolsdirectory-0.14.2.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbrownell_toolsdirectory-0.14.2-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file dbrownell_toolsdirectory-0.14.2.tar.gz.

File metadata

  • Download URL: dbrownell_toolsdirectory-0.14.2.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dbrownell_toolsdirectory-0.14.2.tar.gz
Algorithm Hash digest
SHA256 9d75b20500fa1fd79709627ce96d2705f24ef25e7263da3928ec99a8f040de4f
MD5 c8dc1cd77d4b6a63233aaba13572728f
BLAKE2b-256 bbf82d5f1d2e9b92b46f4e0e738cf0aa5b138ab2b8dfab1f66c0bef73ae06b40

See more details on using hashes here.

File details

Details for the file dbrownell_toolsdirectory-0.14.2-py3-none-any.whl.

File metadata

  • Download URL: dbrownell_toolsdirectory-0.14.2-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dbrownell_toolsdirectory-0.14.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68b1974e1ba4811c32b5316584124df7f277dde01fcdb8aac63f4b2f076bf94d
MD5 87696d28635c648f1cb6bdccb796ed51
BLAKE2b-256 5dfa64210b00cb147e3969aa92a610fb46d0d047019535116c113858e7859637

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page