I have a very small utility that has proven itself very handy across a multitude of applications. The utility itself is less than 50 lines of code and is its own Python module, and a number of completely independent applications use said module in different ways: some inherit from the classes described in it, some simply instantiate and use the classes as-is.Because many of these applications are also small (typically a single package containing somewhere between 1-5 modules), it seems unreasonable to force the user to install a pre-requisite in order to be able to use the applications. I can only think of two options, not mutually exclusive:Deploy the application using some system that allows dependency tracking, such as pip, and lose the ability to deploy the application as a standalone package. In addition to that, distribute the utility independently in the same system.Package the utility within the application when deploying it as a standalone package, and lose the ability to update the utility independently.Are there any other options? Should I just go with pip as a way to deploy the applications?
How to re-use a very small Python utility across different applications?
python;deployment;dependencies