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 Google features.

Installation

pip install google-tools-wrapper==0.3.0

Currency Conversion Usage

from google_tools import GoogleTools as tools

# `only_float=True`
>>> result = tools.currency_conversion(base_currency='USD', target_currency='BRL')
>>> print(result)
4.9024

# `only_float=False`
>>> result = tools.currency_conversion(base_currency='USD', target_currency='BRL', only_float=False)
>>> print(result) # don't looks like it on terminal, just prettyfied it
{
    'conversion': [
        '1 USD',
        '4.90 BRL'
    ],
    'float': 4.9024,
    'last_update': 'Nov 25, 4:38:00 PM UTC'
}

Translater Usage

from google_tools import GoogleTools as tools

>>> result = tools.translater(source_language='pt', target_language='en', text='Olá Mundo!')
>>> print(result) # maybe it take around 5-10 seconds to respond, depends on your cpu, selenium is a bit slow '-'
Hello World!

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

Uploaded Source

File details

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

File metadata

  • Download URL: google-tools-wrapper-0.3.0.tar.gz
  • Upload date:
  • Size: 4.6 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.3.0.tar.gz
Algorithm Hash digest
SHA256 eef287a0057037a1f4aa808314d47bd91a2a9fc468ff42a58e4674d7fafc7a50
MD5 3de44574de864c532cf6e8970760f406
BLAKE2b-256 b435c50885eb8de155af201c6e4aa10dbf161c36eec470b1b8c416ab38568212

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