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.0

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.9)

# 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.9), 
    'last_update': 'Nov 22, 9:26:00 PM 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.0.tar.gz (4.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: google-tools-wrapper-0.2.0.tar.gz
  • Upload date:
  • Size: 4.1 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.0.tar.gz
Algorithm Hash digest
SHA256 6a920bea2a0f1c9d068d5e9b98e680213ec083ace775199ce94e8861f283f009
MD5 d9ab322f1e54643dc50add676e547083
BLAKE2b-256 66ca0aa2b2e5444406e3c7ff912bb7e2205ced27d4eb785bbee8507fb07b5b56

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