[ANN] ShareAdd.jl - making easy to import packages from multiple environments

I am happy to announce the newly registered package ShareAdd.jl .

The package is intended for the interactive use. It’s purpose is to make commonly used packages comfortably available without the dilemma of either adding them to the package under development or keeping them in the “main” Julia environment. Instead, these packages can be kept in shared environments, either grouped, or one package per environment, which would be added to the LOAD_PATH as necessary.

ShareAdd.jl exports macro @usingany. This macro makes package(s) available, if they are not already, and loads them with using keyword:

  • If a package is available in any environment in LOAD_PATH, that’s OK.
  • If a package is available in any of the shared environments, this environment will be pushed into LOAD_PATH.
  • Otherwise if it can be installed, you will be prompted to select or create an environment to install the package(s).
  • If the package is not listed in any registry, an error will be thrown.

The package also exports several utility functions.

For further details, see documentation.

13 Likes