# An unofficial Google Tools wrapper
## GoogleTools
This library provides a simple interface for accessing Google features.
### Installation
[See it on Pypi](https://pypi.org/project/google-tools-wrapper/)\
[See it on Github](https://github.com/xongs08/google-tools-wrapper)
```bash
pip install google-tools-wrapper
```
## Currency Conversion Usage
```python
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
```python
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
```
### 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.
Raw data
{
"_id": null,
"home_page": "",
"name": "google-tools-wrapper",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "google tools,google finance,google api,currency conversion,google translater,google tradutor",
"author": "Jo\u00e3o Zacchello",
"author_email": "xongsdartx@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e5/05/b4e602039cfac61fde1270a40d9f6cba3792fc2eefa82dd6dd88eb0cfcfd/google-tools-wrapper-3.0.0.tar.gz",
"platform": null,
"description": "# An unofficial Google Tools wrapper\r\n\r\n## GoogleTools\r\n\r\nThis library provides a simple interface for accessing Google features.\r\n\r\n### Installation\r\n\r\n[See it on Pypi](https://pypi.org/project/google-tools-wrapper/)\\\r\n[See it on Github](https://github.com/xongs08/google-tools-wrapper)\r\n\r\n```bash\r\npip install google-tools-wrapper\r\n```\r\n\r\n## Currency Conversion Usage\r\n```python\r\nimport google_tools as tools\r\n\r\n>>> result = tools.currency_conversion(base_currency='USD', target_currency='BRL')\r\n>>> print(result)\r\n{\r\n 'float': 4.9024,\r\n 'last_update': 'Nov 25, 4:38:00 PM UTC'\r\n}\r\n\r\n# benchmark (u can see the benchmark on this project github repo):\r\n>>> result = test_currency_conversion(100)\r\n>>> 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\r\nMIN TIME: 0.736 seconds\r\nMAX TIME: 2.152 seconds\r\nAVG TIME (100 operations): 1.077 seconds\r\n```\r\n\r\n## Translater Usage\r\n```python\r\nimport google_tools as tools\r\n\r\n>>> result = tools.translater(source_language='pt', target_language='en', text='Ola Mundo!')\r\n>>> print(result)\r\nHello World!\r\n\r\n# benchmark (u can see the benchmark on this project github repo):\r\n>>> result = test_translater(30)\r\n>>> 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\r\nMIN TIME: 5.195 seconds\r\nMAX TIME: 7.003 seconds\r\nAVG TIME (30 operations): 5.924 seconds\r\n```\r\n\r\n### Disclaimer\r\nThis 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.\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "An unofficial Google Tools wrapper",
"version": "3.0.0",
"project_urls": null,
"split_keywords": [
"google tools",
"google finance",
"google api",
"currency conversion",
"google translater",
"google tradutor"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e505b4e602039cfac61fde1270a40d9f6cba3792fc2eefa82dd6dd88eb0cfcfd",
"md5": "1213e82229395678ff87a1ac9872b88e",
"sha256": "34855463c16e694d040ce2e9ccdacd13f46e73bd9ea588a0390de13c66e4d3f4"
},
"downloads": -1,
"filename": "google-tools-wrapper-3.0.0.tar.gz",
"has_sig": false,
"md5_digest": "1213e82229395678ff87a1ac9872b88e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3215,
"upload_time": "2023-12-15T00:27:19",
"upload_time_iso_8601": "2023-12-15T00:27:19.990540Z",
"url": "https://files.pythonhosted.org/packages/e5/05/b4e602039cfac61fde1270a40d9f6cba3792fc2eefa82dd6dd88eb0cfcfd/google-tools-wrapper-3.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-15 00:27:19",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "google-tools-wrapper"
}