Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Public repository of developmental Python code related to research on the input-output product space (IO-PS) [Described in Bam, W., & De Bruyne, K. (2019). Improving Industrial Policy Intervention: The Case of Steel in South Africa. The Journal of Development Studies, 55(11), 2460–2475. https://doi.org/10.1080/00220388.2018.1528354]
The package is available from the Python Package Index: https://pypi.org/project/iops/
pip install iops
pip install ecomplexity
CEPII-BACI trade data is a required input (.csv). The BACI data is available at: http://www.cepii.fr/CEPII/fr/bdd_modele/presentation.asp?id=37
Full IO-PS analysis requires a value chain input (.csv). Three columns are required: 'Tier', 'Category' and 'HS Trade Code'.
import pandas as pd
from iops import main
tradedata_df = pd.read_csv('BACI_HSXX_YXXXX_V202001.csv')
valuechain_df = pd.read_csv('X_Value_Chain.csv')
main.iops(tradedata_df,valuechain_df)
Results are generated at tier, category and product level. Results are written to an Excel spreadsheet and headless CSV for each.
Tier_Results.csv
Tier_Results.xlsx
Product_Category_Results.csv
Product_Category_Results.xlsx
Product_Results.csv
Product_Results.xlsx
def iops(tradedata, valuechain=None, countrycode=710, tradedigit=6, statanorm=False):
""" IO-PS calculation function that writes the results to .xls and .csv
Arguments:
tradedata: pandas dataframe containing raw CEPII-BACI trade data.
valuechain: .csv of the value chain the IO-PS will map.
columns - 'Tier', 'Category', 'HS Trade Code'
default - None
countrycode: integer indicating which country the IO-PS will map.
default - 710
tradedigit: Integer of 6 or 4 to indicate the raw trade digit summation level.
default - 6
statanorm: Boolean indicator of literature based or CID-Harvard STATA normalization.
default - False
"""
This packages uses a modified copy of the Growth Lab at Harvard's Center for International Development py-ecomplexity package. The ecomplexity package is used to calculate economic complexity indices: https://github.com/cid-harvard/py-ecomplexity
FAQs
Open-source Python release of the IO-PS package
We found that iops demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.