
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
google-tools-wrapper
Advanced tools
This library provides a simple interface for accessing Google features.
See it on Pypi
See it on Github
pip install google-tools-wrapper
import google_tools as tools
>>> result = tools.currency_conversion(base_currency='USD', target_currency='BRL')
>>> print(result)
{
'float': 4.9024,
'last_update': 'Nov 25, 4:38:00 PM UTC'
}
# benchmark (u can see the benchmark on this project github repo):
>>> result = test_currency_conversion(100)
>>> print(f"MIN TIME: {result['min_time']} seconds\nMAX TIME: {result['max_time']} seconds\nAVG TIME ({result['avg']['operations']} operations): {result['avg']['time_per_operation']} seconds") # "limited" to 3 decimals
MIN TIME: 0.736 seconds
MAX TIME: 2.152 seconds
AVG TIME (100 operations): 1.077 seconds
import google_tools as tools
>>> result = tools.translater(source_language='pt', target_language='en', text='Ola Mundo!')
>>> print(result)
Hello World!
# benchmark (u can see the benchmark on this project github repo):
>>> result = test_translater(30)
>>> print(f"MIN TIME: {result['min_time']} seconds\nMAX TIME: {result['max_time']} seconds\nAVG TIME ({result['avg']['operations']} operations): {result['avg']['time_per_operation']} seconds") # "limited" to 3 decimals
MIN TIME: 5.195 seconds
MAX TIME: 7.003 seconds
AVG TIME (30 operations): 5.924 seconds
This library is provided for educational purposes only and should not be used in production environments. It is not affiliated with Google and may not always provide accurate or up-to-date currency conversion rates. For real-time currency conversion services, please refer to official financial sources.
FAQs
An unofficial Google Tools wrapper
We found that google-tools-wrapper 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.