
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Currency Exchange is a Python package that allows your to verify whether a currency code (such as USD
) is valid. In addition, it allows you to convert currency amounts to various other currecies.
import CurrencyExchange
currency = CurrencyExchange.Currency()
currency.convertCurrency(1, 'USD', 'EUR') # Convert 1 USD to 1 EUR
"""
This returns:
0.8485362749
"""
currency.validateCurrencyCode('USD') # Check to see if USD is a valid currency code
"""
This returns:
(True, {'rates': {'CAD': 1.3171828596, 'HKD': 7.7503606279, 'ISK': 140.2630462452, 'PHP': 48.6491302503, 'DKK': 6.3137038608, 'HUF': 306.6355536699, 'CZK': 22.5040305473, 'GBP': 0.7675265168, 'RON': 4.123462028, 'SEK': 8.8022910479, 'IDR': 14860.033941451, 'INR': 73.9126007637, 'BRL': 5.382011031, 'RUB': 76.386338566, 'HRK': 6.392023759, 'JPY': 106.2367416207, 'THB': 31.4654221468, 'CHF': 0.9181162495, 'EUR': 0.8485362749, 'MYR': 4.1685193042, 'BGN': 1.6595672465, 'TRY': 7.4842596521, 'CNY': 6.8441238863, 'NOK': 9.0549851506, 'NZD': 1.5037759864, 'ZAR': 16.9735256682, 'USD': 1.0, 'MXN': 21.8655070004, 'SGD': 1.3703012304, 'AUD': 1.3819261773, 'ILS': 3.3919389054, 'KRW': 1189.7666525244, 'PLN': 3.7745439118}, 'base': 'USD', 'date': '2020-09-08'})
"""
FAQs
A Python package that converts currencies and validates currency codes.
We found that CurrencyExchange 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.