Utilities¶
To help make common scenarios easier, Uranium provides a set of utility methods.
-
uranium.
get_remote_script
(url, local_vars=None, cache_dir=None, refresh_cache=False)[source]¶ download a remote script, evaluate it, and return a dictionary containing all of the globals instantiated.
this can be VERY DANGEROUS! downloading and executing raw code from any remote source can be very insecure.
if a cache directory is provided, the script will