Saravanan666/pypi-org huggingface dataset:
Package: tiamat-pip
Tiamat PipPip handling for tiamat projectsSetupIn order to be able topip installpackages which can be used with your tiamat packaged application
you need to addtiamat-pipas a dependency and yourrun.pyshould look similar to:#!/usr/bin/env python3importsysimportmultiprocessingimporttiamatpip.cliimporttiamatpip.configureimportmainapp# Configure the path where to install the new packagestiamatpip.configure.set_user_site_packages_path("THIS SHOULD BE A HARDCODED PATH")defmain(argv):# Let's see if we should be handling pip related stuffiftiamatpip.cli.should_redirect_argv(argv):tiamatpip.cli.process_pip_argv(argv)# You can choose to `return` but there's really no need since the pip command# interceptions will trigger a `sys.exit` with the appropriate exit code.# If we reached this far, it means we're not handling pip stuff# Your application logic can resumemainapp.main(argv)sys.exit(0)if__name__=="__main__":ifsys.platform.startswith("win"):multiprocessing.freeze_support()main(sys.argv)UsageWhen your package is compiled with tiamat and includes tiamat-pip, thepipcommands get
intercepted and the code logic runs within your packaged binary python runtime.Allpipcommands and their respective CLI flags are supported.Showing thepipusage and helpyour-project-binarypip--helpyour-project-binarypipinstall--helpInstalling a python packageyour-project-binarypipinstallfooyour-project-binarypipinstallfoo>=2.1.0Listing installed packagesyour-project-binarypiplistThis will list all of the python packages that were installed using pip, which,are not included in the binary.Listing packages shipped with the binaryIf you want to know which packages, and their respective versions, were shipped
with the tiamat binary, issue the following command:your-project-binarypipfrozenThis commandis not supported bypip. We intercept the call and get the
package listing from the right place.
The CLI flags for this command are the same as forpip list.Uninstalling a packageyour-project-binarypipuninstallfooATTENTION: Only the packages installed by pip can be uninstalled. The packages
that were shipped with the binarycannotbe uninstalled.Known IssuesGetting the version of an upgraded package usingpkg_resources.get_distribution(pkgname).versionreturns the version of the package that was shipped with the tiamat binary and not the upgraded package
version. See#11for more information.
Package: tianchi
AI_HUBAI utils for developer.
such as notice、send massage when model training is over.Bind WeChat Official Account（AI_HUB）
插入在代码里的小工具，可以在模型训练结束时通过公众号及时发送微信消息给自己，提高科研效率。
inferServer: server your ai model as a API and match the tianchi eval
简单的操作把你训练好的模型变为服务API，并且支持天池大赛的流评测。INSTALLpip install ai-hubSAMPLENOTICEfromai_hubimportnotice#到AGIHub微信公众号获取个人openid如（oM8pVuBWl8Rw_vFz7rZNgeO4T8H8）,需替换为自己的openidnc=notice("oM8pVuBWl8Rw_vFz7rZNgeO4T8H8")#借助AGIHub公众号发送消息给自己nc.sendmsg("hi,AI_HUB.I am su")inferServer'''依赖：pip install ai-hub #(version>=0.1.7)测试用例：model为y=2*x请求数据为json:{"img":3}-----------post请求：curl localhost:8080/tccapi -X POST -d '{"img":3}'返回结果 6'''fromai_hubimportinferServerimportjsonclassmyInfer(inferServer):def__init__(self,model):super().__init__(model)print("init_myInfer")#数据前处理defpre_process(self,data):print("my_pre_process")#json processjson_data=json.loads(data.decode('utf-8'))img=json_data.get("img")print("processed data: ",img)returnimg#数据后处理defpost_process(self,data):print("post_process")processed_data=datareturnprocessed_data#模型预测：默认执行self.model(preprocess_data)，一般不用重写#如需自定义，可覆盖重写#def pridect(self, data)：#    ret = self.model(data)#    return retif__name__=="__main__":mymodel=lambdax:x*2my_infer=myInfer(mymodel)my_infer.run(debuge=True)#默认为("127.0.0.1", 80)，可自定义端口，如用于天池大赛请默认即可，指定debuge=True可获得更多报错信息获取OPENID1.扫描关注公众号AGIHub2.发送“openid”给公众号 即可获得openid
Package: tiangolo-markdown-include
This is an extension toPython-Markdownwhich provides
an “include” function, similar to that found in LaTeX (and also the C
pre-processor and Fortran). I originally wrote it for myFORDFortran auto-documentation
generator.InstallationThis module can now be installed usingpip.pip install markdown-includeUsageThis module can be used in a program in the following way:import markdown
html = markdown.markdown(source, extensions=[markdown_include.include'])The syntax for use within your Markdown files is{!filename!}. This
statement will be replaced by the contents offilename.
Markdown-Include will work recursively, so any included files withinfilenamewil also be included. This replacement is done prior to any
other Markdown processing, so any Markdown syntax that you want can be used
within your included files. Note that this is a change from the previous
version. It was felt that this syntax was less likely to conflict with any code
fragments present in the Markdown.By default, all file-names are evaluated relative to the location from
which Markdown is being called. If you would like to change the
directory relative to which paths are evaluated, then this can be done
by specifying the extension settingbase_path.import markdown
from markdown_include.include import MarkdownInclude

# Markdown Extensions
markdown_include = MarkdownInclude(
    configs={'base_path':'/srv/content/', 'encoding': 'iso-8859-1'}
)
html = markdown.markdown(source, extensions=[markdown_include])
Package: tianhutools
tianhutoolsauthor:Sene-mail:tianhuzong@qq.comGithub:https://github.com/tianhuzongGitee:https://gitee.com/thzsenQQ:1485319167Tianhuzong开发的工具，方便在开发中使用
1.0.2加入了加密解密内容：RSA,AES，凯撒加密1.0.3版本中，修复了维吉尼亚密码的错误，引入了与ip地址有关的类IP1.0.4版本中，新增了检测ip是否为合法的IPv41.0.5中，修复一个命名冲突2023-6-3 +0800，正式更名为tianhutool，版本重置
并加入了文本缩短new 1.0.1版本中，将文本缩短修改为使用Python标准库re,math,和第三方库jieba1.0.2版本中，修复了上个版本未将jieba安装进setup，并将rsa密钥修改为pem格式，rsa的密文，明文，签名文本与aes的密文，明文都修改为base641.0.3版本中，修改了AES加密使用的lib，修复了RSA加密出的错误
##使用方法：####安装模块pipinstalltianhutools安装完模块之后接下来就是引用了下面是引用jiami模块的类的用法fromtianhutools.jiamiimport*#-----RSA-----rsa=RSA()#生成密钥对(gongyao,siyao)=rsa.newkeys(1024)#返回生成的密钥对#加密mingwen="这是一段中文字符串"miwen=rsa.jiami(gongyao,mingwen)#返回密文#解密res=rsa.jiemi(siyao,miwen)#返回明文#数字签名sign=rsa.sign(siyao,"这是被签名的文本")#返回签名文本#签名验证res=rsa.qmyz("这是被签名的文本",sign,gongyao)#返回布尔值#-----凯撒密码-----kaisa=KaiSa()#加密miwen=kaisa.jiami("Hello,world",3)#第一个参数为欲加密的文字，除英文字母外的都不会被加密#第二个参数是偏移量，正数表示向右偏移，负数表示向左偏移#解密mingwen=kaisa.jiemi(mingwen,3)#第一个参数是密文#第二个参数是偏移量，与加密时的偏移量相同#-----AES-----aes=AES#生成AES秘钥key=aes.newkey()#自动生成随机秘钥，bytes#加密miwen,suijishu,tag=aes.jiami('这是被加密的内容',key)# 第一个参数是被加密的内容，第二个参数是秘钥# 返回值第一个是密文# 第二个是加密时生成的随机数# 第三个是加密时生成的验证标签#解密mingwen=aes.jiemi(miwen,key,suijishu,tag)# 第一个参数是密文# 第二个参数是密钥# 第三个参数是加密时生成的随机数# 第四个参数是加密时生成的验证标签#-----维吉尼亚密码-----wjny=Weijiniya()#加密miwen=wjny.jiami("这是被加密的文字",'thisisakey')#返回密文#解密mingwen=wjny.jiemi("这是被解密的文字",'thisisakey')#返回明文下面是使用ip模块的类的用法fromtianhutools.ipimport*ip=IP()#请注意，输入的ip应为IPv4地址#IP地址的基本信息infomation=ip.jbxx(ip='192.0.2.0')#ip地理位置geo=ip.geo(ip='8.8.8.8')下面是文本缩短实例fromtianhutools.textimport*text=Text()longstring="""ChatGLM-6B是清华大学知识工程和数据挖掘小组（KnowledgeEngineeringGroup(KEG)&amp;DataMiningatTsinghuaUniversity）发布的一个开源的对话机器人。根据官方介绍，这是一个千亿参数规模的中英文语言模型。并且对中文做了优化。本次开源的版本是其60亿参数的小规模版本，约60亿参数，本地部署仅需要6GB显存（INT4量化级别）。ChatGLM-6B模型卡信息：https://www.datalearner.com/ai-models/pretrained-models/ChatGLM-6B从目前的使用情况看，这个模型虽然不大，但也是与ChatGPT类似，做了针对对话的调优，使用体验很好。下图是几个对话实例：该模型的基础模型是GLM（GLM:GeneralLanguageModelPretrainingwithAutoregressiveBlankInfilling），是一个千亿基······"""#此处不写太长res=text.suoduan(longstring)#第一个参数是待压缩文本#第二个参数是最长长度（被缩短后的文本长度），默认500
Package: tianyancha
tianyancha - 天眼查Tianyancha SDK for python, which based onhttps://open.tianyancha.com/installpipinstalltianyanchaUsageAll API supported! please visitSupported methodsfor more information!fromtianyanchaimportTianyanchatoken="TOKEN"word="北京百度网讯科技有限公司"tyc=Tianyancha(token)ret=tyc.search(word=word)# Limited to use `keyword arguments`{"error_code":0,"reason":"ok","result":{"items":[{"regNumber":"110108002734659","regStatus":"在业","creditCode":"91110000802100433B","estiblishTime":"2001-06-05 00:00:00.0","regCapital":"1342128万人民币","companyType":1,"name":"<em>北京百度网讯科技有限公司</em>","id":22822,"orgNumber":"802100433","type":1,"base":"北京","legalPersonName":"梁志祥"},{"regNumber":"440106000623068","regStatus":"在业","creditCode":"91440101675657502F","estiblishTime":"2008-05-20 00:00:00.0","regCapital":"-","companyType":1,"name":"<em>北京百度网讯科技有限公司</em>广州分公司","id":139572971,"orgNumber":"675657502","type":1,"base":"广东","legalPersonName":"沈抖"},...],"total":56}}More usagesret=tyc.get('search/2.0',{'word':word})Testsjust runpytestChangelog2020-12-11 0.1.2 path bugfix and generate documents for all methods2020-12-11 0.1.1 support all methods2020-12-11 0.1.0 support basic search for tianyanchaRefsOfficial API Document:https://open.tianyancha.com/api_list
Package: tiara
TiaraDeep-learning-based approach for identification of eukaryotic sequences in the metagenomic data powered byPyTorch.The sequences are classified in two stages:In the first stage, the sequences are classified to classes:
archaea, bacteria, prokarya, eukarya, organelle and unknown.In the second stage, the sequences labeled as organelle in the first stage
are classified to either mitochondria, plastid or unknown.For more information, please refer to our paper:Tiara: Deep learning-based classification system for eukaryotic sequences.Supplementary dataSupplementary sequencesRequirementsPython >= 3.7numpy, biopython, torch, skorch, tqdm, joblib, numbaInstallationMore detailed installation instructions can be foundhere.UsingpipRunpip install tiara, preferably in a fresh environment.Using setup.pyLatest stable releaseDownload latest release fromhttps://github.com/ibe-uw/tiara/releases.Unzip/untar the archive.Go to the directory.Runpython setup.py install.Latest developer versiongitclonehttps://github.com/ibe-uw/tiara.gitcdtiara
pythonsetup.pyinstallTesting the installationAfter the installation, runtiara-testto see if the installation was successful.UsageBasic usage:tiara-isample_input.fasta-oout.txtThe sequences in the fasta file should be at least 3000 bases long (default value). We do not recommend classify sequences that are shorter than 1000 base pairs.It creates two files:out.txt, a tab-separated file with headersequence id, first stage classification result, second stage classification result.log_out.txt, containing model parameters and classification summary.Advanced:tiara-isample_input.fasta-oout.txt--tfmitplapro-t4-p0.650.60--probabilitiesIn addition to creating the files above, it creates, in the folder wheretiarais run,
three files containing sequences fromsample_input.fastaclassified as
mitochondria, plastid and prokarya (--tf mit pla prooption).The number of threads is set to 4 (-t 4) and probability cutoffs
in the first and second stage of classification are set to 0.65 and 0.6, respectively.The probabilities of belonging to individual classes are also written toout.txt, thanks to--probabilitiesoption.For more usage examples, gohere.CitationMichał Karlicki, Stanisław Antonowicz, Anna Karnkowska, Tiara: deep learning-based classification system for eukaryotic sequences, Bioinformatics, Volume 38, Issue 2, 15 January 2022, Pages 344–350,https://doi.org/10.1093/bioinformatics/btab672LicenseTiara is released under an open-source MIT licenseVersion history:1.0.3– addedpyproject.toml, updated dependencies topython<3.10– unfortunatelytiaradoesn't work right now withpythonnewer than3.9due totorch 1.7.0compatibility issues.
Added option to use gzipped fasta file as input (automatically identified by.gzsuffix).1.0.2– addedPython 3.9compatibility, added an option to gzip the results.
Added this README section.1.0.0,1.0.1– initial releases.
Package: tias
tias (try it and see)Quickly run code in almost any language.Install withpip install tias(requiresPython3.9 or newer).reuse codeSet commonly used code ("jargon") to automatically wrap around the code you enter. Default jargon is given for many languages for one-line hello worlds, including:C#System.Console.WriteLine("hello world");C++cout<<"hello world";Gofmt.Println("hello world")JavaSystem.out.println("hello world");Rustprintln!("hello world");supported languagesHere are some of the languages:APL, Assembly, Bash, C, C#, C++, Clojure, COBOL, Crystal, Dart, Elixir, Emacs Lisp, Erlang, F#, Fortran, Go, Groovy, Haskell, Java, JavaScript, Julia, Kotlin, LLVM, LOLCODE, Lua, Malbolge, Objective-C, OCaml, Perl, PHP, PowerShell, Python, R, Ruby, Rust, Scala, SQLite, Swift, TypeScript, and hundreds more (680 total).giving inputYou can give input to your code by wrapping it with three backticks and then listing the inputs after.This app usestio.run's API.
Package: tibanna
TibannaTibanna runs portable pipelines (in CWL/WDL/Snakemake/shell) on the AWS Cloud.Install Tibanna.pipinstalltibannaUse CLI to set up the cloud component and run workflow.# Deploy Unicorn to the Cloud (Unicorn = serverless scheduler/resource allocator).tibannadeploy_unicorn--usergroup=mygroup# Run CWL/WDL workflow on the Cloud.tibannarun_workflow--input-json=myrun.jsonAlternatively, use Python API.fromtibanna.coreimportAPI# Deploy Unicorn to the Cloud.API().deploy_unicorn(usergroup='mygroup')# Run CWL/WDL workflow on the Cloud.API().run_workflow(input_json='myrun.json')Note: Starting0.8.2, Tibanna supports local CWL/WDL files as well as shell commands and Snakemake workflows.Note 2: As of Tibanna version2.0.0, Python 3.7 (and lower) is no longer supported. Please switch to Python 3.11! Python 3.8 is also supported as a fallback, but please prefer 3.11 if you can.Note 3: Starting0.8.0, one no longer needs togit clonethe Tibanna repo.Please switch frominvoke <command>totibanna <command>!We also renovated the Python API as an inheritable class to allow development around tibanna.For more details, see TibannaDocumentation.Also check out ourpaper inBioinformatics.A preprint can also be found onbiorxiv.
Package: tibetan-sort
Python port of BDRC's JS Library to sort TibetanThis is a Python port oftibetan-sort-js.Installation`pip3 install tibetan_sort`APIsort_listSorts a list of strings using thecompare()method.Parametersalistlist of strings to be sortedReturns sortedlist.compareCompares two strings in Tibetan Unicode.
The behavior is undefined if the arguments are not strings. Doesn't work well
with non-Tibetan strings.Parametersastringfirst string to be compared.bstringsecond string to be compared.Returnsnumber0 if equivalent, 1 if a > b, -1 if a < bRelease historySeechange log.MaintainanceBuild the source dist:rm-rfdist/
python3setup.pycleansdistand upload on twine (version >=1.11.0) with:python3-mtwineuploaddist/*CreditsJS code byElie Rouxported to Python by尤志中list sorting implemented by DrupchenLicenseThe code is Copyright 2017-2019 Buddhist Digital Resource Center, and is provided under theMIT License.
Package: tibia-ipchanger
tibia-ipchangerInstallingInstall fromPyPIusingpip:$ pip install --upgrade tibia-ipchangerOr, even better, install withpipx:$ pipx install tibia-ipchangerUsageRunipchanger <basedir>, wherebasediris the path to the directory where the
launcher is installed. This is the directory containing an executable namedTibia, a
file namedlaunchermetadata.jsonand a directory namedpackages.It isNOTthe directory containing3rdpartylicensesassets,binand other
client data, but two directories parent to that one.To replace an URL, simply pass--url-as-snake-case <new url>to the command line,
e.g.ipchanger path/to/Tibia --login-web-service https://myot.com/login.phpwill
replaceloginWebServicewithhttps://myot.com/login.php.The script will create a temporary version of your currently installed client that is
restored after immediately launch, so you can still play regular Tibia by launching the
client as usual.To see a list of available URLs to change, runipchanger -h:$ ipchanger -h
...
  --tibia-page-url TIBIA_PAGE_URL
  --tibia-store-get-coins-url TIBIA_STORE_GET_COINS_URL
  --get-premium-url GET_PREMIUM_URL
  --create-account-url CREATE_ACCOUNT_URL
  --create-tournament-character-url CREATE_TOURNAMENT_CHARACTER_URL
  --access-account-url ACCESS_ACCOUNT_URL
  --lost-account-url LOST_ACCOUNT_URL
  --manual-url MANUAL_URL
  --faq-url FAQ_URL
  --premium-features-url PREMIUM_FEATURES_URL
  --limesurvey-url LIMESURVEY_URL
  --hints-url HINTS_URL
  --twitch-tibia-url TWITCH_TIBIA_URL
  --youtube-tibia-url YOUTUBE_TIBIA_URL
  --crash-report-url CRASH_REPORT_URL
  --fps-history-recipient FPS_HISTORY_RECIPIENT
  --tutorial-progress-web-service TUTORIAL_PROGRESS_WEB_SERVICE
  --tournament-details-url TOURNAMENT_DETAILS_URL
  --login-web-service LOGIN_WEB_SERVICE
  --client-web-service CLIENT_WEB_SERVICEURLs that are not set will be kept as original. The total length of replaced URLs must
not exceed the total length of the original URLs that are to be replaced, in which case
the script will fail to launch the client.LicenseWork licensed under theMIT License.
Package: tibian
Project ‘tibian’, also known as the ‘TIcket Birthday Announcer’,
is a project to announce tickets that it’s birthday today.
That means it announces ticket titles and summaries that were created a few
years ago and are still open to a number of channels that you specified before.
For example, the Jira tickets of a project can be published to a Teams channel
regularly and make some people happy (or angry).Right now, the project is in a very early stage and it’s not fully functional.UsageTo use this project, you need to create a configuration file in the same directory.
To start, copy theconfig.example.yamlfile toconfig.yamland edit it.
The name is important here, because it’s used to identify the configuration file.
For details about configuration, visit sectionConfiguration.To install the project, run one of the following command:poetry install --no-dev # or
pip install tibianLater one is preferred, as it installs the project with the same versions
as we tested before release and in a virtual environment.Afterwards, you can start the project by running thetibiancommand:tibianAfterwards, it should announce the birthdays of tickets of the current date
as specified.ConfigurationThe configuration file for the project must be located in the root folder
of the execution command. A short (any maybe not complete) description of
the configuration file is given inconfig.example.yamlon GitHub.Copy this output to a fileconfig.yamlin the current directory, add your credentials
and remove parts you don’t need.Detailed information about all config options will be given soon,
but for this version most of the configuration should be self-explanatory.‘type’ is the type of source or target you have,
‘name’ is an internal used name for the source/target, and
‘config’ is a type-dependant dictionary of types as shown.VersioningWe usesemantic versioningto version the project. As we are in some sort of ‘beta’,
we may (but try not to) do some breaking changes between minor versions to fix some obvious
misbehavior of the project. For example, we may change the configuration file format or
add new options to the configuration file. As we try to prevent this and add a backlog how to
upgrade to newer versions, you maybe want to check the changelog before updating to new versions.DevelopmentWe are always happy about active support. If you want to actively develop on tibian, follow the next few commands.
We usepoetryfor the development of tibian. You can install it with the following command:pip install poetryTo install all development dependencies, run:poetry installAfterwards, you have all dependencies (including dev dependencies) installed in a virtualenv, and are able to develop.To add new dependencies, run:poetry add <package>To activate your virtualenv, run:poetry shellAfterwards, you can run all following commands in the virtualenv. In case you don’t, you have to add ‘poetry run’ before each
of the next commands to execute it in the virtualenv, or you will get missing requirements errors.To run the style checker, run:./scripts/lint.shTo run the tests and get some coverage information, run:./scripts/run_tests.sh
Package: tibia-ocr
tibia-ocrOCR to read Tibia in-game text written in pythonInstallationYou can install the package via pip:pipinstalltibia-ocrUsageimportcv2fromtibia_ocr.hash_ocrimportconvert_lineimage=cv2.imread("data/test.png")threshed=cv2.inRange(image,(192,192,192),(192,192,192))out=convert_line(threshed)print(out)Known Limitations!is detected asiin big fontCan not detect spacesLicenseThis project is licensed under the terms of the MIT license.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.ContactIf you want to contact me you can reach me atpradishbijukchhe@gmail.com.
Package: tibiapi
tibiapiFastest Tibia Client API made inPython.See the full documentation inhttps://tibiapi.readthedocs.io.🗺️ FeaturesFeaturesDoneActionBar❌Analytics❌BattleList🚧Chat❌GameWindow🚧Imbuements❌Inventory❌Market❌Minimap🚧Options❌PartyList❌Skills🚧SpellList❌StatusBar✔️Store❌VIPList❌🧰 InstallationRequirementsPython3.11.7withpippipinstalltibiapiwithpoetrypoetryinstalltibiapiwithgittibiapi can be directly used from GitHub by cloning the repository into a subfolder of your project root which might be useful if you want to use the very latest version:gitclonehttps://github.com/lucasmonstrox/tibiapiNext, install the tibiapi and its dependencies with:pipinstall-etibiapi✅ TODOconfigure mypyadd benchmark tests in low/high end computeradd linteradd formatteradd commit hooks tooldeploy to pypi when new tag is detected👷 Authorslucasmonstrox(linkedin) - Owner & DeveloperSee also the list ofcontributorswho participated
in this project.If you want to become a contributor, send a message to mylinkedin.
Package: tibia.py
Tibia.pyAn API to parse Tibia.com content into object oriented data.No fetching is done by this module, you must provide the html content.Features:Converts data into well-structured Python objects.Type consistent attributes.All objects can be converted to JSON strings.Can be used with any networking library.Support for characters, guilds, houses and worlds, tournaments, forums, etc.InstallingInstall and update using pippip install tibia.pyInstalling the latest version form GitHubpip install git+https://github.com/Galarzaa90/tibia.py.git -UUsageThis library is composed of two parts, parsers and an asynchronous request client.The asynchronous client (tibiapy.Client) contains methods to obtain information from Tibia.com.The parsing methods allow you to get Python objects given the html content of a page.importtibiapy# Asynchronouslyimportaiohttpasyncdefget_character(name):url=tibiapy.urls.get_character_url(name)asyncwithaiohttp.ClientSession()assession:asyncwithsession.get(url)asresp:content=awaitresp.text()character=tibiapy.Character.from_content(content)returncharacter# Synchronouslyimportrequestsdefget_character_sync(name):url=tibiapy.urls.get_character_url(name)r=requests.get(url)content=r.textcharacter=tibiapy.Character.from_content(content)returncharacterDocumentationhttps://tibiapy.readthedocs.io/