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

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.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: google-tools-wrapper-0.2.1.tar.gz
  • Upload date:
  • Size: 4.2 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.1.tar.gz
Algorithm Hash digest
SHA256 81eaea058272aba0027e0c615c5a9eb0f4f94bcbd74bd8b909eff0dcd26fa29a
MD5 928943bbcfe71bf209606934dec168d9
BLAKE2b-256 3130aab5ef7e8f6165ff558c86d2c0ae3a6d1bdead3e5b5f2a6bcf5979c1e157

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