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.
A module to make it easier to handle historical exchange rates.
Since version 0.3.5, rates are downloaded from a separate scraper hosted by Code for IATI. You can find the code for that scraper on Github: https://github.com/codeforiati/imf-exchangerates
The data from that scraper is made available here: https://codeforiati.org/imf-exchangerates/imf_exchangerates.csv
Install from PyPI:
pip install exchangerates
Create a CurrencyConverter object:
import exchangerates
converter = exchangerates.CurrencyConverter(update=True)
Note: update=True
will lead to fresh exchange rates being downloaded.
Get a list of the available currencies:
print converter.known_currencies()
Get the conversion rate for a specific currency and date:
print converter.closest_rate("USD", datetime.date(2012,7,20))
print converter.closest_rate("EUR", datetime.date(2014,7,20))
print converter.closest_rate("EUR", datetime.date(2014,7,20))
You can also just generate a consolidated file of exchange rates:
python get_rates.py
Result will be at data/consolidated_rates.csv
.
FAQs
A module to make it easier to handle historical exchange rates
We found that exchangerates 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.
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.