Saravanan666/pypi-org huggingface dataset:
Package: xheap
It’s likeheapq(blazingly fast) but object-oriented + more features.Read more here for the background story.Why?Less code.What are heaps good for anyway?When you need the smallest item of a large list—fast and with no overhead.How?Let’s suppose you have a heap, you can usepopto get its smallest item.fromxheapimportHeapheap=Heap(['H','D','B','A','E','C','L','J','I'])heap.pop()# returns Aheap.pop()# returns Bheap.pop()# returns Cheap.pop()# returns DHeapsortworks this way.Can I insert an item?Indeed and it’s as fast as pop. Usepushfor insertion.heap=Heap(['A','D','B','H','E','C','L','J','I'])heap.push('Z')Can I remove an item from the middle of a heap?Yes, that’s whatRemovalHeap.removeis supposed to do.fromxheapimportRemovalHeapheap=RemovalHeap(['A','D','B','H','E','C','L','J','I'])heap.remove('L')Can I specify the order of the heap?Just imagine two heaps of the very same set of items but you need different sorting for each heap. Or
you need a max-heap instead of a min-heap. That is whatOrderHeapis designed for:fromxheapimportOrderHeapitems=[date(2016,1,1),date(2016,1,2),date(2016,1,3),date(2016,1,4)]day_heap=OrderHeap(items,key=lambdadate:date.day)day_heap.peek()# returns date(2016, 1, 1)weekday_heap=OrderHeap(items,key=lambdadate:date.weekday())weekday_heap.peek()# returns date(2016, 1, 4)What about both remove+order?No problem. UseXHeap.If you wonder why there are 4 distinct heap implementations, it’s a matter of speed.
Each additional feature slows a heap down. Thus, you could always use XHeap but beware
of the slowdown.Checking Heap InvariantA heap is just a list. So, if you tinker with it, you can check whether its invariant still holds:heap=Heap([4,3,7,6,1,2,9,8,5])heap[3]=10# I know what I am doing hereheap.check_invariant()# but better check... ooopsConclusionGooduses C implementation if available (i.e. fast)object-orientedno slowdown if you don’t need more than a simple heapremoval possiblecustom orders possibleworks with Python2 and Python3Badno drawbacks discovered so far ;-)needs fix/work:item wrapper which allows duplicate itemsdecrease-key+increase-key: another missing use-case ofheapqmerge heapsideas are welcome :-)
Package: xhj-nameko-dependency
薪行家代付nameko dependencyinstallpipinstallxhj-nameko-dependencyconfig通过yaml文件方式配置nameko环境变量# 公私钥需要先base64.encode
xhj:
  MCHNT_NUM: ${XHJ_MCHNT_NUM}
  API_BASE_URL: ${XHJ_API_BASE_URL}
  DES_KEY: ${XHJ_DES_KEY}
  PUBLIC_KEY: ${XHJ_PUBLIC_KEY}
  PRIVATE_KEY: ${XHJ_PRIVATE_KEY}How to use?fromxhjimportXHJclassTestService(Base):xhj=XHJ()@rpcdefcreate_package(self,data):returnself.xhj.call("remit/createpackage",data)
Package: xhmonitor
一个性能监控的库安装命令：pip install xhmonitor使用方法：fromxhmonitorimportstart_monitor,end_monitordefTestProfile():iCnt=0forxinrange(10000):iCnt+=xprint(iCnt)start_monitor()TestProfile()end_monitor()会生成一个time.txt和time.view文本time.txt: 性能测试的文本文件，可以查看每个函数的运行时间time.view：可使用kcachegrind, qcachegrind工具打开该文件可视化查看更详细内容
Package: xhorizon
xhorizon: Explicitly computing Penrose diagrams in general relativity.A Python package.I finally gave the package a makeover and updated to Python 3!The new documentation is still under construction…but there is now an ever expanding tutorial!LinksGitHub.Documentation.PyPi.Background TheoryJC Schindler, A Aguirre.Algorithms for the explicit computation of Penrose diagrams.Class Quantum Grav 35 105019.
(2018).arxiv:1802.02263.Getting StartedTo install:pip install xhorizonTo start using the tools, begin with thetutorialand keep an eye out forexample scripts.
Package: xhostplus.blog
This is a simple blog product for Plone 4. It’s templates are
based upon collective.blogging, however this product does create
it’s own content types instead of using Plone’s folders and
sites to create the blog.TranslationsThis product comes with following languages:EnglishGermanFurther translations are welcome.Questions and comments tosupport@xhostplus.atChangelog1.0.1 (2013-07-16)Using getObjPositionInParent to sort blog entries in blog view
[andreas_stocker]Setting the position of a blog entry to the very top on first save
[andreas_stocker]1.0 (2013-01-17)Initial realease
[andreas_stocker]
Package: xhostplus.gallery
An image gallery product for Plone 3 and 4. It consists of a special image
gallery folder, which can hold further image gallery folders and images, and a
portlet. The portlet shows random images of the configured image gallery.The image gallery view is based on Plone’s atct_album_view. This product
comes with an modified version of fancybox. It does not conflict with any
further installations of fancybox.jQuery is required in order to run the gallery as it is supposed to be.TranslationsThis product comes with following languages:EnglishGermanFurther translations are welcome.Questions and comments tosupport@xhostplus.atChangelog1.8.2 - 2013-04-23Plone 4.3 compatibility
[andreas_stocker]1.8.1 - 2012-08-17Show ‘Next/Previous X images’ instead of ‘Next/Previous X items’ in batch navigation
[andreas_stocker]Showing batch navigation also on top of the images
[andreas_stocker]1.8.0 - 2012-08-02Added ‘Show images from main language’ option
[andreas_stocker]1.7.4 - 2012-07-03Plone 3 compatible again
[andreas_stocker]1.7.3 - 2012-07-03Improved exclude uploaded images from navigation
[andreas_stocker]1.7.2 - 2012-07-03Added Site Administrator permissions to rolemap
[andreas_stocker]Multi-Upload can now exclude uploaded images from navigation
[andreas_stocker]1.7.1 - 2012-01-20LinguaPlone fix
[andreas_stocker]1.7.0 - 2011-11-02Page size configurable
[andreas_stocker]Titles of images can be hidden
[andreas_stocker]Cleaning filenames on multi-upload
[andreas_stocker]1.6.5 - 2011-10-14Plone 4.1 compatible
[andreas_stocker]1.6.4 - 2011-10-06Added xhostplus.gallery BrowserLayer
[andreas_stocker]1.6.3 - 2011-09-28Zoomable Image works better
[andreas_stocker]Improved Plone 3 compatibility
[andreas_stocker]1.6.2 - 2011-07-11Slide show fixes for Plone 3
[andreas_stocker]1.6.1 - 2011-05-02Private galleries can be selected in the gallery portlet
[andreas_stocker]1.6.0 - 2011-04-27Added slide show
[andreas_stocker]1.5.1 - 2011-02-08Now adding Image Gallery to default_page_types at install
[andreas_stocker]1.5 - 2010-11-29Improved translationsAdded multiple image upload (many thanks toPlone Quick Uploadandcollective.uploadifyProjects)
[andreas_stocker]1.0.1 - 2010-09-02Fixes in installer
[andreas_stocker]1.0 - 2010-09-02Initial version of xhostplus.gallery
[andreas_stocker]
Package: xhostplus.intropage
An intro page product for Plone 3 and 4. It adds an content type, storing
an image and a link, at which the intro page should point to.Questions and comments tosupport@xhostplus.atChangelog1.0.1 - 2011-10-06Added xhostplus.intropage BrowserLayer
[andreas_stocker]1.0 - 2010-10-25Initial version of xhostplus.intropage
[andreas_stocker]
Package: xhostplus.picturefolder
A product for Plone 3 and 4 which implements a folder content type with an
optional image field. The image is shown as thumbnail in the folder_summary_view
of the parent folder. The picture folder itself supports all views available
for regular folders.TranslationsThis product comes with following languages:EnglishGermanFurther translations are welcome.Questions and comments tosupport@xhostplus.at1.0 - 2012-08-06Initial version of xhostplus.picturefolder
[andreas_stocker]
Package: xhostplus.social
This product adds social network buttons to each page. It supports Google+,
Twitter, Facebook and LinkedIn. It is configurable which services are
activated.xhostplus.social comes with optional support for jquery.socialshareprivacy,
developed and distributed by Heise Zeitschriften Verlag GmbH & Co. KG.TranslationsThis product comes with following languages:EnglishGermanFurther translations are welcome.Questions and comments tosupport@xhostplus.atChangelog1.4.6 (2013-06-10)Improved German help text in settings for non-austrian users
[andreas_stocker]Using canonical_object_url to determine the current page url
[andreas_stocker]1.4.5 (2013-05-29)Do not require PasteScript for installation any more
[andreas_stocker]1.4.4 (2013-03-25)Fixed upgrade path from 1.2 to 1.4
[andreas_stocker]Enabled merging of JS files
[andreas_stocker]1.4.3 (2012-02-12)Fixed JavaScript to work with IE
[andreas_stocker]1.4.2 (2012-11-04)Fixed decode error on non-ascii hashtags
[andreas_stocker]1.4.1 (2012-11-03)Re-added permissions for changing social attributes
[andreas_stocker]1.4.0 (2012-11-02)Added options to enable/disable services
[andreas_stocker]Added twitter hashtag configuration
[andreas_stocker]Google URL shortener
[andreas_stocker]1.2.0 (2012-05-10)Added support for LinkedIn
[andreas_stocker]Using HTML5 compatible buttons
[andreas_stocker]Plone 4.1 compatible
[andreas_stocker]1.1.1 (2012-01-03)Remove quotes from cookies before adding value to a JSON string
[andreas_stocker]1.1.0 (2011-11-09)Added support for 2-click-buttons
[andreas_stocker]Added OpenGraph description meta tag
[andreas_stocker]1.0.0 (2010-03-27)Initial version (not public)
[andreas_stocker]
Package: xhostplus.textzoom
This product provides a portlet, which allows the site visitor to resize
the text on the page.Questions and comments tosupport@xhostplus.atChangelog1.0.2 - 2011-10-06Added xhostplus.textzoom BrowserLayer
[andreas_stocker]1.0.1 - 2010-12-13Setup fixes
[andreas_stocker]1.0 - 2010-12-13Initial version of xhostplus.textzoom
[andreas_stocker]
Package: xhostplus.videojs
An video product for Plone 3 and 4. It provides a video content type, which
stores WebM, H.264 and OGG Theora files (either in the ZODB or as external URL).This product uses VideoJS, falling back to Flowplayer, for playback.TranslationsThis product comes with following languages:EnglishGermanFurther translations are welcome.Questions and comments tosupport@xhostplus.atChangelog1.2.3 (2014-08-30)replaced slot body by slot main in viewvideo, added text/plain to allowable_content_types
[eambrosch]1.2.2 (2013-07-01)Added support for youtu.be links
[andreas_stocker]1.2.1 (2012-11-09)Uploading only one webm file is now working
[andreas_stocker]1.2.0 (2011-10-11)Fixed fullscreen mode in VideoJS
[andreas_stocker]Support for adding FLV files
[andreas_stocker]1.1.0 (2011-10-09)Added support for youtube videos
[andreas_stocker]1.0.0 (2010-03-27)Initial version (not public)
[andreas_stocker]
Package: xhp-flow
##ABOUT
This is a mini deep learning framework created by xiaohaipeng @tianjin##FeaturesDefine Dynamic Computing GraphDefine Neural Network OperatorDefine Placeholder,Linear,Sigmoid,Relu,MSEAuto-Diff ComputingAuto-Feedforward and Backward#RemainClassificationCross-EntropyCNN, RNNConnectionwechat:18651271973
Mail:307153814@qq.com
Package: xhpflow-1.0
##ABOUT
This is a mini deep learning framework created by xiaohaipeng @tianjin##FeaturesDefine Dynamic Computing GraphDefine Neural Network OperatorDefine Placeholder,Linear,Sigmoid,Relu,MSEAuto-Diff ComputingAuto-Feedforward and Backward#RemainClassificationCross-EntropyCNN, RNNConnectionwechat:18651271973
Mail:307153814@qq.com
Package: xhpubqt
UE4滑动条如果没有设置范围不显示百分比，设置了才会显示单机鼠标长按拖动可以调整数值，不可超过最大最小值，拖动时会隐藏鼠标箭头单机鼠标可以手动输入数值，手动输入时可超过设定范围无范围限制时会根据当前数值智能调整大小
Package: xh-py-project-versioning
A dictionary utility of self dev py libraryBuildrm-frdist
python-mbuild# automate by following `-u {user} -p {token / password}`# api automate by following `-u __token__ -p {token / password}`python-mtwineuploaddist/*PYTHONPATH=srcpythonsrc/xh_py_project_versioning/__main__.py--project-filepyproject.toml--major-d
Package: xhs
🍰xhsWarningThe primary purpose of this repository is to practice my Python skills. It is important to note that web crawling may
be considered illegal, and therefore, it is crucial to refrain from exerting any pressure or engaging in unauthorized
activities on websites.xhsis a crawling tool designed to extract data fromxiaohongshu websiteUsagexhs is available on PyPI:$python-mpipinstallxhsif you want the latest version, you can install from git:$python-mpipinstallgit+https://github.com/ReaJason/xhsBasic Usagemaybe now is more complex, Thanks@NanmiCoderPlease find in thedocument
Package: xhs-spider
Spider_XHS小红书个人主页图片和视频无水印爬取效果图运行环境Python环境NodeJS环境运行方法：把你想要的id全部放到列表里# 主页处理

from xhs_spider.home import Home

home = Home()

url_list = [

    'https://www.xiaohongshu.com/user/profile/6185ce66000000001000705b',

    'https://www.xiaohongshu.com/user/profile/6034d6f20000000001006fbb',

]

home.main(url_list)

# 笔记处理

from xhs_spider.note import Note

one_note = OneNote()

url_list = [

    'https://www.xiaohongshu.com/explore/64356527000000001303282b',

]

one_note.main(url_list)

# 搜索结果处理

from xhs_spider.search import Search

search = Search()

query = '你好'

# 搜索的数量（前多少个）

number = 22

search.main(query, number)日志23/08/08   first commit23/09/13 【api更改params增加两个字段】修复图片无法下载，有些页面无法访问导致报错。23/09/16 【较大视频出现编码问题】修复视频编码问题，加入异常处理。23/09/18   代码重构，加入失败重试。23/09/19   新增下载搜索结果功能注意事项本项目仅供学习与交流，侵权必删other自行将cookies放到目录下cookies.txt中，去设置里的应用程序里找或者网络请求里找，需要哪些可以参考cookie.txt文件。可采用以下方法获取cookie，并运行对应文件。欢迎star，不时更新。有问题可以加QQ或者微信交流（992822653）
Package: xhtml2pdf-legacy
HTML/CSS to PDF converter based on Python patched to use Pillow >= 2.7.0,<=2.8.0Aboutxhtml2pdfis a html2pdf converter using the ReportLab Toolkit,
the HTML5lib and pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS 3).
It is completely written in pure Python so it is platform independent.The main benefit of this tool that a user with Web skills like HTML and CSS
is able to generate PDF templates very quickly without learning new
technologies.RequirementsReportlab Toolkit 2.2+html5lib 0.11.1+pyPdf 1.11+ (optional)All requirements are listed inrequirements.txtfile.Development environmentPython, virtualenv and dependenciesInstall Python 2.6.x or 2.7.x. Installation steps depends on yours operating system.Install Pip, the python package installer:sudo easy_install pipFor more information aboutpiprefer tohttp://www.pip-installer.org/.I will recommend usingvirtualenvfor development. This is great to have separate environment for
each project, keeping the dependencies for multiple projects separated:sudo pip install virtualenvFor more information aboutvirtualenvrefer tohttp://www.virtualenv.org/Create virtualenv for the project. This can be inside the project directory, but cannot be under
version control:virtualenv --distribute xhtml2pdfenvActivate your virtualenv:source xhtml2pdfenv/bin/activateLater to deactivate use:deactivateNext step will be to install/upgrade dependencies fromrequirements.txtfile:pip install -r requirements.txtRun tests to check you configuration:nosetests --with-coverageYou should have log with success status:Ran 35 tests in 0.322s

OKPython integrationSome simple demos of how to integrate xhtml2pdf into
a Python program may be found here: test/simple.pyContributingDevelopment for this software happend on github, and the main fork is
currently athttps://github.com/chrisglass/xhtml2pdfContributions are welcome in any format, but using github’s pull request
system is very highly preferred since it makes review and integration
much easier.Running testsTwo different test suites are available to assert xhtml2pdf works reliably:Unit tests. The unit testing framework is currently minimal, but is being
improved on a daily basis (contributions welcome). They should run in the
expected way for Python’s unittest module, i.e.:nosetests --with-coverage (or your personal favorite)Functional tests. Thanks to mawe42’s super cool work, a full functional
test suite lives in testrender/.ContactIRC: #xhtml2pdf on freenodeMailing list:xhtml2pdf@googlegroups.comGoogle group:http://groups.google.com/group/xhtml2pdfMaintainer: Chris Glass <tribaal@gmail.com>LicenseCopyright 2010 Dirk Holtwick, holtwick.itLicensed 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: xh-utils
XhUtilspythonsetup.pybdist_wheel--universal
twineuploaddist/*# pip install twinepipinstall--upgradexh_utils-ihttps://www.pypi.org/simple/彩色日志示例1.彩色日志fromxh_utilsimportloggerlogger.init_logger()# logger.init_logger(log_pathdir="./log/",is_split_logfile=True) # 日志同步写入文件，并按天进行文件分割写入logger.debug("debug")logger.info("info")logger.warning("warning")logger.error("error")logger.critical("critical")
Package: xia-diff-match-patch
Current version is a wrap of Google’s project:https://github.com/google/diff-match-patchInstallation:pipinstallxia-diff-match-patchUsageapply_patchesfunction takes a series patched files as arguments, sorted by its priorities.fromxia_diff_match_patchimportapply_patchesbase="Line 1\n"a1="Line 1\nLine2\n"a2="Line 1\n\nCode 1\nCode 2\nCode 3\n"a3="Line 3\n"print(apply_patches(base,a1,a2,a3))
Package: xiangcheck
# Xiangqi CheckerA simple module for checking the legality of xiangqi moves, derived from https://github.com/shaochuan/Xiangqi. Currently untested and experimental.## Get it`pip install xiangcheck`## Use itCurrently uses a move notation that has no relation to the real game. Translation coming soon.```pythonimport xiangcheckchecker = xiangcheck.Checker()# can move a soldier forward?checker.check_move((4,6),(4,5))# True# move that soldier forwardchecker.make_move((4,6),(4,5))# that old move is no longer validchecker.check_move((4,6),(4,5))# False```
Package: xiangqi
XiangqiHow to usefromxiangqiimportEnvenv=Env(opening)# 不传开局状态表示从头下起ob=env.reset()# 初始观察whileTrue:env.render()# 显示棋局player=# which agent are responsible for ob['cur_player']?action=player.make_decision(**ob)# agent 的决策ob,reward,done,info=env.step(action)ifdone:env.render()breakDesign decisionsobservation以当前玩家的视角观察，包括坐标系、行、列，以及当前的合法走法，上一步被对手吃掉的子(用于reward shaping)action方案1以当前玩家的视角行动，action space:MultiDiscrete(9, 10, 9, 10)前面2维表示源位置(col, row)，后面2维表示目标位置空间大小8100方案2
任一位置的行，列，四方2x2范围的位置，空间大小2550方案3对每一类子，从右到左，从上到下编号，然后针对棋子类别编码最大可能的走法车炮：17，马：8，象：4，士：4，兵：3，将：4空间大小119注意：策略应该包含对对手求和请求的处理，回答是否同意和Details默认执红者先下观察到的信息包括：board_state：棋盘状态，FEN串，它包含了局面的所有信息sue_draw: 是否对手在求和，如果是，需要对求和做出反应，即是否同意和局操作环境的输入(即env.step(action)中的action)为一个字符串："RESIGN":认输，认输会引起本局结束"SUE_DRAW":求和，主动求和只要发这个字符串，对手需要回复"yes"或"no"表示同意与否UCCI走法串:如"b7b0"，即源位置和目标位置的编码操作环境的输出(即env.step(action)的返回值)分为四个部分：ob(dict) 观察，切换当前玩家后(即下一个玩家)的观察，具体描述参看上面，done为True时为Nonereward(int) 回报，当前玩家(即做本次action的玩家)的回报，done为False时为Nonedone(bool)，这一局是否结束info(str)，一些附加信息显示棋局env.render()：字符界面下显示的棋局。棋盘不以玩家视角变化的，而是固定红色在下，黑色在上。棋子在颜色上做了区分，在字形上也做了区分，红色的感觉更带人性一些，黑方有点像原始文明另外"将军"，吃子等信息也会显示常量N_ROWS=10# term: rankN_COLS=9# term: fileREWARD_WIN=1REWARD_LOSE=-1REWARD_DRAW=0REWARD_ILLEGAL=-5# illegal actionclassAction(IntEnum):ADVANCE=1# 进RETREAT=2# 退TRAVERSE=3# 平SUE_DRAW=4# 求和RESIGN=5# 认输classCamp(IntEnum):BLACK=1RED=2classForce(IntEnum):SHUAI=1SHI=2XIANG=3MA=4JU=5PAO=6BING=7帮助函数defdecode(board_state)# 解码棋盘状态，整数->(Camp, Force)列表(从左到右，从上到下)defchinese_to_ucci(action,camp,board)# 中文纵线格式 -> ucci格式，如炮二平五->h7e7defucci_to_chinese(action)# 上面函数的逆referenceXiangqi中式记法西式记法着法表示术语UCCIUCIElo计算源码
Package: xiangshi
相识(Xiangshi)中文文本相似度计算器Chinese Text Similarity Calculator (English README)在线计算文本相似度相识是一个侧重于中文的文本相似度计算器，并提供４个传统相似度算法，分别是：余弦相似度，Simhash，Minhash以及Jaccard(杰卡德)。下载与安装Pip安装：pip3installxiangshi国内较慢的话可以使用清华镜像：pip3install-ihttps://pypi.tuna.tsinghua.edu.cn/simplexiangshi新版本v4.2.0:删除logging删除file2list，dict2file等辅助函数删除Ngrams删除Kmeans增加Jaccard相似度提升余弦、Simhash相似度计算速度注意：v4.2.0文本相似度的计算结果可能和v4.1.0不一样，因为v4.1.0加权方式不同。v4.2.0文本相似度的输入均为两个string，且不与v4.1.0反向兼容。v4.2.0不再支持文本聚类（如果还有人需要的话请联系我，我会另开一个包）使用方法计算文本相似度余弦相似度示例importxiangshiasxsxs.cossim("如何更换花呗绑定银行卡","花呗更改绑定银行卡")Simhash & Minhash & Jaccard相似度示例importxiangshiasxs# Simhashxs.simhash("如何更换花呗绑定银行卡","花呗更改绑定银行卡")# Minhashxs.minhash("如何更换花呗绑定银行卡","花呗更改绑定银行卡")# Jaccardxs.jaccard("如何更换花呗绑定银行卡","花呗更改绑定银行卡")其它加权方法默认的加权方法是计算每个单词在文中出现的数量，以下还有其他两种加权方法可供选择。TFIDFarg=["西班牙失业率创新高","澳大利亚失业率高达5.1%","花呗更改绑定银行卡","我什么时候开通了花呗","从这个角度来看， 我们一般认为，抓住了问题的关键，其他一切则会迎刃而解。""从这个角度来看， 每个人都不得不面对这些问题。"]xs.weight="TFIDF"# 将加权方式设置为TFIDFxs.construct(arg)# 输入TFIDF文本，相同的文本只需调用这个函数一次xs.cossim("如何更换花呗绑定银行卡","花呗更改绑定银行卡")xs.simhash("如何更换花呗绑定银行卡","花呗更改绑定银行卡")没有加权xs.weight="None"# 将加权方式设置为Nonexs.cossim("如何更换花呗绑定银行卡","花呗更改绑定银行卡")修改默认函数importxiangshiasxs#计算Simhash时取前多少的TFIDF值。默认值为64xs.feature=64#计算Minhash时算出多少个哈希值。默认值为16xs.HashNums=16#计算Minhash时的最大哈希。默认值为4294967311xs.prime=4294967311目前状态持续维护并且持续关注Issues & Pull Requests未来版本内嵌C语言提速使用BERT或类似机器学习模型实现更精确的文本相似度其他链接在线计算文本计算器:https://kiwirafe.comEnglish Version:https://github.com/kiwirafe/xiangshi/blob/master/README(Eng).mdPyPI:https://pypi.org/project/xiangshi/Github:https://github.com/kiwirafe/xiangshi下载数量:https://pepy.tech/project/xiangshiGitee（中国开源）:https://gitee.com/kiwirafe/xiangshi关于算法的其他链接:https://github.com/kiwirafe/xiangshi/blob/master/Bibliography.md相识寓意同是天涯沦落人，相逢何必曾相识MIT LicenseCopyright (c) [2021] [kiwirafe]Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: xiaoaitts
xiaoaitts小爱音箱自定义文本朗读。不止是 TTS安装pipinstallxiaoaitts使用fromxiaoaittsimportXiaoAi# 输入小米账户名，密码client=XiaoAi('fish','123456')# 朗读文本client.say('你好，我是小爱')APIClass: XiaoAiXiaoAi(user, password)username小米账户用户名password账户密码使用小米账户登录小爱音箱instanceXiaoAi 实例对象say(text)text文本信息朗读指定文本，返回接口调用结果client.say('你好，我是小爱')get_device(name=None)name设备名称(别名)Returns: 设备信息获取在线设备列表# 获取所有在线设备online_devices=client.get_device()# 获取单个设备，未找到时返回 nullroom_device=client.get_device('卧室小爱')use_device(device_id)device_id设备id切换指定设备。xiaomitts实例化后默认使用get_device()方法返回的第一个设备，可使用此方法切换为指定设备。room_device=client.get_device('卧室小爱')# 使用“卧室小爱”client.use_device(room_device.get('deviceID'))client.say('你好，我是卧室的小爱')test()测试连通性client.test()媒体控制set_volume(volume)volume音量值设置音量client.set_volume(30)get_volume()Returns: 音量值获取音量volume=client.get_volume()volume_up()调高音量，幅度 5volume_down()调低音量，幅度 5get_status()Returns: 状态信息获取设备运行状态play()继续播放pause()暂停播放prev()播放上一曲next()播放下一曲set_play_loop(type=1)type0-单曲循环 1-列表循环 3-列表随机设置循环播放get_song_info(song_id)song_id歌曲idReturns: 歌曲信息查询歌曲信息song_info=client.get_song_info('7519904358300484678')get_my_playlist(list_id=None)list_id歌单idReturns:  歌曲信息获取用户自建歌单，当指定list_id时，将返回目标歌单内的歌曲列表# 获取歌单列表my_playlist=client.get_my_playlist()# 获取歌单内的歌曲列表song_list=client.get_my_playlist('337361232731772372')参考链接https://github.com/Yonsmhttps://github.com/vv314/xiaoai-tts
Package: xiao-asgi
xiao asgixiao asgi is a smallASGIframework that can be used to create ASGI applications.
It is designed to be small in size, simple to use and have few dependencies.
HTTP and WebSockets are both supported.Installationxiao asgi can be installed into a Python environment by runningpip install xiao-asgi.Supported Python versionsxiao asgi has been tested with the following versions of Python:3.10.03.9.7DocumentationDocstrings are included in the project and more information can be found at theWikitab (work in progress).DiscussionsHead over to theDiscussionstab to start a conversation on xiao asgi.ContributionsThis project uses theGitHub flowbranching strategy.Licensexiao asgi is open-sourced software licensed under theMITlicense.