Saravanan666/pypi-org huggingface dataset:
Package: gtran
GtranA free and unlimited Google translator.Installationpip install translateor you can download the source and runpythonsetup.pyinstallHow to use as a python module?fromgtrans.gtransimportGtrantranslator=Gtran()How to translate?Default translate:Every language to Englishtext="こんにちは"out=translator.translate(text=text)print(out)HelloCustom translate:Every language to target languageto_lang="en"text="こんにちは"out=translator.translate(to_lang=target,text=text)print(out)HelloHow to detect language?Return Id:text="Hello"translator.detectId(text=text)enReturn name:text="Hello"translator.detect(text=text)EnglishDependantPycurlUrllib3Language idsLanguageIdAfrikaansafAlbaniansqAmharicamArabicarArmenianhyAzerbaijaniazBasqueeuBelarusianbeBengalibnBosnianbsBulgarianbgCatalancaCebuanoceb (ISO-639-2)Chinese (Simplified)zh-CN or zhChinese (Traditional)zh-TWCorsicancoCroatianhrCzechcsDanishdaDutchnlEnglishenEsperantoeoEstonianetFinnishfiFrenchfrFrisianfyGalicianglGeorgiankaGermandeGreekelGujaratiguHaitian CreolehtHausahaHawaiianhaw (ISO-639-Hebrewhe or iwHindihiHmonghmn (ISO-639-2)HungarianhuIcelandicisIgboigIndonesianidIrishgaItalianitJapanesejaJavanesejvKannadaknKazakhkkKhmerkmKinyarwandarwKoreankoKurdishkuKyrgyzkyLaoloLatinlaLatvianlvLithuanianltLuxembourgishlbMacedonianmkMalagasymgMalaymsMalayalammlMaltesemtMaorimiMarathimrMongolianmnMyanmar (Burmese)myNepalineNorwegiannoNyanja (Chichewa)nyOdia (Oriya)orPashtopsPersianfaPolishplPortuguese (Portugal Brazil)ptPunjabipaRomanianroRussianruSamoansmScots GaelicgdSerbiansrSesothostShonasnSindhisdSinhala (Sinhalese)siSlovakskSlovenianslSomalisoSpanishesSundanesesuSwahiliswSwedishsvTagalog (Filipino)tlTajiktgTamiltaTatarttTeluguteThaithTurkishtrTurkmentkUkrainianukUrduurUyghurugUzbekuzVietnameseviWelshcyXhosaxhYiddishyiYorubayoZuluzu
Package: gtrans
Free Google Translate API. It works with selenium and Chrome.
For each translation it uses public Google Translate web service.Requerements:Python 3.6[Google Chrome](https://www.google.com/chrome/)[selenium](http://selenium-python.readthedocs.io/installation.html)[lxml](http://lxml.de/)[Beautiful Soup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/)[nltk](https://www.nltk.org/)FeaturesText translationHTML markuped text translationInstallation$ pip install gtransExample usagefromgtransimporttranslate_text,translate_htmltext='''
Jones and Palin met at Oxford University, where they performed together
with the Oxford Revue. Chapman and Cleese met at Cambridge University.
Idle was also at Cambridge, but started a year after Chapman and Cleese.
'''html='''
<h1>Нил Армстронг</h1>
<p>Нил Армстронг родился в городе Уапаконета, штат Огайо,
в семье Стивена Армстронга и Виолы Энгель.</p>
<p>Родился 5 августа 1930 года. Он имел шотландско-ирландское
и немецкое происхождение.</p>
<p>У него были младшие сестра и брат: Джун и Дин. Отец,
Стивен Армстронг, работал
аудитором на правительство штата, и после рождения Нила
семья часто переезжала из
города в город: они успели пожить в двадцати различных
городах до того, как окончательно
осели в Уапаконете (штат Огайо) в 1944 году.</p>
'''print('*'*50)print(translate_text(text,'en','ru'))print('='*50)print(translate_html(html,'ru','en'))print('*'*50)Output**************************************************
Джонс и Пэйлин встретились в Оксфордском университете, где они выступали вместе с Oxford Revue.
Чепмен и Клиз встретились в Кембриджском университете. Идл был также в Кембридже, но начал через
год после Чепмена и Клиса.
==================================================
<h1>Neil Armstrong</h1> <p>Neil Armstrong was born in Huapakoneta, Ohio, to the family
of Stephen Armstrong and Viola Engel.</p> <p>He was born on August 5, 1930. He had Scottish-Irish
and German descent.</p> <p>He had a younger sister and brother: June and Dean. Father Steven Armstrong
worked as an auditor for the state government, and after the birth of Neil, the family often moved
from city to city: they managed to live in twenty different cities before finally settling in Wapakonet,
Ohio, in 1944.</p>
**************************************************Changelog0.2updates in modulesmultithreading modeupdates in markuped text translationchange PhantomJS to Chromedriver0.1First published working version.AuthorSergii Chernenko <mailto:4e.sergei@gmail.com>
Package: gtranstomp3
""IMPORTANT""
Browser driver is essential to work, please go to pypi.org/project/selenium/ find suitable driver under "Drivers" and put in the same directory you execute this program or in your $PATH
Default browser is Chrome, to change, please add -d firefox/edge/safari after command, or --driverInput can be any type of text file, as long as it can be read.
gtranstomp3 is a tool that can translate English word or sentence into Traditional Chinese and get the example sentences if existed.
Then combine the text by the order of 3 English word, 1 Chinese word and all example sentences.
After combination, the result will be pronounced by 'Miss Google' and store into mp3 file.All the input files must be store in 'input' directory where is the same directory you execute the file.
To use this function, add -i or --inputBatch of copy and paste is available, for example, you can copy the following words or phrases:old
new
milk
apple
umbrella
momentum
Newton
make up
look intoBut the word should be in the next line, otherwise it would be seen as a sentence.To finish entering, just press enter for none input to start translating and formatting.
The mp3 file will be store in the 'output' directorry, where is the same directory you execute the file.HOW TO USE
python main.py -option
-i --input  use file as input word
-d --driver change browser
Package: gtrendspy
Pull and merge data from the Google Trends for Health APIThis code has no license. Theodore L Caputi (Copyright 2020) retains all rights over all code in this package. Unauthorized use, including reuse, modification, and distribution, is forbidden.UsageTo use thegtrends package for Python3, you'll need to request an API Key from Google. You can do that easilyhere.The main function of the package istheo_timeline, a function that pulls and merges data from the Google Trends API and saves a single CSV file for each term (dates on the index and geographies as the columns). Note that multiple files will be created if multiple timeframes are requested. An example script would be:from gtrendspy import timeline

timeline.theo_timeline(
    terms = ['cat', 'cat + food'],
    names = ['cat', 'food'],
    start = '2018-01-01',
    end = '2020-02-01',
    timeframe_list = ['month'],
    geo_country_list = ['US', 'CA'],
    worldwide = False,
    timestep_years = 1,
    batch_size = 2,
    us_states = False,
    outpath = "/path/to/output/directory",
    creds = "/path/to/info.txt"
)This script would pull monthly data for the search termscatandcat + foodfor both the US and Canada between 1 Jan 2018 and 1 Feb 2020, and then reformat that data into two CSV files (cat_month.csvandfood_month.csv, respectively). Each of these CSV files would be formatted such that the first column (timestamp) gives the month and the second and third columns (US and CA) give search queries for the US and Canada, respectively.This package is intended to be used in conjunction with thegtrendR package for R.Getting StartedNote: This package assumes use of Python 3.X and pip3. It works on Linux and Windows OS.Install from pip(1) pip install from Githubpip install gtrendspy(2) pip install requirements.txtpip install -r requirements.txt(3) Create acredsfile setting your own parameters (DISCOVERY_URL, API_KEY)Your creds file should look something like this. You'll have access to both once Google approves your request for an API Key.DISCOVERY_URL = "XXX"
API_KEY = "XXX"(4) Begin using the package! The merged output will be in the directory you named asoutpath.Tarball(1) Request tarball (gtrends.tar.gz) fromtcaputi@gmail.com(2) Run the command:pip install --upgrade /path/to/gtrends.tar.gz(3) Install dependencies using the command:pip install -r /path/to/gtrends/requirements.txt(4) Create acredsfile setting your own parameters (see above)(5) Begin using the package! The merged output will be in the directory you named asoutpath.
Package: gtrends-tools
# gtrends-toolsgtrends-tools provides an unofficial interface for automating the retrieval of search frequency data from the Google Health Trends API. While Google Trends has a publicly available browser tool at <http://trends.google.com/trends> with unofficial interfaces in Python [[1]](https://github.com/GeneralMills/pytrends) and R [[2]](https://github.com/PMassicotte/gtrendsR), the Google Health Trends API provides more control in selecting data, has higher download rates, and arguably returns more precise search trends. However, to use this tool, a Google Health Trends API key is required for access to Google's servers.I hope to expand this package by adding tools for Google Correlate and methodologies for feature selection and engineering of search queries. The aim is to provide more relevant and accurate data for machine learning projects.## InstallationTo install gtrends-tools with pip, run: `pip install healthtrends`To install gtrends-tools from source, first clone the repository and then run:`python setup.py install`## UsageHere is a simple example of `gtrends-tools` usage.```pythonimport healthtrendsDIR = '/home/fl16180/'queries = ['tofu', 'exercise']gt = healthtrends.TrendsSession(api_key='xxx')gt.request_trends(term_list=queries, geo_level='country', geo_id='US')gt.save_to_csv(directory=DIR, fname='healthy_trends.csv')```Parameters for request_trends are:- term_list: list of search term queries- geo_level: geographic location, one of 'country', 'region', or 'dma'- geo_id: name of the geographic location, e.g. 'US' (country), 'US-NY' (region), '501' (dma)- start_date: first day to download data from, in form 'YYYY-MM-DD'. Defaults to 2004-01-04.- end_date: last day to download data from, in form 'YYYY-MM-DD'. Defaults to today's date.- freq: time interval of data, one of 'day', 'week', 'month', 'year'. Defaults to 'week'For additional examples, refer to the [included scripts](bin/example.py). I will add more detailed documentation of parameters later, as well as scripts to get data remotely (for IP restrictions on API access).## ResearchSearch frequencies obtained from the Google Trends API using this code (or previous versions) have been an integral part of research papers including [[1]](https://publichealth.jmir.org/2018/1/e4/).## CreditsPackage structure inspired by <https://github.com/GeneralMills/pytrends>The original Google Health Trends API script has been passed around a few times before being adapted by Andre Nguyen and passed to me. I don't know what the original source is but have seen duplicate of the original script in other github repos. As such, I felt that converting it into a package with OOP interface would best facilitate scientific sharing of research methods.
Package: gtrick
gtrick: Bag of Tricks for Graph Neural Networks.gtrick is an easy-to-use Python package collecting tricks for Graph Neural Networks. We test and provide powerful tricks to boost your models' performance.Trick is all you need!(Chinese Introduction)TrickTrickExampleTaskReferenceVirtualNodeDGLPyGgraphOGB Graph Property Prediction ExamplesFLAGDGLPyGnode*graphRobust Optimization as Data Augmentation for Large-scale GraphsFingerprintDGLPyGmolecular graph*Extended-Connectivity FingerprintsRandom FeatureDGLPyGgraph*Random Features Strengthen Graph Neural NetworksLabel PropagationDGLPyGnode*Learning from Labeled and Unlabeled Datawith Label PropagationCorrect & SmoothDGLPyGnode*Combining Label Propagation And Simple Models Out-performs Graph Neural NetworksCommon NeighborsDGLPyGlink*Link Prediction with Structural InformationResource AllocationDGLPyGlink*Link Prediction with Structural InformationAdamic AdarDGLPyGlink*Link Prediction with Structural InformationAnchor DistanceDGLPyGlink*Link Prediction with Structural InformationInstallationNote: This is a developmental release.pipinstallgtrickBenchmarkThe results listed below are implemented by PyG. You can find the results of DGL inDGL Benchmark.Graph Property PredictionDatasetogbg-molhivTrickGCNGIN—0.7690 ± 0.00530.7778 ± 0.0130+Virtual Node0.7581 ± 0.01350.7713 ± 0.0036+FLAG0.7627 ± 0.01240.7764 ± 0.0083+Random Feature0.7743 ± 0.01340.7692 ± 0.0065Random Forest + Fingerprint0.8218 ± 0.0022Node Property PredictionDatasetogbn-arxivTrickGCNSAGE—0.7167 ± 0.00220.7167 ± 0.0025+FLAG0.7187 ± 0.00200.7206 ± 0.0013+Label Propagation0.7212 ± 0.00060.7197 ± 0.0020+Correct & Smooth0.7220 ± 0.00370.7264 ± 0.0004Link Property PredictionDatasetogbn-collabTrickGCNSAGE—0.4718 ± 0.00930.5140 ± 0.0040+Common Neighbors0.5332 ± 0.00190.5370 ± 0.0034+Resource Allocation0.5024 ± 0.00920.4787 ± 0.0060+Adamic Adar0.5283 ± 0.00480.5291 ± 0.0032+AnchorDistance0.4740 ± 0.01350.4290 ± 0.0107
Package: gtsam-stubs
gtsam-stubsPEP 561 style type annotations for GTSAM.Note this package may have bugs (wrong annotations), and some return types should not beAnybut annotated with the actual return types.If you encounter such types, please help by replacing them with the actual type (likeUnion[Isotropic, Unit]), and make a PR to this repo.Installpip install gtsam-stubsOr, runsetup.pyafter cloning this repo.LICENSEBSD 3-Clause
Package: gtsh
A toolbox for code janitors handle git operations within world of git.BackgroundGit Utils combines most of boring and sickening commands that you need to do
with git.Definitiongittish: Having the characteristics or likeness of a git. Something sickening.
Hence the namegtsh(gittish).Run gtshgtshis a python wrapper forGitto run tasks
that require obscure magic. Tool documents itself.Installationpip3 install gtshDocumentationCommand ReferenceContributing
Package: gtsne
Python-GTSNEPython library containing GTSNE algorithms.Global t-Distributed Stochastic Neighbor EmbeddingInstallationRequirementscblasoropenblas.
Tested version is v0.2.5 and v0.2.6 (not necessary for OSX).From PyPI:pip install gtsneUsageBasic usage:fromgtsneimportgtsneX_2d=gtsne(X)ExamplesIrisAlgorithmsAcknowledgementsThis code is adapted from codeBarnes-Hut-SNESpecial thanks to Laurens van der Maaten and Daniel Rodriguez.Additional resourcesSeeBarnes-Hut-SNE(2013), L.J.P. van der Maaten. It is available onarxiv.
Package: gtt-python-client
gtt-python-client=======================Python bindings for Google Tranlator Toolkit APIhttp://code.google.com/apis/gtt/Alpha version, have only basic support (models, ACL) yet.Installation------------pip install gtt-python-clientUsage----->>> import translator.client>>> client = translator.client.TranslatorToolkitClient()>>> client.client_login('some.google@account', 'P4ssW0rD', 'gtt-client')>>> document = client.get_documents().entry[0]>>> acl_link = document.find_acl_link()>>> client.add_acl(acl_link, 'other.gooogle@account', 'writer')
Package: gttrl
Glomatico's Toontown Rewritten LauncherA cross-platform CLI launcher for Toontown Rewritten written in Python and installable via pip.Table of contentsGlomatico's Toontown Rewritten LauncherTable of contentsFeaturesInstallationUsageConfigurationLogin modesFeaturesCross-platformAuto login with accounts stored in a fileLightweight and fastEasy to install and useHighly configurableInstallationInstall Python 3.7 or higherInstall gttrl using pip:pipinstallgttrlUsageTo run the launcher, simply execute the following command:gttrlConfigurationgttrl can be configured using the command line arguments or the config file. The config file is created automatically when you run gttrl for the first time at~/.gttrl/config.jsonon Linux and%USERPROFILE%\.gttrl\config.jsonon Windows. Config file values can be overridden using command line arguments.Command line argument / Config file keyDescriptionDefault value-l,--login-mode/login_modeLogin mode to use.credentials-u,--username/ -Account username.null-p,--password/ -Account password.null-a,--account-name/account_nameAccount name provided in accounts file.null--accounts-file-path/accounts_file_pathPath to a .ini file containing account credentials<home folder>/.gttrl/accounts.ini--play-cookie/ -Play cookie.null--game-server/ -Game server.null--config-file-path/ -Path to a .json file containing the launcher configuration.<home folder>/.gttrl/config.json--game-dir-path/game_dir_pathPath to Toontown Rewritten game directory.<home folder>/.gttrl/Toontown Rewritten--no-config-file/ -Don't read from config file and don't write the default config file.false--display-game-log/display_game_logDisplay the game log in the terminal.false-s,--skip-update/skip_updateSkip checking for game updates.false--print-play-cookie-and-server/print_play_cookie_and_serverPrint the play cookie and game server and exit.falseLogin modesIf you don't provide the necessary values for a login mode, either through the command line or the config file, you will be prompted to enter them.credentials: Manually enter your account credentials. This is the default login mode.accountsfile: Select an account from an accounts file. The accounts file must be in the following format:[account1]username=myusernamepassword=mypassword[account2]...playcookie: Manually enter a play cookie and game server. You can get your play cookie and game server by enabling theprint_play_cookie_and_serveroption with one of the other login modes. In theory, you can share your play cookie and game server with other people to let them play on your account without giving them your username and password.
Package: gTTS
gTTSgTTS(Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate's text-to-speech API.
Write spokenmp3data to a file, a file-like object (bytestring) for further audio manipulation, orstdout.https://gtts.readthedocs.io/FeaturesCustomizable speech-specific sentence tokenizer that allows for unlimited lengths of text to be read, all while keeping proper intonation, abbreviations, decimals and more;Customizable text pre-processors which can, for example, provide pronunciation corrections;Installation$ pip install gTTSQuickstartCommand Line:$ gtts-cli 'hello' --output hello.mp3Module:>>> from gtts import gTTS
>>> tts = gTTS('hello')
>>> tts.save('hello.mp3')Seehttps://gtts.readthedocs.io/for documentation and examples.DisclaimerThis project isnotaffiliated with Google or Google Cloud. Breaking upstream changescanoccur without notice. This project is leveraging the undocumentedGoogle Translatespeech functionality and isdifferentfromGoogle Cloud Text-to-Speech.ProjectQuestions & communityChangelogContributingLicenceThe MIT License (MIT)Copyright © 2014-2024 Pierre Nicolas Durette &Contributors
Package: gt-tsp
# Traveling Salesperson Problem - Solutions in Pythonhttps://api.travis-ci.org/p13i/Traveling-Salesman-Problem.svg?branch=master## Installation withpip`bash pip installgt-tsp`## Developer installation`bash git clonehttps://github.com/p13i/Traveling-Salesperson-Problem.gitgt-tspcdgt-tsppython3-mvenv venv source venv/bin/activate bash ./bin/install.sh `## TestingCare has been taken to develop unit tests and ensure this code follows PEP8 conventions and type checking. Useflake8for coding style and type checking. Type checking withmypyis only supported in Python 3.5+ so please install that version before continuing.`bash bash ./bin/test.sh `## Publishing`bash python setup.py sdist python setup.py sdist upload `
Package: gTTS_Simple
gTTS_simple
Rendre encore plus simple de quelque chose de pas compliquéAuteur: Cyril Coelho -Version 1.2Pas besoin de paniquer ceci va vous aider a comprendre comment ça marche
Les dependances sont: gTTS et pygame
Installez les avec pip et installer ensuite gTTS_Simple:pip install gTTS pygame
pip install gTTS_SimpleEnsuite voilà comment utiliser cette librairie,
voila comment faire de la synthèse vocale:from gTTS_Simple imoport *
v = voice(“ceci est un test”,”fr”,False)
v.compilation(“test.mp3”)
v.lecture()Vous pouvez a tout moment stopper la lecture avec:v.stop()Voila c’est pas plus compliqué
Package: gtui
gtuiTask scheduler & executor with text-based user interface, able to:declare task & dependency as a graphexecute task graphshow task status, stdout & logprovide a nice user interfaceTo install:$ pip install gtuiQuickstartLet's say we have some helloworld tasks & their dependencies like this:We need to createTaskand add them toTaskGraph:importtimeimportloggingfromgtuiimportTask,TaskGraphdeffoo(n):logging.info('foo(%s) is called',n)print('Start to sleep%sseconds.'%n)time.sleep(n)print('Hello World!')t1=Task('t1',func=foo,args=[0.1])t2=Task('t2',func=foo,args=[1])t3=Task('t3',func=foo,args=[1])t4=Task('t4',func=foo,args=[0.5])g=TaskGraph()g.add_task(t1)g.add_task(t2,waiting_for=t1)g.add_task(t3,waiting_for=t1)g.add_task(t4,waiting_for=[t2,t3])g.run()TaskGraph.runstarts the text user interface, and you can navigate through tasks, see their status, output and logs:Keybindings:t : toggle tail -f mode, will follow text when enabledtab : switch between output & logj/k : select previous/next taskh/l : page up/down↑/↓ : scroll up/down one liney : copy textq : exitTask & TaskGraphTaskdefines what to do and has an unique name:# foo(*args, **kwargs) will be calledt=Task(name='foo',func=foo,args=[1,2],kwargs={'foo':'bar'})TaskGraphdefines execution order of a set of tasks, it provides method to declare task & dependency:g=TaskGraph()g.add_task(t1)# added task t1g.add_task(t2,waiting_for=t1)# added task t2, t2 runs after t1 finishesg.add_tasks([t3,t4])# added task t3, t4g.add_dependency(t3,waiting_for=[t1,t2])# declare t3 to run after t1 & t2 finishWhenTaskGraphcontains a cycle denpendency,runmethod will throw aValueError. You can also usehas_cycleto
check:>g=TaskGraph()>g.add_tasks([t1,t2])>g.add_dependency(t1,waiting_for=t2)>g.add_dependency(t2,waiting_for=t1)>g.has_cycle()[t1,t2,t1]Run OptionsTaskGraph.runprovides some options:g.run(title='Demo',# Text shown at the left bottom cornercallback=None,# A function called when execution fail or succeedlog_formatter=None,# An instance of logging.Formatter, to specify the log formatexit_on_success=False# whether exit tui when execution succeed)callbackcan be used to notify the execution result, it will be called with an boolean indicating whether execution succeed.gtui.callbackhas some common callbacks:# emit a desktop notification, use osascript on mac and notify-send on linuxfromgtuiimportcallbackg.run(callback.desktop_nofity(title='Plz See Here!',success_msg='Success',fail_msg='Fail'))Possible Problem with StdoutWriting to stdout will break the TUI display.gtuiruns each task in a new thread withsys.stdoutreplaced so functions likeprintwill just work fine. When creating a new thread inside a task,gtui.IORedirectedThreadcan be used to achieve the same result:fromgtuiimportIORedirectedThreadt=IORedirectedThread(target=print,args=['hello world'])t.start()t.join()content=t.get_stdout_content()However,gtuidoesn't try to deal with other cases so you should take care of it by yourself.
Package: gtuworld
GTU WorldDownload GTU papers within seconds.InstallationpipinstallgtuworldUsageimportgtuworldbranch="BE"# BE or DIsubject_codes=[3110002,3110005]# Enter your subject_codes heregtuworld.download(branch,subject_codes)Please note:BE and DI papers are available in this release.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT