BasisCommon is a collection of modules providing essential functionality such as session management, HTTP request handling, cost estimation, external variable retrieval, and other utilities that can be commonly used across various Julia projects.
If not already done, add the package (once it's registered or from a specific repo):
using Pkg
Pkg.add("BasisCommon")using BasisCommonUse Session features, for example:
session_state = BasisCommon.Session.empty_sessionstate()Or retrieve environment-based variables with the ExoVars module:
using BasisCommon.ExoVars
with_env_handler() do
value = get_exo_value("MY_VAR")
println(value)
end
``