Saravanan666/pypi-org huggingface dataset:
Package: translationrecorder
OverviewThe recorder is attached to an existing translation function keeps
track of the inputs and outputs.The result is alocalesdirectory structure:<domain>.pot
<lang>/
<lang>/LC_MESSAGES
<lang>/LC_MESSAGES/<domain>.po
...This structure is written on process exit.Note that when the recorder is initialized, it imports any existing
message catalog. That is, it’s robust to process startup/shutdown and
can operate continuously.UsageIn Python-code, enable the translation recorder by wrapping an
existing translation function.The easiest way to wire this up is by patching the module that holds
the function (if possible):import zope.i18n
import translationrecorder

# Patch Zope's translation function
zope.i18n.translate = translationrecorder.Recorder(
    zope.i18n.translate, './locales'
    )Framework IntegrationThere’s integration included for the Pyramid and Zope/Plone
frameworks.Set the environment variableRECORD_TRANSLATIONSto an existinglocalesdirectory and run your server process:$ mkdir ./locales
$ RECORD_TRANSLATIONS=./locales bin/paster serve ...This requires that thetranslationrecordermodule is imported. This
is handled automatically on Plone. For other systems:import translationrecorderTechnically, the package applies patches against the global
translation functions of the applicable frameworks.AuthorMalthe Borch <mborch@gmail.com>Changes1.0.3 (2012-10-17)Fixed an issue where a translation would always appear with a
default text, even when not present in catalog.Fixed an issue where a message with a mapping would not get properly
decoded into a message id.1.0.2 (2012-01-13)Fixed issue where a quote appearing in a message id or translation
would corrupt on save.1.0.1 (2012-01-13)Fixed issue where generated .po-files would result in a syntax error
on compilation usingpythongettextdue to a missing initial
dummy message translation.Patch the translation domain instead of the (higher-level)
global translation function.This fixes an issue where messages would not be recorded with the
proper translation domain and the used target languages would not be
correctly registered.1.0 (2011-11-28)Initial public release.
Package: translationstring
translationstringA library used by variousPylons Projectpackages
for internationalization (i18n) duties related to translation.This package provides atranslation stringclass, atranslation string
factoryclass, translation and pluralization primitives, and a utility that
helpsChameleontemplates use
translation facilities of this package.  It does not depend onBabel, but its translation and pluralization
services are meant to work best when provided with an instance of thebabel.support.Translationsclass.Please seehttps://docs.pylonsproject.org/projects/translationstring/en/latest/for the documentation.translationstring1.4 (2020-07-09)Drop support for Python 2.6, 3.2 and 3.Update license classifiers1.3 (2014-11-05)Fix Python 3-specific test failures.Restore compatibility with Python 3.2.1.2 (2014-11-04)Add support for message contexts.If the object passed to a TranslationStringFactory__call__method is
itself a translation string, use the passed object’sdomaininstead of
the domain passed to the factory’s contstructor.  Seehttps://github.com/Pylons/translationstring/pull/12.1.1 (2012-02-08)Add MANIFEST to make sure all files are present in a release. This fixesticket 8.1.0 (2012-02-04)coerce non-string values to a string during translation, except for None.Honour mapping information passed to the translator, combining it with
mapping data already part of the translation string.Support formatting of translation strings with %-operator.0.4 (09-22-2011)Python 3 compatibility (thanks to Joe Dallago, GSOC student).Remove testing dependency on Babel.Moved to GitHub (https://github.com/Pylons/translationstring).Added tox.ini for testing purposes.0.3 (06-25-2010)Preserve default translations even if they are an empty string. This
fixes problems with Chameleon being unable to determine if a translation
is present or not.0.2 (04-25-2010)Add__getstate__and__reduce__methods to translation
string to allow for pickling.Fix bug in ChameleonTranslate.  Wheni18n:translatewas used in
templates, a translation string was inappropriately created with adefaultvalue of the empty string.  Symptom: template text would
“disappear” rather than being returned untranslated.0.1 (04-24-2010)Initial release.
Package: translator-deepl
SRTranslatorInstallPyPIpipinstallsrtranslatorUsage in Blendertin2tinhas made thisblender addon. Check it out.Usage from scriptImport stuffimportos# SRT FilefromsrtranslatorimportSrtFile# ASS FilefromsrtranslatorimportAssFilefromsrtranslator.translators.deepl_apiimportDeeplApifromsrtranslator.translators.deepl_handlerimportDeeplTranslatorfromsrtranslator.translators.translatepyimportTranslatePyfromsrtranslator.translators.pydeeplximportPyDeepLXInitialize translator. It can be any translator, even your own, check the docs, there are instructions per translator and how to create your own.translator=DeeplTranslator()# or TranslatePy() or DeeplApi(api_key) or DeepLX()Load, translate and save. For multiple recursive files in folder, checkexamples folderfilepath="./filepath/to/srt"# SRT Filesub=SrtFile(filepath)# ASS Filesub=AssFile(filepath)# Translatesub.translate(translator,"en","es")# Making the result subtitles prettiersub.wrap_lines()sub.save(f"{os.path.splitext(filepath)[0]}_translated.srt")Quit translatortranslator.quit()Usage from GUILast releasehas installers for the official srtranslatorGUI on windows (.msi) and linux (.deb, .flatpak)Package from sourceIn folder srtranslatorGUI there is a briefcase/toga GUI implementation in top of the translator core. You could create your own binary with:cd srtranslatorGUI
pip install briefcase
briefcase create
briefcase build
briefcase packageBinaries found indistfolderAlternativesKryptoSThas made a graphical user interface. You can check it outhereUsage command line# SRT filepython-msrtranslator./filepath/to/srt-iSRC_LANG-oDEST_LANG# ASS filepython-msrtranslator./filepath/to/ass-iSRC_LANG-oDEST_LANGAdvanced usageusage: __main__.py [-h] [-i SRC_LANG] [-o DEST_LANG] [-v] [-vv] [-s] [-w WRAP_LIMIT] [-t {deepl-scrap,translatepy,deepl-api,pydeeplx}] [--auth AUTH] path

Translate an .STR and .ASS file

positional arguments:
  path                  File to translate

options:
  -h, --help            show this help message and exit
  -i SRC_LANG, --src-lang SRC_LANG
                        Source language. Default: auto
  -o DEST_LANG, --dest-lang DEST_LANG
                        Destination language. Default: es (spanish)
  -v, --verbose         Increase output verbosity
  -vv, --debug          Increase output verbosity for debugging
  -s, --show-browser    Show browser window
  -w WRAP_LIMIT, --wrap-limit WRAP_LIMIT
                        Number of characters -including spaces- to wrap a line of text. Default: 50
  -t {deepl-scrap,translatepy,deepl-api}, --translator {deepl-scrap,translatepy,deepl-api,pydeeplx}
                        Built-in translator to use
  --auth AUTH           Api key if needed on translator
  --proxies             Use proxy by default for pydeeplx
Package: translator-json
The TranslatorWhy this pluginWhen you create a multi language website, it's very long to translate all your sentences.With json_translator, you can translate a json file to many languages.The plugin will create the json file in according to the language you want to translate.google-cloud-translate==3.8.4
google-auth==1.35.0
google-api-core==2.8.0
protobuf==3.19.5Pre requiredTo use json_translator plugin you have to create a Google Cloud account.See :https://cloud.google.comPlease verify in your apis dashboard that cloud translation API service is enable.In the cloud translation service, go to your credentials.Please create a service account.You will have a googlekey.json file which is required to use the API.How use itTo use the plugin please write the command linejson_translator [options]You have to use some options.Google file (Required)json_translator -c googlekey.json
json_translator --credentials googlekey.jsonUsed to set the Google credentials.File to translate (Required)json_translator -i myFile.json
json_translator --input myFile.jsonUsed to set the file to translate.Destination (Required)json_translator -o myFile.json
json_translator --output myFile.jsonUsed to set the file to translate.Language Source (Optional)json_translator -f en
json_translator --from enUsed to set the source language. By default, value is FR (French).Language(s) result (Optional)json_translator -l de,it,en
json_translator --languages de,it,enList available languagesjson_translator -aExamplesjson_translator -c googlekey.json -i fr.json -o ./myPath/ -l en,de,ko,it,es
Package: translator-template
translator-templateGenerate a Word Document Template for TranslatorPrerequisitepython 3.7 or greaterpoetryDownload the dependent modules by runningpoetry installRunning the codepoetry run generate --in-file {input-text-file} --out-file {output-docx-file}If the--out-fileargument is omitted, the--in-fileargument value is used, with the extension replaced with.docx.Input Format SpecificationIn regular expression form the input is the following:^((\d|\*\d+\*)-?)*$For a given page, the number of panels is represented either by a single digit if the count of panels is fewer than 10.  When the count of panels is greater than or equal to 9, the count is sandwiched between a pair of asterisks.The panel count can be optionally followed by a hyphen.  This signifies that the panels span two pages.Output SpecificationThe output is a Word DOCX file.  This contains three paragraph styles:PageParaPanelParaQuotePara
Package: translator-testing-model
Translator Testing ModelThis is a preliminary schema repo for defining test cases in Translator that can be reused in different test suites.  e.g. a test case in plain language might be something like"what drugs may treat MS? I expect fingolimod to return in the top 10 results in less than 5 mins."Capturing these details in metadata that is parsable and usable by test runners is the objective of this schema.  We also want to harmonize our language and nomenclature for the metadata we need (which of these data are required and which are optional for each kind of test case, etc.) so that downstream testing code can utilize a common framework for understanding.Websitehttps://TranslatorSRI.github.io/TranslatorTestingModelRepository Structureexamples/- example dataproject/- project files (do not edit these)src/- source files (edit these)translator testing model specificationschema-- LinkML schema
(edit this)datamodel-- generated
Python datamodelsPydantic V1Pydantic V2Python Dataclassestests/- Python testsDeveloper DocumentationThe project uses [Poetry](https://python-poetry.org/) to manage its dependencies. Install Poetry then:poetry shell: start up a poetry shell virtual environmentpoetry install: to install required dependenciesThen use themakecommand to generate project artifacts:make gen-project: regenerates core project artifactsmake all: make everythingmake deploy: deploys siteCreditsThis project was made withlinkml-project-cookiecutter.
Package: translit
Example usage>>> import translit
>>> text = "La question, c’est\u202f: «\u202fOù est le cœur\u202f?\u202f»"
>>> translit.downgrade(text, "latin-1")
"La question, c'est\xa0: «\xa0Où est le coeur\xa0?\xa0»"
>>> translit.downgrade(text, "ascii")
'La question, c\'est : "Ou est le coeur ?"'
>>> buf = text.encode("latin-1/translit")
>>> buf
b"La question, c'est\xa0: \xab\xa0O\xf9 est le coeur\xa0?\xa0\xbb"
>>> buf.decode("latin-1")
"La question, c'est\xa0: \xab\xa0O\xf9 est le coeur\xa0?\xa0\xbb"
>>> buf.decode("latin-1/translit")
'La question, c’est\u202f: «\u202fOù est le cœur\u202f?\u202f»'RequirementsPyEnchant
Package: translitera
^ translitera^^^ phonetically transliterate text from Kannaḍa script to English/Latin characters^^^ PrerequisitesPython 3 -https://www.python.org/(tested with Python 3.5 & 3.6)^^^ Install translitera$ pip3 install translitera^^^ How to use transliteraTranslitera can be used in the following 4 forms.To transliterate a unicode text file in Kannaḍa script into English/Latin$ cat kannada_file.txt | translitera > transliterated_file.txt2. To transliterate console input in Kannaḍa script into English/Latin` $ translitera-tಕದಂಬ kadamba $ translitera-tಕನ್ನಡ kannaḍa `To transliterate a filename in Kannaḍa script into English/Latin$ translitera -r <filename>To batch transliterate the directory contents in Kannaḍa script into English/Latin$ translitera -b <directory_name>
Package: transliteration-brute-forcer
Transliteration-BruteForcerHow toExample>>>fromtransliteration_brute_forcerimportTransliterationBruteForcer>>>transliteration_bruteforcer=TransliterationBruteForcer()>>>transliteration_bruteforcer.run('Юрий'){'Urij'}>>>transliteration_bruteforcer.custom_mapping={...'Ю':['Yu','Iy'],...'ю':['yu','iy'],...'й':['ii','iy','yy','yu'],...}>>>transliteration_bruteforcer.run('Юрий'){'Urij','Yuriyu','Iyrij','Uriyy','Yuriii','Iyriii','Iyriyy','Uriiy','Yuriyy','Iyriyu','Uriyu','Iyriiy','Yurij','Uriii','Yuriiy'}>>>transliteration_bruteforcer.run('Владимир Пехтин'){'Vladimir Pehtin'}>>>transliteration_bruteforcer.custom_mapping['х']=['kh']>>>transliteration_bruteforcer.run('Владимир Пехтин'){'Vladimir Pehtin','Vladimir Pekhtin'}>>>transliteration_bruteforcer.custom_mapping['В']=['W']>>>transliteration_bruteforcer.run('Владимир Пехтин'){'Vladimir Pekhtin','Vladimir Pehtin','Wladimir Pekhtin','Wladimir Pehtin'}
Package: translit-me
The MEHDIE Transliteration Service and Python PackageThis repository contains the source code for the MEHDIE Transliteration Service and Python package.
The service is a RESTful API that can be used to transliterate names between Hebrew, Arabic and Latin characters.
The Python package provides a Python interface to the service.The service was developed as part of the MEHDIE project-https://mehdie.org/.)MEHDIE is funded by the Israel Ministry of Science and TechnologyMOST.)InstallationYou can use the Dockerfile and cloudbuild yaml file to deploy to a cloud run service
or you can use the python package to use the service in your own code.UsagePython Package - Transliterationimportunittestfromtranslit_me.transliteratorimporttransliterateastrfromtranslit_me.lang_tablesimport*classTestTransliterate(unittest.TestCase):deftest_hebrew_arabic(self):names=['נועַם',"מאנץ'","בישינה","דימונה"]expected=['نوعَم','مانض','بيشينة','بيسينة','ديمونة','ضيمونة']res=tr(names,HE_AR)print(res)self.assertListEqual(res,expected)More examples can be found in the tests folder.RESTful APIThe service is a RESTful API that can be used to transliterate names between Hebrew, Arabic and Latin characters.importrequestsdeftransliterate_service(to_transliterate:list,from_lang:str,to_lang:str):"""This method invokes a cloud run service to transliterate a list of strings(e.g., ['نوعم', 'مانض', 'پيشينة'])from the from_lang (e.g., 'ar') to the to_lang (e.g., 'en').Supported languages: ('he','ar','en'). Anything non 'he'/'ar' will be treatedas 'en'"""url='https://hebrew-transliteration-service-snlwejaxvq-ez.a.run.app/'args={'from_lang':from_lang,'to_lang':to_lang,'data':to_transliterate}x=requests.post(url,json=args)res_list=x.json()['transliterations']returnres_listnames=["תִפְלִיס","תַרְג'","תַרוּג'ה"]from_language='he'to_language='ar'transliterate_service(names,from_language,to_language)
Package: translucent
IntroductionTranslucent provides a wrapper around the Python logging module, and is ment to
be a central place to gather all generic functionality related to logging.ExampleThe following is a sampledictConfigto configure translucent’s JSON formatter.version:1handlers:console:class:logging.StreamHandlerformatter:jsonlevel:INFOstream:ext://sys.stdoutroot:level:INFOhandlers:[console]loggers:urllib3:level:INFOformatters:default:format:'%(asctime)s%(levelname)-8s%(name)-35s%(message)s'datefmt:'%Y-%m-%d%H:%M:%S'json:():translucent.formatters.JSONnamespace:ainame:logzio-prototypedisable_existing_loggers:False
Package: translucenttb
TranslucentTBThis is a python version TranslucentTB maybe with tkinter and ctypesA lightweight utility that makes the Windows taskbar translucent/transparent on Windows 10 and Windows11.ScreenshotsUsagefromtranslucenttbimportblur# import the blur functionblur(blurtype="acrylic")# for example acrylic# choose one type from ("clear", "noeffect", "blur", "acrylic")UIfromtranslucenttbimportSettingsexample=Settings()example.mainloop()Example:fromtimeimportsleepfromtranslucenttbimportblurdefcolorful():hexdict=["#FF0000","#FF3030","#FF5656","#FF7456","#FFA500","#FF7438","#FF8956","#FFAB56","#FFB871","#FFFF00","#FFCD71","#FFE071","#FFF571","#F4FF71","#D8FF71","#C8FF71","#008000","#9FF65B","#00FFFF","#79F65B","#5FF65B","#5BF67D","#5BF69C","#5BF67D","#5BF6C5","#5BF6DC","#2AFFDC","#2AFCFF","#2AC5FF","#2AADFF","#2A87FF","#2A6BFF","#2A49FF","#0000FF","#2A35FF","#3A2AFF","#502AFF","#602AFF","#800080",]forhexcolorinhexdict:blur("noeffect",hexcolor)sleep(0.1)colorful()https://github.com/littlewhitecloud/TranslucentTB/assets/71159641/a2d0b4cc-0698-46c0-b050-e3d89c788964
Package: transly
TranslyTransly is a sequence to sequence Bi-directional LSTM Encoder-Decoder model with Bahdanau Attention
that’s trained on theCMU pronouncing dictionary,IIT Bombay English-Hindi Parallel CorpusandIIT Kharagpur transliteration corpus.Thepronunciation modulein Transly can predict pronunciation of any given word(with an American accent of course!)Take any word of any language - just transliterate the word in English (all capitals) and you are good to go.
Be it a new or old, seen or unseen, sensible or insensible word -Transly can catch’em all!Another module in Transly is thetransliteration module.
It currently supports Hindi to English and English to Hindi transliterations.Pre-trained models can be found inside the respective trained_models folders. New models can also be trained on custom data.InstallationUse the package managerpipto install translypipinstalltranslyUsagePronunciationUsing the pre-trained pronunciation modelimporttransly.pronunciationastp# let's try a hindi word# the prediction accent would be AmericanQUERY='MAKAAN'a=tp.load_model(model_path='cmu')a.infer(QUERY,separator=" ")# use infer_batch function to infer batches# use beamsearch function to perform a beam search>>'M AH0 K AA1 N'Training a new model on custom datafromtransly.seq2seq.configimportSConfigfromtransly.seq2seq.version0importSeq2Seqconfig=SConfig(training_data_path=training_data_path,input_mode='character_level',output_mode='word_level')s2s=Seq2Seq(config)s2s.fit()s2s.save_model(path_to_model=model_path,model_file_name=model_file_name)Training data file should be a csv with two columns, the input and the outputInputOutputAAAA1AABERGAA1 B ER0 GAACHENAA1 K AH0 NAACHENERAA1 K AH0 N ER0TransliterationHindi to EnglishUsing the pre-trained modelimporttransly.transliterationastlQUERY='निखिल'a=tl.load_model(model_path='hi2en')a.infer(QUERY)# use infer_batch function to infer batches# use beamsearch function to perform a beam search>>'NIKHIL'English to HindiUsing the pre-trained modelimporttransly.transliterationastlQUERY='NIKHIL'a=tl.load_model(model_path='en2hi')a.infer(QUERY)# use infer_batch function to infer batches# use beamsearch function to perform a beam search>>'निखिल'Training a new model on custom datafromtransly.seq2seq.configimportSConfigfromtransly.seq2seq.version0importSeq2Seqconfig=SConfig(training_data_path=training_data_path)s2s=Seq2Seq(config)s2s.fit()s2s.save_model(path_to_model=model_path,model_file_name=model_file_name)LicenseThe Python code in this module is distributed with Apache License 2.0
Package: transmanager
TransManager is a simple django app to deal with the translations tasks of the models content based on django-hvad.
It’s not for static files.Quick startAdd “transmanager” and “django_tables2” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'transmanager',
    'django_tables2',
]Include the transmanager URLconf in your project urls.py like this:url(r'^transmanager', include('transmanager.urls')),Runpython manage.py migrate transmanagerto create the transmanager models.Start de development server and visit:http://127.0.0.1:8000/admin/transmanager/then you can setup the languages and the translators users.Start updating your models content and you’ll see the translation tasks appear.DocumentationVisit thedocumentationfor an in-depth look at TransManager.
Package: transmat
TransmatUpload and download file via WeTransfer from terminalInstallpip install transmatUsageFirst of all you'll need a valid API Key fromWeTransfer Developers portalexport WETRANSFER_API_KEY=<your-api-key>Uploading file(s)transmat -u file1 file2 ..You can also pass a message to be shown in the WeTransfer pagetransmat -u file1 file2 .. -m "Here's the files you needed!"Downloading filetransmat -d https://we.tl/abcdef...Multiple files download are automatically zipped by WeTransfer
Package: transmission-clutch
Supportbtc: bc1q9spjh7nuqatz4pa7dscd0357p3ql588tla6af7DocumentationFound here:https://clutch.readthedocs.ioQuick startInstall the package:$pipinstalltransmission-clutchMake a client:fromclutchimportClientclient=Client()If you find the client isn’t connecting (an error will be raised), make sure you’re entering the address correctly. Referenceurllib.parse.urlparsefor parsing rules.You can specify Transmission’s address when making the client:client=Client(address="http://localhost:9091/transmission/rpc")RPC methods are separated into groups: torrent, session, queue and misc.Methods are called by first specifying a group:client.torrent.add(...)
Package: transmission-fluid
transmission-fluid is a Python wrapper for Transmission’s RPC interface.>>> from transmission import Transmission
>>> client = Transmission()
>>> client('torrent-get', ids=range(1,11), fields=['name'])
{u'torrents': [
  {u'name': u'Elvis spotted in Florida.mov'},
  {u'name': u'Bigfoot sings the hits'},
  # ...
  {u'name': u'a-song-of-ice-and-fire_final-chapter.txt'}
]}See theREADMEfor more information.
Package: transmissionrpc
Introductiontransmissionrpc is a python module implementing the json-rpc client protocol
for the bittorent client Transmission.transmissionrpc is licensed under the MIT license.Getting startedtransmissionrpc 0.11 is compatible with Transmission 1.31 - 2.82.Requirementstransmissionrpc requires:Python >= 2.6Six >= 1.1.0,https://pypi.python.org/pypi/six/Installtransmissionrpc is installed by running setup.py$ python setup.py installNOTE: You might need administrator privileges to install python modules.The setup program will take care of the simplejson requirement. Please refer to
the Transmission documentation on how to install Transmission.Developertransmissionrpc is hosted by bitbucket athttp://www.bitbucket.org/blueluna/transmissionrpc/.Copyright (c) 2008-2013 Erik Svensson.
Package: transmission-rpc
Transmission-rpc Readmetransmission-rpcis a python wrapper on top oftransmissionJSON RPC protocol,
hosted on GitHub atgithub.com/trim21/transmission-rpcIntroductiontransmission-rpcis a python module implementing the json-rpc client protocol for the BitTorrent client Transmission.Support 14 <= rpc version <= 17 (2.40 <= transmission version <= 4.0.4),
should works fine with newer rpc version but some new feature may be missing.versioningtransmission-rpcfollowSemantic Versioning,
report an issue if you found unexpected API break changes at same major version.Installpip install transmission-rpc -UDocumentshttps://transmission-rpc.readthedocs.io/en/stable/ContributingAll kinds of PRs (docs, feature, bug fixes and eta...) are most welcome.Setup Local Development EnvironmentAt first, you need to installpython,poetryandtask(or you can also run command intaskfile.yamldirectly).It's recommended to python3.10 as local development python version.poetryinstall--sync
poetryrunpre-commitinstall# install git pre-commit hooksLinttasklintTestingYou need to have a transmission daemon runningthen add a.envfileexportTR_HOST="..."exportTR_PORT="..."exportTR_USER="..."exportTR_PASS="..."tasktestLicensetransmission-rpcis licensed under the MIT license.