Saravanan666/pypi-org huggingface dataset:
Package: google-spreadsheets-fdw
Google Spreadsheets FDWMulticorn based PostgreSQL foreign data wrapper for Google SpreadsheetsInstallationRequirementsPostgreSQL 9.1+ withMulticornextension installed.If you haven't used Multicorn yet, enable it with:createextensionmulticorn;From source:gitclonehttps://github.com/TheDeadJoe/google_spreadsheets_fdwcdgoogle_spreadsheets_fdw
pythonsetup.pyinstallUsagecreateservermulticorn_srvforeigndatawrappermulticornoptions(wrapper'google_spreadsheets_fdw.GoogleSpreadsheetFDW');createforeigntablemy_table(idintdefaultnextval('my_seq'),foovarchar,barint,bazfloat)servermulticorn_srvoptions(gskey'zVshdGDuaQKKaQoXqNOwjeTWcxcUtOlSJDZoLeIMUsYx',keyfile'/path/to/credentials.json',sheet'0',row_id'id');Optionsgskey- "ID" of a spreadsheet (the 44 char length part between/spreadsheets/d/and/edit/from spreadsheet URL)keyfile- path to Google Cloud Services credentials json filesheet- index of a sheetrow_id- name of the column which value will be treated as an ID of the whole rowExampleWe start with an empty spreadsheet:Let's insert some data into it:insertintomy_table(foo,bar,baz)values('a',1,0.1);insertintomy_table(foo,bar,baz)values('b',2,0.2);insertintomy_table(foo,bar,baz)values('c',3,0.3);insertintomy_table(baz,bar,foo)values(0.4,4,'d')returning*;Spreadsheet contains our data.Now let's try retrieve the data:select*frommy_table;The result:Of course, we can also perform other SQL operations e.g.:updatemy_tablesetbar=9,baz=0.9wherebar=2;deletefrommy_tablewherebar>5;
Package: google-streetview
google_streetviewRichard Wenrrwen.dev@gmail.comDocumentationA command line tool and module for Google Street View Image API.Note: Google changedStreetView API pricingand a billing plan may be required (checked March 5, 2019).InstallInstallPythonInstallgoogle_streetviewviapippip install google_streetviewFor the latest developer version, seeDeveloper Install.UsageFor help in the console:google_streetview -hEnsure that aGoogle API developer keyis set:google_streetview -s key="your_dev_key"Search street view for latitude and longitude46.414382,10.013988:google_streetview "46.414382,10.013988"Save images to a directory:google_streetview --location="46.414382,10.013988" --save_downloads=downloadsObtain a 360 panorama by rotating the cameraheadinggiven a 90 degree field of visionfov::google_streetview --location="46.414382,10.013988" --fov=90 --heading=0;90;180;270Use as a Python module:# Import google_streetview for the api moduleimportgoogle_streetview.api# Define parameters for street view apiparams=[{'size':'600x300',# max 640x640 pixels'location':'46.414382,10.013988','heading':'151.78','pitch':'-0.76','key':'your_dev_key'}]# Create a results objectresults=google_streetview.api.results(params)# Download images to directory 'downloads'results.download_links('downloads')For more usage details, see theDocumentation.ContributionsReports for issues and suggestions can be made using theissue submissionCode contributions are submitted viapull requestsSeeCONTRIBUTING.rstfor more details.ImplementationThe packagegoogle_streetviewuses the following components:ComponentPurposeGoogle Street View Image APIAPI for Google Street View imagesgoogle_streetview.apiModule for interfacing with Google Street View Image API using requestsrequestsDownload and get URLs from Google Street View Image APIGoogle Street View Image API     <-- API for Street View Images
               |
      google_streetview.api        <-- URL Request with query string
               |
            request                <-- Download URLs and imagesFor more information, seeNOTES.rst.
Package: google-structlog
Out of the box setup for python apps to send structured logs to
Google Cloud's Stackdriver, in a format that allows stackdriver queries
over the structure.This package sets up structured logging with stackdriver that Just Works(TM):
no configuration required. There's no confurability,
but virtually no API means its easy to leave behind if you outgrow it.Usagefromgoogle_structlogimportgetLoggerlogger=getLogger()logger.warn('Danger Will Robinson',source='Robot',target='Will Robinson',threat='Boredom')The logger comes fromstructlogand allows all the options you'd expect on astructlog.get_logger()logger, including binding of repeated attributes:fromgoogle_structlogimportgetLoggerlogger=getLogger()# Include source= and target= values in the output of all calls to subloggersublogger=logger.bind(source='Robot',target='Will Robinson')sublogger.warn('Danger Will Robinson: impending maintenance',threat='Responsibility')Releasing a new version to pypiBump version insetup.py, make sure we stay ahead of Chrome and Firefoxrm -rf ./dist/*if needed to remove past versionspython3 setup.py sdist bdist_wheeltwine upload dist/*Login to pypi assnickelllol
Package: google_takeout_email
Google Takeout EmailContains a reader for mailbox files, MailboxReader, and utility functions for parsing
email addresses. Read from the mailbox.The MailboxReader class functions as a context manager that opens a mailbox file. The
messages property returns an iterator of email.message objects.The strip_address function returns the first actual email address contained in a string
and the parse_address_list returns a list of addresses in a comma separated list.
Package: google-takeout-to-sqlite
google-takeout-to-sqliteSave data from google-takeout to a SQLite database.How to install$ pip install google-takeout-to-sqliteRequest your Google data fromhttps://takeout.google.com/- wait for the email and download the zip file.This tool only supports a subset of the available options. More will be added over time.My ActivityYou can request the "My Activity" export and then import it with the following command:$ google-takeout-to-sqlite my-activity takeout.db ~/Downloads/takeout-20190530.zipThis will create a database file calledtakeout.dbif one does not already exist.Location HistoryYour location history records latitude, longitude and timestame for where Google has tracked your location. You can import it using this command:$ google-takeout-to-sqlite location-history takeout.db ~/Downloads/takeout-20190530.zipBrowsing your data with DatasetteOnce you have imported Google data into a SQLite database file you can browse your data usingDatasette. Install Datasette like so:$ pip install datasetteNow browse your data by running this and then visitinghttp://localhost:8001/$ datasette takeout.dbInstall thedatasette-cluster-mapplugin to see your location history on a map:$ pip install datasette-cluster-map
Package: google-tasks-to-ical
Google Tasks to iCalVersion: 1.1.0A simple CLI tool that converts Google Tasks JSON into iCal VTODO.BuildingThe easiest way to run the source code locally is usingPoetry:poetry install
poetry run google-tasks-to-icalRepo Map/: Poetry and README files./LICENSES/: Contains the Unlicense file./google_tasks_to_ical/: Main source code./tests/: Test source code, currently unused.CreditsByPATHFINDERLicenseThis software is dedicated to the public domain. For jurisdictions that do not
recognise such declarations, this software is also licensed under theUnlicense. See LICENSES for
details.See AlsoWebsiteForge
Package: google-text-to-speech
Google Translate Text-To-SpeechThegoogle_text_to_speechpackage is a Python-based solution designed to provide versatile and user-friendly text-to-speech (TTS) capabilities. Leveraging the Google Translate TTS API, it enables users to convert written text into spoken words in various languages..
├── clean_up_ws.sh
├── coverage.sh
├── docs
│   ├── conf.py
│   ├── index.rst
│   ├── make.bat
│   ├── Makefile
│   ├── prepare_plantuml.sh
│   ├── requirements.txt
│   ├── resources
│   │   └── LabSoft2.png
│   └── src
│       ├── architecture.md
│       └── user_stories.md
├── images
│   └── TransparentLogo.png
├── LICENSE
├── README.md
├── requirements.txt
├── setup.py
├── src
│   └── google_text_to_speech
│       ├── google_translate_tts.py
│       ├── __init__.py
│       └── _version.py
└── tests
    ├── test_google_translate_tts.py
    └── test-reports

8 directories, 20 filesTable of ContentsGoogle Translate Text-To-SpeechTable of ContentsInstallationQuick StartFeaturesDocumentation and ReportsContributingLicenseInstallationpipinstallgoogle_text_to_speechQuick Startfromgoogle_text_to_speechimportplay_tts# Text to be converted to speechtext="Hello World!"language="en"# Language code (e.g., "en" for English)# Calling the text-to-speech functionplay_tts(text,language)FeaturesMultiple Language Support: Utilizes Google's TTS service to offer speech synthesis in numerous languages.Handling of Large Texts: Splits long texts into sentences to avoid limitations related to URL length and TTS service constraints.Real-Time Audio Playback: Converts text to speech in real-time, with the capability to play the audio immediately.Documentation and ReportsDocumentationGitLabPylint reportTest coverage reportThe code quality report - Navigate to thePipelines page, select the latest pipeline, and open theCode Qualitytab.The test results report - Navigate to thePipelines page, select the latest pipeline, and open theTeststab.ContributingContributions are welcome! Please read ourContributing Guidelinesfor more information.LicenseThis project is licensed under theMIT License.Developed with ❤️ by
Package: google-tools-wrapper
An unofficial Google Tools wrapperGoogleToolsThis library provides a simple interface for accessing Google features.InstallationSee it on PypiSee it on Githubpipinstallgoogle-tools-wrapperCurrency Conversion Usageimportgoogle_toolsastools>>>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 decimalsMINTIME:0.736secondsMAXTIME:2.152secondsAVGTIME(100operations):1.077secondsTranslater Usageimportgoogle_toolsastools>>>result=tools.translater(source_language='pt',target_language='en',text='Ola Mundo!')>>>print(result)HelloWorld!# 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 decimalsMINTIME:5.195secondsMAXTIME:7.003secondsAVGTIME(30operations):5.924secondsDisclaimerThis 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.
Package: google-translate-django4
Google Translate for Django 4 and Django 4+This is the working google translate library for Django v4 and above.The orignal source and credits go to:https://pypi.org/project/django-google-translate/(not working with Django 4+)Quick startDownload the package:pip install django-google-translateAddgoogle_translateto your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'google_translate',
]Load the translate tag in your template (ideally on base.html):{% load google_translate %}Add following template tag wherever you want to show translate button:{% google_translate %}You can also pass type and default language in the translate button type in the inclusion tag (OPTIONAL):{% google_translate type='vertical' language='en' %}Available values for the type are "horizontal", "vertical" and "simple" (default) and for language you can pass any ISO language code
Package: google-translate-for-goldendict
google-translate-for-goldendictAdd Google translate for GoldenDictGoldenDict是一个非常好用的词典工具, 却不能整句或整段的翻译, 时常需要借助Google translate对于将 Google 翻译加到 GoldenDict 是一个很好的方法 φ(゜▽゜*)♪使用方法:需要 python 3.7+:pip3 install google-translate-for-goldendictGoldenDict - 编辑 - 字典 - 字典来源 - 程式类型:Html名称:Google Translate命令行:python -m googletranslate zh-CN %GDWORD%图示:H:\PathTo\google_translate.png类型可以设为Html或纯文本.其中:Html对应-r "html".纯文本对应-r "plain"positional arguments:
  target          target language (eg: zh-CN)
  query           query string

optional arguments:
  -h, --help      show this help message and exit
  -p PROXY        proxy server (eg: 127.0.0.1:1080)
  -a ALTERNATIVE  alternative language (default: en)
  -r TYPE         result type (default: html)
  -k TKK          tkk
  -m              show synonyms
  -d              show definitions
  -e              show examples
Package: google-translate.py
google-translate.pyLibrary for using accurate Google Translate in PythonPythonで正確なGoogle翻訳を使用するためのライブラリEnglishThis library uses the translation function of Google Apps Script.installInstall using pip.pip install google-translate.pyHow to useNormal:fromgoogle_translate_pyimportTranslatorprint(Translator().translate("Hello World!!","en","ja"))>>>こんにちは世界！！Async version:importasynciofromgoogle_translate_pyimportAsyncTranslatorasyncdefmain():print(awaitAsyncTranslator().translate("Hello World!!","en","ja"))loop=asyncio.get_event_loop()loop.run_until_complete(main())>>>こんにちは世界！！Automatic language judgmentIf you leave the second argument (source) empty, the language will be determined automatically.Normal:fromgoogle_translate_pyimportTranslatorprint(Translator().translate("Hallo Welt!!","","ja"))>>>こんにちは世界！！Async version:importasynciofromgoogle_translate_pyimportAsyncTranslatorasyncdefmain():print(awaitAsyncTranslator().translate("Hallo Welt!!","","ja"))loop=asyncio.get_event_loop()loop.run_until_complete(main())>>>こんにちは世界！！Thank you for reading!日本語このライブラリはGoogle Apps Scriptの翻訳機能を利用しています。インストールpipを使用してインストールします。pip install google-translate.py使い方通常:fromgoogle_translate_pyimportTranslatorprint(Translator().translate("Hello World!!","en","ja"))>>>こんにちは世界！！非同期版:importasynciofromgoogle_translate_pyimportAsyncTranslatorasyncdefmain():print(awaitAsyncTranslator().translate("Hello World!!","en","ja"))loop=asyncio.get_event_loop()loop.run_until_complete(main())>>>こんにちは世界！！自動言語判定二つ目の引数(source)を空にしておくと言語を自動で判定してくれます。通常:fromgoogle_translate_pyimportTranslatorprint(Translator().translate("Hallo Welt!!","","ja"))>>>こんにちは世界！！非同期版:importasynciofromgoogle_translate_pyimportAsyncTranslatorasyncdefmain():print(awaitAsyncTranslator().translate("Hallo Welt!!","","ja"))loop=asyncio.get_event_loop()loop.run_until_complete(main())>>>こんにちは世界！！読んでくれてありがとうございます!
Package: googletranslate-python
Google Translate Client withdeep-translatorInstallpython3-mpipinstallgoogletranslate-pythonUsagePythonfromgoogletranslatepyimportTranslator# use a http proxiestranslator=Translator(proxies='http://127.0.0.1:10809')# use a socks5 proxiestranslator=Translator(proxies='socks5://127.0.0.1:10808')translator.translate('Life is short, you need Python!')# '人生苦短，你需要 Python！'CMDgoogletranslate--help# list all available languagesgoogletranslate-l# {#  "afrikaans": "af",#  "albanian": "sq",#  "amharic": "am",#  "arabic": "ar",# ...# translate a string textgoogletranslate-phttp://127.0.0.1:10809'Life is short, you need Python!'# translate a filegoogletranslate-phttp://127.0.0.1:10809README.md# set proxies to envGOOGLE_PROXIES=http://127.0.0.1:10809googletranslate'hello world'# or add to: ~/.bash_profileexportGOOGLE_PROXIES=http://127.0.0.1:10809# and then use it directlygoogletranslate'hello world'
Package: google-translator-simplified
Class for translating texts and detecting language (based on Google Translator).Get text translation:fromgoogle_translator_simplifiedimportTranslatorTranslator.get_translation('pl','text for translation','en')#'Tekst do tłumaczenia 'Translator.get_translation('de','tekst do przetłumaczenia','pl')#'Text für die Übersetzung 'Translator.get_translation('pl','text for translation')#'Tekst do tłumaczenia 'Translator.get_translation('de','tekst do przetłumaczenia')#'Text für die Übersetzung 'Detect language:fromgoogle_translator_simplifiedimportTranslatorTranslator.detect_lang('text for translation')#'en'Translator.detect_lang('Mittwoch')#'de'Translator.detect_lang('inny przykład')#'pl'Get language abbreviation:fromgoogle_translator_simplifiedimportTranslatorTranslator.get_abbreviation('english')#'en'Translator.get_abbreviation('polish')#'pl'Translator.get_abbreviation('german')#'de'Get language full name:fromgoogle_translator_simplifiedimportTranslatorTranslator.get_name('en')#'english'Translator.get_name('pl')#'polish'Translator.get_name('de')#'german'names list:fromgoogle_translator_simplifiedimportTranslatorTranslator.names_list[:7]#['afrikaans', 'albanian', 'amharic', 'arabic', 'armenian', 'azerbaijani', 'basque'])abbreviation list:fromgoogle_translator_simplifiedimportTranslatorTranslator.abbreviation_list[:7]#['af', 'sq', 'am', 'ar', 'hy', 'az', 'eu']Errors:fromgoogle_translator_simplifiedimportTranslatorimportunittestclassTestTranslator(unittest.TestCase):deftest_untranslatableError(self):self.assertRaises(Translator.TranslatorUntranslatableError,Translator.detect_lang,'')self.assertRaises(Translator.TranslatorUntranslatableError,Translator.detect_lang,'``2564&&')self.assertRaises(Translator.TranslatorUntranslatableError,Translator.detect_lang,'   ')self.assertRaises(Translator.TranslatorUntranslatableError,Translator.detect_lang,'\t\n')deftest_IncorrectAbbreviation(self):self.assertRaises(Translator.TranslatorIncorrectAbbreviation,Translator.get_translation,'','text for translation')self.assertRaises(Translator.TranslatorIncorrectAbbreviation,Translator.get_translation,'d','text for translation')self.assertRaises(Translator.TranslatorIncorrectAbbreviation,Translator.get_translation,'de','text for translation','e')
Package: google-transliteration-api
Google Transliteration - Python APIA Python library to use Google Transliterate API which powers theG Input Tools.Install using:pip install google-transliteration-apiNote:This is not Google's official library sinceGoogle has deprecated Input Tools API.Do not confuse with Google Translate APIUsageCheckhere for list of supported languages.Get suggestions for a wordfromgoogle.transliterationimporttransliterate_wordsuggestions=transliterate_word('America',lang_code='ja')print(suggestions)['アメリカ', '米国', '米', '亜米利加', '亜墨利加', '米利堅']The above transliterates the word 'America' into Japanese script and returns a list of possible suggestions.Transliterate a sentence or text(Experimental)fromgoogle.transliterationimporttransliterate_textresult=transliterate_text('Hello comrade!',lang_code='ru')print(result)хелло комраде!Transliterate numeralsfromgoogle.transliterationimporttransliterate_numeralsresult=transliterate_numerals('3210',lang_code='zh')print(result)三二一〇Similar worksGoogle Input Tools ClientGoogle Input Tools VS Code ExtensionAksharaMukha- Brahmic scripts (South Asia and South-East Asia) (list)Indic-TransSoviet TransliteratePlease feel free to contribute by Pull Requests orraise an issue.DMCA & DisclaimerIf you're Google and want us to take down the API, please raise an issue mentioning the main contributors.
Package: google-trans-new-chiou
文字翻譯安裝pip install google_trans_new_chiou含入模組from google_trans_new_chiou import google_translator使用translator=google_translator()
word=translator.translate("今天天氣真好",lang_src="zh-TW",lang_tgt="ja",pronounce=True)傳回值：['今日は良い天気 ', 'Jīntiān tiānqì zhēn hǎo', 'Kyō wa yoi tenki']
Package: googletrans-py
googletrans-pyThis is a fork of thegoogletranswhich makes the original package compatible with the latest versions ofhttpx,httpcoreand their dependencies. This compatibility makes it possible to usehttpx's newer versions than0.13.3.The base is taken from thefeature/rpcbranch of googletrans which was the last version, including pre-releases.Comparing with PyPI, the base usesv4.0.0rc1which was the last version on pypi, including pre-releases.Note: I have no intention to add features or to maintain this project. This is a temporary solution to a temporary a problem, hopefully.As the original project ended with version4.0.0rc1(pre-release), this fork's versioning starts from4.0.0(stable release).InstallationPyPIThis project is available onPyPIand can be installed using pip.pipinstallgoogletrans-pyRepositoryYou can also install the project directly from this repository.pipinstallgit+https://github.com/StarkBotsIndustries/googletrans.gitCreditsOriginal Author -Suhun HanOriginal Repository -googletrans
Package: googletrans-py39
googletrans-pyThis is a fork of thegoogletransto make it compatible with Python3.9.Note: I have no intention to add features or to maintain this project. This is a permanent solution to a "temporary" problem.InstallationPyPIThis project is available onPyPIand can be installed using pip.pipinstallgoogletrans-py39RepositoryYou can also install the project directly from this repository.pipinstallgit+https://github.com/Coykto/googletrans.gitCreditsOriginal Author -Suhun HanOriginal Repository -googletrans
Package: google-tr-async-free
google-tr-async-freeGoogle translate for free -- based on httpx with proxy support. Let's hope it lasts.Installationpip install google-tr-async-freeorInstall (pip or whatever) necessary requirements, e.g.pip install httpx js2py loguruorpip install -r requirements.txtDrop the file google_tr.py in any folder in your PYTHONPATH (check with import sys; print(sys.path)or clone the repo (e.g.,git clone https://github.com/ffreemt/google-tr-async-free.gitor downloadhttps://github.com/ffreemt/google-tr-async-free/archive/master.zipand unzip) and change to the google-tr-free folder and do apython setup.py developUsageimport asyncio
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
arun = lambda x: loop.run_until_complete(x)

from google_tr_async import google_tr_async

_ = [google_tr_async('hello world'),
  google_tr_async('hello world', to_lang='de'),
  google_tr_async('hello world', to_lang='fr'),
  google_tr_async('hello world', to_lang='ja')]
res = arun(asyncio.gather(*_))

print(res[0])  # ->'你好，世界'
print(res[1])  # ->'Hallo Welt'
print(res[2])  # ->'Bonjour le monde'
print(res[3])  # ->'こんにちは世界'AcknowledgmentsThanks to everyone whose code was used
Package: googletrends
googletrendsgoogletrendsis Python package to examine trending, spatio and temporal google searching for input queries.
Data is al arround us. Some data is easy to get, others are not. Especially when it comes to what people are "thinking" related to an issue/brand/company can be though. However, the "thinking" process can supported by googling about the subject. So if we know what people are searching for, it can give insights in the "common" thoughts. To make it a bit less creepy, lets not do this on an individual basis. I developed the python package googletrends that allows to easily examine the search results per country/region and/or per time-frame and with(out) a specific keyword.
To demonstrate this, lets examine the google searches for the keywords "Corona" and "Virus", "covid-19" in the Netherlands, Italy, Belgium and Germany starting from December 2019 up to today. If you want to examine other keywords/countries/time frames, simply pip install the library.⭐️ Star this repo if you like it ⭐️Install googletrends from PyPIpipinstallgoogletrendsImport googletrends packageimportgoogletrendsDocumentation pagesOn thedocumentation pagesyou can find detailed information about the working of thegoogletrendswith many examples.ExamplesExample: Get country names and abbrevationsExample: Examine google searches over timeExample: Examine google searches over time groupbyExample: Examine google searches over geographical locations.Example: Examine trending searchesReferenceshttp://www.w3.org/Consortium/Legal/copyright-softwareMaintainersErdogan Taskesen, github:erdogantContributeAll kinds of contributions are welcome!If you wish to buy me aCoffeefor this work, it is very appreciated :)