Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Org | |
Package | |
Testing |
OG-Core is an overlapping-generations (OG) model core theory, logic, and solution method algorithms that allow for dynamic general equilibrium analysis of fiscal policy. OG-Core provides a general framework and is a dependency of several country-specific OG models, such as OG-USA and OG-UK. The model output includes changes in macroeconomic aggregates (GDP, investment, consumption), wages, interest rates, and the stream of tax revenues over time. Regularly updated documentation of the model theory--its output, and solution method--and the Python API is available here.
The model is constantly under development, and model components could change significantly. The package will have released versions, which will be checked against existing code prior to release. Stay tuned for an upcoming release!
There are two primary methods for installing and running OG-Core on your computer locally. The first and simplest method is to download the most recent ogcore
Python package from the Python Package Index (PyPI.org). A second option is to fork and clone the most recent version of OG-Core from its GitHub repository and create the conda environment for the ogcore
package. We detail both of these methods below.
pip
(the Python Index Package manager) by typing on a Unix/macOS machine python3 -m pip install --upgrade pip
or on a Windows machine py -m pip install --upgrade pip
.ogcore
package from the Python Package Index by typing pip install ogcore
../YourFolderName/
where you want to save scripts to run OG-Core and output from the simulations in those scripts.run_ogcore_example.py
from the OG-Core GitHub repository in the folder where you are working on your local machine ./YourFolderName/run_ogcore_example.py
.python run_ogcore_example.py
run_ogcore_example.py
script by modifying model parameters specified in the og_spec
dictionary../run_example_plots
./ogcore_example_output.csv
./OUTPUT_BASELINE/model_params.pkl
execute.py
in the OG-Core repository for items in the dictionary object in this pickle file./OUTPUT_BASELINE/SS/SS_vars.pkl
SS.py
in the OG-Core repository for what is in the dictionary object in this pickle file./OUTPUT_BASELINE/TPI/TPI_vars.pkl
TPI.py
in the OG-Core repository for what is in the dictionary object in this pickle file./OUTPUT_REFORM
directory, which represent objects from the simulation of the reform policyNote that, depending on your machine, a full model run (solving for the full time path equilibrium for the baseline and reform policies) can take more than two hours of compute time.
If you run into errors running the example script, please open a new issue in the OG-Core repo with a description of the issue and any relevant tracebacks you receive.
The CSV output file ./ogcore_example_output.csv
can be compared to the ./run_examples/expected_ogcore_example_output.csv
file in the OG-Core repository to confirm that you are generating the expected output. The easiest way to do this is to copy the example-diffs
and example-diffs.bat
files from the OG-Core repository and use the sh example-diffs
command (or example-diffs
on Windows) from the run_examples
directory. If you run into errors running the example script, please open a new issue in the OG-Core repo with a description of the issue and any relevant tracebacks you receive.
conda env create -f environment.yml
conda activate ogcore-dev
pip install -e .
./run_examples
python run_ogcore_example.py
./run_examples/run_ogcore_example.py
script by modifying model parameters specified in the og_spec
dictionary../run_examples/run_example_plots
./run_examples/ogcore_example_output.csv
./run_examples/OUTPUT_BASELINE/model_params.pkl
execute.py
for items in the dictionary object in this pickle file./run_examples/OUTPUT_BASELINE/SS/SS_vars.pkl
SS.py
for what is in the dictionary object in this pickle file./run_examples/OUTPUT_BASELINE/TPI/TPI_vars.pkl
TPI.py
for what is in the dictionary object in this pickle file./run_examples/OUTPUT_REFORM
directory, which represent objects from the simulation of the reform policyNote that, depending on your machine, a full model run (solving for the full time path equilibrium for the baseline and reform policies) can take more than two hours of compute time.
If you run into errors running the example script, please open a new issue in the OG-Core repo with a description of the issue and any relevant tracebacks you receive.
The CSV output file ./run_examples/ogcore_example_output.csv
can be compared to the ./run_examples/expected_ogcore_example_output.csv
file that is checked into the repository to confirm that you are generating the expected output. The easiest way to do this is to use the sh example-diffs
command (or example-diffs
on Windows) from the run_examples
directory. If you run into errors running the example script, please open a new issue in the OG-Core repo with a description of the issue and any relevant tracebacks you receive.
The core maintainers of the OG-Core repository are:
OG-Core (Version #.#.#)[Source code], https://github.com/PSLmodels/OG-Core
FAQs
A general equilibrium overlapping generations model for fiscal policy analysis
We found that ogcore demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.