An unofficial Google Tools wrapper
Project description
An unofficial Google Tools wrapper
GoogleTools
This library provides a simple interface for accessing Google features.
Installation
See it on Pypi
See it on Github
pip install google-tools-wrapper
Currency Conversion Usage
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
Translater Usage
import google_tools as tools
>>> result = tools.translater(source_language='pt', target_language='en', text='Ola Mundo!')
>>> print(result) # maybe it take around 5-10 seconds to respond, depends on your cpu, selenium is a bit slow
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.195650699999533 seconds
MAX TIME: 7.003255799998442 seconds
AVG TIME (30 operations): 5.924328183333395 seconds
Disclaimer
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file google-tools-wrapper-2.0.0.tar.gz
.
File metadata
- Download URL: google-tools-wrapper-2.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df02a4e717ce5646839760d419f3f32cc3d27133645f27eac31c5e6f8b47fec1 |
|
MD5 | e1bffe86711c48b5d86db0e362ac9872 |
|
BLAKE2b-256 | 00615bf5e48d1c47cc030a59e8846b8693059f201140326d6c6358d850f82627 |