Skip to main content

An unofficial Google Tools wrapper

Project description

An unofficial Google Tools wrapper

GoogleTools

This library provides a simple interface for accessing GoogleTools features.

Installation

pip install google-tools-wrapper==0.2.4

Currency Conversion Usage

from google_tools import GoogleTools as gt

# first example:
>>> result = gt.currency_conversion(base_currency='USD', 
                                    target_currency='BRL')
>>> print(result)
(1, 4.91)

# second example:
>>> result = gt.currency_conversion(base_currency='USD', 
                                    target_currency='BRL',
                                    only_float=False)
>>> print(result) # don't look like it on the real terminal, just prettyfied it
{
    'conversion': [
        '1 USD', 
        '4.9 BRL'
    ],
    'float': (1, 4.91), 
    'last_update': 'Nov 23, 1:14:00 AM UTC'
}

Translater Usage

from google_tools import GoogleTools as gt

>>> result = gt.translater(source_language='en',
                        target_language='pt',
                        text='Hello, World!')
>>> print(result) # maybe this takes something around 10 seconds, selenium is very slow, but im working to make it faster
Olá Mundo!

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google-tools-wrapper-0.2.4.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file google-tools-wrapper-0.2.4.tar.gz.

File metadata

  • Download URL: google-tools-wrapper-0.2.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for google-tools-wrapper-0.2.4.tar.gz
Algorithm Hash digest
SHA256 56054d46b5c30dcd510167729701fed5c7cab2a36012b2591e87d23c68bfdeb7
MD5 0093fc62d6cc3a286c05771ab6e3dcba
BLAKE2b-256 ebddf2b79b9654cbe0cff60105856c45403ee3a17b5e4def5dbc0e0997f01a74

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page