Saravanan666/pypi-org huggingface dataset:
Package: tt_streams
Provides a means of creating streams of contentUsageYou can use the tt_streams to collect different models from different apps into
a unified stream of models.  Streams are made up of a series ofStreamItemsubclasses that you write that are specific to each app that they are used in.To skip straight ahead to simple (bordering on naive) implementation examples,
check out theproject/example/models.pyfile.Each Django app that wants to expose its models to streams should do two things:Create a specific*Itemmodel.  For example,StoryItemshould subclass
theStreamItemmodel and provide a connection via aForeignKeyto the
model that is opting in,``Story`` in this case.Create a way to get associate those models with aStream.  This is most
commonly done via an inline interface to theStreamItemsub-class.Beyond these requirements, everything else you do with your subclass ofStreamItemis up to you.  It’s common to use yourStreamItemclass as a
cache table so you don’t have to send another query to the database.For example, theStoryItemautomatically stores the title of its relatedStorymodel when it is saved, and a receiver is hooked up to thepost_savesignal forStoryto ensure that all of itsstream_itemsare resaved each
time it is saved.There are a couple of things to note:You can name your subclass ofStreamItemwhatever you would likeYou can name your related field whatever you likeIt automatically has apub_datethat youcanuse for ordering, but they
are not ordered by defaultInstallation & ConfigurationYou can install the latest release oftt_streamsusingpip:pip install tt_streamsMake sure to addtt_streamsto yourINSTALLED_APPS.  You
can add this however you like.  This works as a copy-and-paste solution:INSTALLED_APPS += ["tt_streams", ]Once installed, you have to run eithersyncdb, ormigrateif you are
usingSouth.ContributingCreate something awesome – make the code better, add some functionality,
whatever (this is the hardest part).Fork itCreate a topic branch to house your changesGet all of your commits in the new topic branchSubmit apull requestLicenseCopyright 2013 Texas TribuneLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: tts-watson
# tts-watsonText to speech using watson**Note:** To gain in performance response from watson are streamed and directly send to pyaudio to hear it.## Requirements- **Python 2.7**- **Pip**- **portaudio**, can be installed with `brew install portaudio` (mac) or `apt-get install portaudio19-dev`(linux)## InstallationInstall with pip: `pip install tts-watson`## Run the playgroundSimply run in command line: `tts-watson text to sound i want` (you will hear: `text to sound i want`)**At the first launch it will create a config file located to `~/.config-tts-watson.yml` and ask you your watson credentials**## Usage for developersBootstrap example:```pythonfrom tts_watson.TtsWatson import TtsWatsonttsWatson = TtsWatson('watson_user', 'watson_password', 'en-US_AllisonVoice') # en-US_AllisonVoice is a voice from watson you can found more to: https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/text-to-speech/using.shtml#voicesttsWatson.play("The text which i want to be a sound")```
Package: tts-wrapper
TTS-WrapperContributions are welcome! Check ourcontribution guide.TTS-Wrappermakes it easier to use text-to-speech APIs by providing a unified and easy-to-use interface.Currently the following services are supported:AWS PollyGoogle TTSMicrosoft TTSIBM WatsonPicoTTSSAPI (Microsoft Speech API)InstallationInstall using pip.pipinstallTTS-WrapperNote: for each service you want to use, you have to install the required packages.Example: to usegoogleandwatson:pipinstallTTS-Wrapper[google,watson]For PicoTTS you need to install the package on your machine. For Debian (Ubuntu and others) install the packagelibttspico-utilsand for Arch (Manjaro and others) there is a package calledaur/pico-tts.UsageSimply instantiate an object from the desired service and callsynth().fromtts_wrapperimportPollyTTS,PollyClienttts=PollyTTS(client=PollyClient())tts.synth('<speak>Hello, world!</speak>','hello.wav')Notice that you must create a client object to work with your service. Each service uses different authorization techniques. Check outthe documentationto learn more.Selecting a VoiceYou can change the default voice and lang like this:PollyTTS(voice='Camila',lang='pt-BR')Check out the list of available voices forPolly,Google,Microsoft, andWatson.SSMLYou can also useSSMLmarkup to control the output of compatible engines.tts.synth('<speak>Hello, <break time="3s"/> world!</speak>','hello.wav')It is recommended to use thessmlattribute that will create the correct boilerplate tags for each engine:tts.synth(tts.ssml.add('Hello, <break time="3s"/> world!'),'hello.wav')Learn which tags are available for each service:Polly,Google,Microsoft, andWatson.AuthorizationTo setup credentials to access each engine, create the respective client.PollyIf you don't explicitly define credentials,boto3will try to find them in your system's credentials file or your environment variables. However, you can specify them with a tuple:fromtts_wrapperimportPollyClientclient=PollyClient(credentials=(region,aws_key_id,aws_access_key))GooglePoint to yourOauth 2.0 credentials filepath:fromtts_wrapperimportGoogleClientclient=GoogleClient(credentials='path/to/creds.json')MicrosoftJust provide yoursubscription key, like so:fromtts_wrapperimportMicrosoftClientclient=MicrosoftClient(credentials='TOKEN')If your region is not the default "useast", you can change it like so:client=MicrosoftClient(credentials='TOKEN',region='brazilsouth')WatsonPass yourAPI key and URLto the initializer:fromtts_wrapperimportWatsonClientclient=WatsonClient(credentials=('API_KEY','API_URL'))PicoTTS & SAPIThese clients dont't require authorization since they run offline.fromtts_wrapperimportPicoClient,SAPIClientclient=PicoClient()# orclient=SAPIClient()File FormatBy default, all audio will be a wave file but you can change it to a mp3 using theformatoption:tts.synth('<speak>Hello, world!</speak>','hello.mp3',format='mp3)LicenseLicensed under theMIT License.
Package: tttb
Tensor Train ToolboxThis is a pure python library that handles Tensor Train decomposition of tensors. This library. The module contains two main classes Tensor, and TensorTrain. Both of these inherit from an abstract base class BaseTensor that provides a common API.Author: Tim Moltenotim@elec.ac.nz. Elec Research Group, Department of Physics. University of Otago.The Tensor ClassThis class is a wrapper around a numpy ndarray.The TensorTrain ClassThis class is a Tensor Train Decomposition of a tensor (see reference [1])/ The magic property of these decompositions is that their storage requirements and their computation requirements to not scale exponentially with the tensor dimension N. Thus for high-dimensional or very find grids, TensorTrain decompositions of tensors are far more efficient.The tradeoff is accuracy. Creating a TT representation of a tensor does not preserve perfect accruacy for high rank tensors.Will have a class Heirarchy so that Tensors are a class, and TensorTrain is a subclass.References[1] I. V. Oseledets. "Tensor-Train Decomposition" SIAM J. Sci. Comput., 33(5), 2295–2317.https://doi.org/10.1137/090752286
Package: tt-terminal-translator
Terminal TranslatorTerminal Translator is a translation CLI that uses theGoogle Cloud API.DocumentationSee thefull documentationInstallationInstallation is very simple, just run the following command in the terminal:pipinstalltt-terminal-translatorBasic UsageThe CLI consists of two commands,ttandtt-configure.ttttis the main CLI command.UsageBasically we call the command passing the text to be translatedBy default the text will be translated toen-usttolamundoWe can also inform the target language for the translationttolamundo--targetes# spanishThere is also a parameter to translate directly into Portuguesetthelloworld-pIn addition there is a parameter to copy the output directly to the clipboardtt-cholamundoFor more information use the parameter--helptt--helptt-configurett-configureis only for the initial configuration of the Google Cloud API credentials, as seen in thesettings section.UsageBasically we call the command passing two arguments, first the project-id followed by the path of the credentials Json file.tt-configure<project-id><google-api-credentials>For quick help use the--helpargument.tt-configure--help
Package: tttesting-cli
Edit a file, create a new file, and clone from Bitbucket in under 2 minutesWhen you're done, you can delete the content in this README and update the file with details for others getting started with your repository.WeÅ recommend that you open this README in another tab as you perform the tasks below. You canwatch our videofor a full demo of all the steps in this tutorial. Open the video in a new tab to avoid leaving Bitbucket.##PrerequisitDownload git first
Download IntelliJ Second
Step 3Edit a fileYou’ll start by editing this README file to learn how to edit a file in Bitbucket.ClickSourceon the left side.Click the README.md link from the list of files.Click theEditbutton.Delete the following text:Delete this line to make a change to the README from Bitbucket.After making your change, clickCommitand thenCommitagain in the dialog. The commit page will open and you’ll see the change you just made.Go back to theSourcepage.Create a fileNext, you’ll add a new file to this repository.Click theNew filebutton at the top of theSourcepage.Give the file a filename ofcontributors.txt.Enter your name in the empty file space.ClickCommitand thenCommitagain in the dialog.Go back to theSourcepage.Before you move on, go ahead and explore the repository. You've already seen theSourcepage, but check out theCommits,Branches, andSettingspages.Clone a repositoryUse these steps to clone from SourceTree, our client for using the repository command-line free. Cloning allows you to work on your files locally. If you don't yet have SourceTree,download and install first. If you prefer to clone from the command line, seeClone a repository.You’ll see the clone button under theSourceheading. Click that button.Now clickCheck out in SourceTree. You may need to create a SourceTree account or log in.When you see theClone Newdialog in SourceTree, update the destination path and name if you’d like to and then clickClone.Open the directory you just created to see your repository’s files.Now that you're more familiar with your Bitbucket repository, go ahead and add a new file locally. You canpush your change back to Bitbucket with SourceTree, or you canadd, commit,andpush from the command line.
Package: ttt-game
TTT-gameA simple tic tac toe game implementationUsageInstallationTesting builds:python-mpipinstall-ihttps://test.pypi.org/simple/ttt-gameProduction builds:python-mpipinstallttt-gamettt-game module exports main game classGameandPlandTrenums to simplify typing.fromttt_gameimportGame,Tr,PlGameclassclassGame:"""Board indexes preview:[[0, 1, 2],[3, 4, 5],[6, 7, 8]]Board array itself:[Tr.E, Tr.E, Tr.E, Tr.E, Tr.E, Tr.E, Tr.E, Tr.E, Tr.E]"""_board:List[Tr]defget_board(self)->List[Tr]:"""Returns copy of game board. Use it to display board in UI."""defcheck_move(self,pos:int)->bool:"""Checks if board cell empty"""defcheck_filled(self)->bool:"""Checks if game board is filled"""defcheck_win(self,pos:int)->bool:"""Checks if this move will make player a winner."""definsert(self,pos:int,who:Tr)->None:"""Sets game board's cell to specified value. Better use `move` method when possible"""defmove(self,pos:int,who:Pl)->bool:"""Sets game board cell to specified value when possible. It also returns true if player has won."""defget_free(self)->Tuple[int]:"""Returns indexes of free game board cells"""To use it you should initialize it like below:game=Game()To make move, below code is listed.resultvariable will containTrueifPl.Xplayer won the game.result=game.move(1,Tr.X)ifresult:print("Congrats, X player won!")You also can get game board array withget_boardmethod. To visualize it you can customize code listed below.board=game.get_board()foriinrange(9):print(board[i],end=" ")ifi%3==2:print("\n",end="")"""output: Tr.E Tr.X Tr.ETr.E Tr.E Tr.ETr.E Tr.E Tr.E"""PlandTrEnumsPlhas two members:XandOmeaning X and O players.classPl(Enum):X=1O=2Trenum has all members ofPlplusEentry meaning empty cell.classTr(Enum):E=0X=Pl.XO=Pl.O
Package: tttk
tttk一个tkinter的增强库。2022~2023 By 真_人工智障（aka. rgzz666 / totowang-hhh）You can install tttk withpip install tttk本项目在对抗996工作制的行列中。tttk是一个tkinter的增强库，旨在扩展tkinter可使用的控件。注意：tttk并不能起到美化作用。不同于Tin UI、ttkbootstrap等其他tkinter扩展库，本项目全部控件都基于tkinter.Frame等原生控件进行继承和修改（类似于tkwebview2），而不是在tkinter.Canvas上进行绘制，亦或直接修改控件样式。这些控件并非为此所制作，而是整理于我过去开发的程序，这些程序中的一部分中会有这种可移植的有趣玩意。Need English?Create an issue to tell me about this. Then I will continue translating the document.效果展示本库的demo提供了完整的效果展示，详见文档内的Demo部分，下面的截图则是此demo，较为全面地展示了效果。不清楚文档是否为最新？不出意外的话，本文的最新版本将始终在GitHub存储库和基于GitHub Pages和Docsify的在线文档站可用。
Package: tt-torrent
😈 Daemon to manage torrents through tt-torrent website.Installing😈tt-torrentis tested on Ubuntu 18.04 and Windows 10 withpython >= 3.10, <= 3.11..pipinstalltt-torrentIf you plan to code and make changes, clone and install it locally.gitclonehttps://github.com/SantiiRepair/tt-torrent.git
pipinstall-e.Importfromtttorrent.new.clientimportNewClientAuthenticationfromtttorrent.new.clientimportNewClientclient=NewClient(email="user@email.com",password="password")awaitclient.auth()client.close()Uploading torrentimportsysfromtermcolorimportcoloredfromtttorrent.new.clientimportNewClientclient=NewClient(email="user@email.com",password="password")creds=awaitclient.auth()ifnotcreds:sys.exit(print(colored("[ERROR]: Something wrong has happpened while authenticate","red")))withopen("/path/to/description_text_file","r")asf:description=f.read()f.close()awaitclient.upload(category=category,torrent_path="/path/to/torrent_file",image_path="/path/to/image_file",description=description,)client.close()
Package: tttplots
tttplotsA modern Python implementation forTime-to-target Plots.Getting Started$pipinstalltttplots

$tttplots--helpReferencesRenata M. Aiex, Mauricio G. C. Resende, and Celso C. Ribeiro,TTTPLOTS: A PERL PROGRAM TO CREATE TIME-TO-TARGET PLOTS, Oct, 2005.
Package: tttpquisby
Quisbyis a tool to provide first view into the results from various benchmarks such as linpack, streams, fio etc. It doesn't aim to replace existing data viz tool but rather to provide a simplified view to the data with basic metric to understand the benchmark results from a higher level view. For detailed view, there are other tools such as pbench-dashboard, js-charts etc at hand.SetupPrerequisite: Make sure you havejinja2&makepackages installed before running anymakecommand below.InstallInstall pquisby package locally onto system$makelocalPush to PypiPush quisby to pypi$makebuild-pushPUSH_TO=pypiPush quisby to testpypi$makebuild-pushPUSH_TO=testpypiNote:  For password-less pypi authentication please create configexample
Package: tttt
tttt - tims tkinter text tagsSave and load tags for the tkinter text widget using open office format xmlFeaturesSuper easy to use api, All the commands you will need are below!Automatically indent buttons on selectionBold, Italic, Underline, Overstrike, Fonts, SizesBehavour of adding and removing tags is modeled on libre officeInstallationpip3 install ttttUsageThere is ademo pictureavaliablefromttttimportXmlManagertag_manager=XmlManager(text)bind these to your callback buttons or hotkeystag_manager.change_style('bold')tag_manager.change_style('italic')tag_manager.change_style('solid')# underlinetag_manager.change_style(('family',value))tag_manager.change_style(('size',value))tag_manager.change_style(('foreground',value))tag_manager.change_style(('background',value))Saving and loadingtag_manager.load(data)xml_data=tag_manager.save()Configuring Buttons For Indentingtag_manager.button_references={'bold':bold,'italic':italic,'underline':underline,'family':family_font_menu.var,'overstrike':overstrike,'foreground':foreground,'background':background,'size':size_menu.var}Coming Next Releasecopy/paste/saving formatted textpython2 supportChange log0.1.3bug fix - duplicating tags on save/load0.1.2overstrike addedbold/italic buttons etc will no longer steal focus from the widget0.1.1many bugs removedAuthors and ContributorsTimothy Eichler
Package: tt-util
tt_util此项目是根据@buyfakett的python使用习惯自己封装打包的包yaml_util.pyyaml的各种封装方法，主要使用read_yaml方法，来读取配置，所有配置都放在启动文件同一目录的config文件夹下，传入的filename不需要加.yamluuid_util.py把uuid的第一个值提取出来，做一层文件夹，可以让oss上快速查询和把第一层文件夹给去掉svn_util.py操作svn的各种封装方法，使用示例：# 使用示例svn_client=SVNClient(repo_url='svn://',working_copy_path='',username='',password='')checkout_output,checkout_error,checkout_code=svn_client.checkout()logging.info(f'检出日志:{checkout_output}')logging.error(f'检出错误:{checkout_error}')logging.info(f'检出返回码:{checkout_code}')update_output,update_error,update_code=svn_client.update()logging.info(f'更新日志:{update_output}')logging.error(f'更新错误:{update_error}')logging.info(f'更新返回码:{update_code}')add_output,add_error,add_code=svn_client.add("/app/temp/svn/nginx/2")logging.info(f'增加日志:{add_output}')logging.error(f'增加错误:{add_error}')logging.info(f'增加返回码:{add_code}')commit_output,commit_error,commit_code=svn_client.commit('Committing changes')logging.info(f'提交日志:{commit_output}')logging.error(f'提交错误:{commit_error}')logging.info(f'提交返回码:{commit_code}')ssh_util.pyssh到服务器的各种封装方法，使用示例：host=''password=''ssh=SSHClient(host,password)# 执行单行命令result_single=ssh.execute_command('ls -l')# 执行多行命令commands=['pwd','whoami']result_multiple=ssh.execute_commands(commands)# 上传并执行脚本local_script_path='C:\\Users\\buyfakett\\Desktop\\1.sh'remote_script_path='/root/1.sh'result_script=ssh.upload_and_execute_script(local_script_path,remote_script_path)ssh.close()exec_shell.py在当前运行的服务器上运行命令和在服务器上检测文件，使用示例：exec_shell('mkdir /test')check_file('/data','1*')aes_util.pyaes非对称加密的各种封装方法，使用示例：key='12223'data='hc刺激啊四神聪骄傲i'encrypt=encrypt_aes(data,key)print(encrypt)print(decrypt_aes(encrypt,key))qiniu_util.py七牛云oss封装，使用示例：# 上传qiniu=QiniuFunction()ret,info=qiniu.upload_file(local_file,remote_file)check_domain.py检测域名是否做了dns解析，使用示例：ifnotcheck_domain(domain):returnresp_400()else:returnresp_200()docker_util.py检测/控制docker，使用示例：# 当前运行的服务remote_host="tcp://192.168.1.1:2375"test=DockerController(remote_host)print(f"总共有这些服务正在运行：{test.list_running_object_containers()}")# 暂停容器test.stop_container('postgres')# 删除容器test.remove_container('postgres')# 获取单个容器test.inspect_container('postgres')alioss_util.py阿里云oss，使用示例：access_key_id=''access_key_secret=''endpoint='http://oss-cn-hangzhou.aliyuncs.com'bucket_name=''oss=AliyunOSS(access_key_id,access_key_secret,endpoint,bucket_name)# 上传对象object_name='test2/docker_test.py'file_path='../docker/docker_test.py'oss.upload_object(object_name,file_path)# 下载对象local_file_path='./docker_test.py'oss.download_object(object_name,local_file_path)# 删除对象oss.delete_object(object_name)# 遍历存储桶中的所有对象objects=oss.list_files_in_directory()print(objects)
Package: ttvfast
Author:Simon Walker <s.r.walker101@googlemail.com>A Python wrapper around Katherine Deck’s TTVFast C program (https://github.com/kdeck/TTVFast)InstallationInstall from pypi:pip install ttvfastor download and compile the code withpython setup.py build_ext--inplaceFor the latest development version, install with pip:pip installgit+https://github.com/mindriot101/ttvfast.gitor clone from git:git clone https://github.com/mindriot101/ttvfast-python.git
cd ttvfast-python
git submodule init
git submodule update # grabs code from TTVFastthen test that everything built properly using:$ py.test
============================== test session starts ===============================
testing/test_lweiss.py .
testing/test_models.py ...
testing/test_python_api.py ...
testing/test_ttvfast.py ...UsageTo compute the TTV properties for one or more planets:build attvfast.models.Planetinstance (see the class documentation for required parameters)pass a list of the planets in the system tottvfast.ttvfastalong with:the stellar mass in units of solar mass,the start point of the integration in days,the time step for the integration in days,and the end point for integration in days.The functionttvfast.ttvfastreturns a dictionary containingpositionsandrv. Thepositionsentry is a tuple of:a list of integer indices for which values correspond to which planet,a list of integers defining the epoch,a list of times,a list of rsky values, anda list of vsky values.The optionalrv_timesparameter takes a list of RV times on which the RV is to be calculated. If so therventry in the output
dictionary is populated with a list of RV values, and otherwiseNone.For more details, see the original C module’s documentation:https://github.com/kdeck/TTVFast/blob/master/c_version/READMECitationsIf you use this code, please cite Deck, Agol, Holman, & Nesvorny (2014),
ApJ, 787, 132, arXiv:1403.1895.-Katherine Deck, Eric Agol, Matt Holman, & David Nesvorny
Package: ttvsplit
ttsvsplit - Train, Test, Validation SplitterA simple utility designed to seamlessly split datasets into train, test, and validation sets, inspired bysklearn'strain_test_split.InstallationTo installttvsplit, use pip:pip install ttsvsplitUsageUsingttvsplitis straightforward. Import thetrain_test_val_splitfunction and apply it on your features (X) and labels (y).Here's a basic example:importnumpyasnpfromttsvsplitimporttrain_test_val_split# Sample dataX=np.array([[1,2],[3,4],[5,6],[7,8],[9,10],[11,12]])y=np.array([1,0,1,0,1,0])X_train,y_train,X_test,y_test,X_val,y_val=train_test_val_split(X,y)FunctionsThe library provides the following function:train_test_val_split(X, y, train_size=0.6, test_size=0.2, random_state=None):X: Features to be split.y: Labels corresponding to the features.train_size: Proportion of the data to be used as training data (default: 0.6).test_size: Proportion of the data to be used as testing data (default: 0.2).random_state: Seed for reproducibility.LicenseThis project is licensed under the MIT License - see the LICENSE.txt file for details.
Package: ttw
Python console util to track all your outcome connections In other words easily extendable network sniffer with some functionality to analyse requestscommand examples:sudo python3 ttw.py –verbose=true –protocol=tcp –nic=wlan0
sudo python3 ttw.py –verbose=true –protocol=all
for now only IP family is going to be supported…By default all the requests will be logged in sqlite database called ttw in the same directory To edit this settings, or disable it completely open file called ttw.py and edit lines 27,28