Saravanan666/pypi-org huggingface dataset:
Package: yieldfrom.urllib3
What is this about?Yieldfrom is a project to port various useful Python 3 libraries, both standard library and otherwise,
to work under Asyncio.  The intention is to have the port be as alike as possible to the original, so that
the learning curve is minimal, and to make porting dependent modules as easy as possible.This package is a port of theUrllib3package.Some functions, methods, and properties have become coroutines.  This document itemizes those, with a few
notes on how usage needs to be different.  Other than what is mentioned here, the classes, methods and functions
are all named the same and used the same.Since the ‘yield from coroutine’ statements block the current method until the statement completes, this variant
can be a statement-for-statement replacement for the original, and the architecture of the app is unchanged.  No
callbacks anywhere.importsInstead of importing like:from urllib.connections import HTTPConnection
from urllib import connectionsuse:from yieldfrom.urllib.connections import HTTPConnection
from yieldfrom.urllib import connectionsClasses HTTPConnection and HTTPSConnectionTheconnectmethod is now a coroutine.  Call it with yield from, like ‘c = yield from conn.connect(…)’, and
otherwise the argument list is the same.Classes HTTPConnectionPool, PoolManager, and ProxyManagerThese classes all feature methodsurlopen,request,request_encode_url, andrequest_encode_body, which
have become coroutines.  The argument list is unchanged, and the functionality is unchanged.  Just call it with
‘yield from’ as a coroutine.Class HTTPResponseThere is one new method,init()which is a coroutine.  Its function was performed by the constructor inUrllib3, but needs to be async here.  A coroutine constructor would be difficult, so the async portions are
moved to theinit()method.  Run it as a coroutine after constructing an HTTPResponse.  Generally, users of
the module won’t be creating HTTPResponses directly, so this should not be much of an issue.Theread,readinto,streammethods are all coroutines.  Thedataattribute is actually a property, now
a coroutine, and should be referenced with theyieldfromsyntax, like ‘d = yield from resp.data’.Thefrom_httplibclassmethod is a coroutine also, though you probably won’t be using it directly.Thestreammethod does not actually stream, but preloads the body and simulates a stream for compatibility
with modules and apps that use the method.OtherwiseOther than the changes above, the API is the same as the original, and excellent documentation can be found at:URLLIB3 <http://urllib3.readthedocs.org>.Changes2014-12-29version 0.1.2Removed bug that caused false alarms on ‘unverified connection’
Fixed test imports to unambiguosly import yieldfrom modules
bug fixes in tests.2014-10-10version 0.1.1Converted to Asyncio
Package: yieldlocus
Yield Locus for Anisotropic MaterialsYield Locusis a Python implementation of the Hill 1948 yield criteria for anisotropic plastic deformations.
since its an extension to von mises theory, Lankford coefficient in rolling direction and transverse direction are taken into account.
No dependencies beside Python's standard library.Installationpip install yieldlocusUsageimport yieldlocus
yield_locus.hill48(R0,R90,yield_stress)DetailsFor more information please refer
1.	R. Hill. (1948). A theory of the yielding and plastic flow of anisotropic metals. Proc. Roy. Soc. London, 193:281–297
2.	Study of Anisotropic Material Behavior for Inconel 625 Alloyhttps://www.sciencedirect.com/science/article/pii/S2214785319322722
Package: yieldpoints
Info:Simple extensions to Tornado’s gen module.Author:A. Jesse Jiryu DavisAboutSimple extensions to Tornado’sgenmodule.DependenciesTornado>= version 2.3.DocumentationDocumentation:http://yieldpoints.readthedocs.org/You will needSphinxinstalled to generate the
documentation. Documentation can be generated like:$ sphinx-build doc buildTestingRunpython setup.py nosetestsin the root directory.
Package: yiffpy
e621-wrapperA python3 "library" for using the e621 api.Dependencies:pip3installratelimit
pip3installrequestsTutorialHere is a quick example showing some stuff you can do with this library.Where it saysYOUR-USER-AGENTyou should replace with something descriptive as said in the e621 api something like "Api-wrapper-test/0.1 (byyour-username)". The other 2 arguments describe themselves.fromyiffimportyiffe6=yiff.api("YOUR-E6-USERNAME","YOUR-E6-API-KEY","YOUR-USER-AGENT")PostsThen you can doe6.getpost(POSTID)to get info about a post from its id and it will return an object with the "sub" python3 class. In this you can then dosub.id, sub.tags, sub.scoreetc etc.Or if you want to search you can doe6.search(LIST_OF_TAGS, POSTS_PER_PAGE, PAGE)with list_of_tags being a list type and the other 2 being integers and it will return a list ofsubclass objects.Userse6.getuser(USER_ID)is used to get info about a user from their id. It returns an object with theuserclass. you can then listuser.id, user.name user.forum_post_countetc.e6.searchuser(USER_NAME)works very similary to getuser except instead of taking their id it takes their username and out puts the same object.ExtraIf you want all the values that can be returned from posts or user searches then just look at line 41 to line 91 for posts and line 95 to line 117 for users inthisfile.
Package: yiffscraper
YiffscraperScrapes off all content from a yiff.party pageGetting StartedThese instructions will get you a copy of yiffscraper installed and running on your machine.RequirementsPython 3.6+beautifulsoup4requeststqdmaiohttppython-dateutilInstallingMake sure you have Python 3.6+ installed before proceeding.pip install yiffscraperRunningOnce it is installed, you should be able to run the program by typingyiffon the command line.yiffscraper accepts a Patreon id, or a yiff.party url, or a Patreon url.yiff 7236857
yiff https://yiff.party/patreon/7236857
yiff https://www.patreon.com/ericaofandersonyiffscraper will also accept multiple arguments to download several projects at once.yiff https://www.patreon.com/ericaofanderson https://yiff.party/patreon/13240009yiffscraper will download all project files into a "scrapes" directory wherever it is run.If called with the --update argument, yiffscraper will download any new or updated content, and ignore any content that has already been downloaded.yiff 7236857 --updateAuthorsshubham418-OriginalYiffScraperLaChocola-Update Project ManagerDigiDuncan-Update CoderNatalie Fearnley-Bug fixerSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: yiflow
YiFlowYiFlow是一个配置驱动的基于模块的工作流控制库。本库在2020年的下半年初具雏形，先后在多个AI部署项目中得到了使用。实践证明这样一个可配置工作流引擎可以让算法研发人员只关注于算法模块本身的实现，从而大大加速了项目的研发进度。虽然如此，在此之前该库还没有跟业务代码进行分离，整体实现上面耦合程度较高，我觉得有必要将该库从业务代码中抽离出来，以方便和加速后续项目的研发落地。在这一目标驱动下，我抽空重写了该库，并优化了底层逻辑设计，希望能为更多项目的部署贡献一份力量！YiFlow的名字是为了致敬我的前同事sylvia，感谢她一直以来对我工作的支持!更多信息请移步文档。
Package: yige
===============================yige-python===============================.. image:: https://img.shields.io/pypi/v/yige.svg:target: https://pypi.python.org/pypi/yige.. image:: https://img.shields.io/travis/wwj718/yige.svg:target: https://travis-ci.org/wwj718/yige.. image:: https://readthedocs.org/projects/yige/badge/?version=latest:target: https://yige-python.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image:: https://pyup.io/repos/github/wwj718/yige/shield.svg:target: https://pyup.io/repos/github/wwj718/yige/:alt: UpdatesPython library for yige. [中文](https://github.com/wwj718/yige-python/blob/master/readme.md)<a href="https://asciinema.org/a/7alk907q48i8evcgqdc09s9xu" target="_blank"><img src="https://asciinema.org/a/7alk907q48i8evcgqdc09s9xu.png" /></a>* Free software: MIT license* Documentation: https://yige-python.readthedocs.io.Overview--------The yige Python SDK makes it easy to  use yige.aiFeatures--------*  debug console*  text query*  entity manageInstallation---------To install yige, simply:.. code-block:: bash$ pip install yigeor install it from repo:.. code-block:: bash$ pip install https://github.com/wwj718/yige-python.gitUsage---------1. debug  console.. code-block:: bash>>> yige --console..... image:: img/yige1.png.. image:: img/yige2.png2. send text query.. code-block:: python>>> CLIENT_ACCESS_TOKEN = '<YOUR_CLIENT_ACCESS_TOKEN>'>>> ai = yige.Yige(CLIENT_ACCESS_TOKEN)>>> request = ai.text_request()>>> request.query = "我想买鞋">>> response = request.getresponse() #注意置信度 confidence>>> print(response.json())...3. post user entities.. code-block:: python>>> DEV_ACCESS_TOKEN = '<YOUR_DEV_ACCESS_TOKEN>'>>> ai = yige.Yige(DEV_ACCESS_TOKEN)>>> payload= {}>>> payload["name"] = "脚型" # 词库名称>>> payload["type"] = 1 #是否定义同义词 1是  0否>>> payload["automated_expansion"] = 0>>> payload["entries"] = [] # 词库内容>>> entity1 =  {"value": "正常内旋", # 同义词中比较权威的名称"synonyms": [ #  同义词"正常内旋","内旋正常","正常足弓","足弓正常"]}>>> payload["entries"].append(entity1)>>> user_entities_request = ai.user_entities_request()>>> user_entities_request.user_entities = payload>>> user_entities_response = user_entities_request.getresponse()>>> print(user_entities_response.json())...Running examples--------1. Find examples from 'examples' path.2. Insert API key... code-block:: python>>> CLIENT_ACCESS_TOKEN = '<YOUR_CLIENT_ACCESS_TOKEN>'...Test--------make testCredits---------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template... _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage=======History=======0.1.0 (2017-01-16)------------------* First release on PyPI.
Package: yikit
yikitThis is my own tool kit.toolsin preparation.modelsin preparation.feature_selectionin preparation.LicenseCopyright © 2021 yu9824Licensed 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: yil
YandexImageLoaderLoads all images found in Yandex image search html file.
To get this file open your browser, type query and scroll down to see all
the results. Than save the page as html file.Installationpip install yilUsageyil [--help] [--w=] [--out_dir=] -f= [--pb]--help - print usage message,
--w= - number of workers for parallel loading, 1 by default,
--pb -show progress bar,
--f= -html file with search results,
--out_dir=<dir_name> - where store images, ./downloads by default,
in this dir will be saved errors.txt (messages about downloading errors)
and indexes.txt (correspondence between numeric names in out_dir and names in
the html file)
Package: yima
# 易码API - Python接口## 1. 简介：本python包旨在为[易码api](http://www.51ym.me/User/apidocs.html)提供一个python封装包，使调用变得更简单。## 2. 使用方法：### 2.1 安装pip install yima### 2.2 导入import yima as ym### 2.3 功能速览#### 2.3.1 创建易码客户端实例client1 = ym.YMClient('username', 'password', 'token')通过简单的一句代码，可以创建一个名为client1的易码客户端实例，其参数中：- 用户名 username 和密码 password 为必填项，token为选填项- 如果没有填写token，那么客户端实例在初始化时会自动获取token并记录在客户端实例中，因此省去了去官网登录下载token的步骤。#### 2.3.2 常用功能客户端创建完毕后，就可以开始操作了。client1.get_mobile("itemid")将项目ID itemid 填入get_mobile()的参数，即可获取一个该项目的手机号。关于项目ID的获取，请移步[项目查询](http://www.51ym.me/User/MobileItemList.aspx)。然后该实例会返回一个手机号。client1.get_sms("itemid", "mobile")get_sms()可以返回该手机号所接收到的短信，如果短信还没获取到，或发生其他错误，则会返回错误代码+错误信息。client1.release("itemid", "mobile")release()可以释放手机。如果在上面get_sms()中加入release=1参数（默认为None），那么release()操作则不是必须，获取完短信后会自动释放该手机。client1.fetch_sms_until_succeed("itemid", "mobile", timeout=90)上面这句代码可以简易地在发送短信后获取回复的信息，运行这段代码后，程序会开始每隔5秒获取一次短信，直到获取到短信为止。`timeout`为超时参数，默认为90秒，如果90秒后还未获取到短信，代码将会停止获取。#### 2.3.3 其他功能client1.get_token()                     # 向服务器发送请求获取Tokenclient1.token                           # 获取已经保存到客户端实例中的Tokenclient1.get_account_info()              # 获取账户信息client1.add_ignore("itemid", "mobile")  # 拉黑号码#### 2.3.4 施工中发送短信功能待开发中。## 3. 版本历史### 2019.1.28 - 版本 0.1.3- 现在使用fetch_sms_until_succeed()函数，仅在返回错误码为“3001”-“尚未收到短信”时才会尝试重试，如果返回的是其它错误码，则会raise报错信息。如果超时,则会raise超时错误。### 2019.1.24 - 版本 0.1.2- 修复了如果服务器返回错误代码时，程序会出现 `NameError: name 'error_codes' is not defined` 的错误- 在get_sms()函数中添加了release参数的接口- 现在如果在创建客户端实例时，用户名和密码不正确，会返回报错信息。### 2019.1.23 - 版本 0.1.1- 修复了依赖库中包含基础库“time”而导致pip install不成功的bug### 2019.1.23 - 版本 0.1.0- 添加易码api基础功能- 第一次尝试发PyPI包，好紧张啊，会不会有潜规则啊## 4. Bug反馈及功能需求添加如果发现程序bug或功能不完善的地方，欢迎联系：yihua.zhou@outlook.com。
Package: yInference
YInference: Streamlining Model InferenceYInferenceis a powerful Python package designed to streamline the model inference process, enabling users to thoroughly assess their trained or fine-tuned models before deploying them to the Hugging Face Hub or any other deployment environment. This versatile tool has been created to address the critical need for reliable model evaluation within your workflow, ultimately enhancing model performance and boosting deployment confidence.Table of ContentsOverviewFeaturesInstallationLicenseOverviewIn the fast-paced world of machine learning and natural language processing (NLP), ensuring the reliability and robustness of your models is of paramount importance. yInference is here to simplify and fortify your model evaluation and deployment workflows. Whether you're a seasoned data scientist or a newcomer to the field, YInference empowers you to:Evaluate with Confidence: yInference provides a user-friendly and intuitive interface for assessing the performance of your machine learning models. You can trust your model evaluations and make informed decisions about deployment.Enhance Model Performance: By leveraging yInference's capabilities, you can fine-tune your models more effectively. It offers a comprehensive set of evaluation metrics and insights to help you pinpoint areas for improvement.Smooth Deployment Process: Save time and reduce the risk of deploying underperforming models. yInference ensures that your models meet your quality standards before they go live.Features1. Streamlined InferenceyInference simplifies the process of running inference on your models. With just a few lines of code, you can load your model and input data, making it easier than ever to assess its performance.2. Comprehensive Evaluation MetricsWe understand that one-size-fits-all metrics don't always tell the whole story. yInference offers a wide range of evaluation metrics, allowing you to choose the ones that best align with your specific use case.3. Easy Integration with Hugging Face HubFor those utilizing the Hugging Face Hub for model sharing and deployment, yInference seamlessly integrates with the platform. You can test your models thoroughly before sharing them with the community or deploying them in production.4. Interactive VisualizationVisualize your model's performance with easy-to-understand graphs and charts, helping you identify strengths and weaknesses quickly.5. Extensible and CustomizableyInference is built to be extensible. You can easily integrate it into your existing workflows and customize it to meet your specific requirements.InstallationTo get started with yInference, simply install it using pip:pipinstallyInferenceLicenseYInference is distributed under the MIT License.
Package: yinglish
淫语翻译机！能把中文翻译成淫语的翻译机！(其实灵感是来自北京地铁站，那个写站名的告示牌真的好色啊2333)样例importyinglishs='不行，那里不行。'print(yinglish.chs2yin(s))# 不行，那……那里不行……s2='吃葡萄不吐葡萄皮。'print(yinglish.chs2yin(s2))# ……吃〇〇不吐葡……葡萄皮……接口说明defchs2yin(s,淫乱度=0.5):s是原字符串，淫乱度是0~1的实数，越大越淫乱，表示每个词语被转化的概率。安装首先，你需要安装一个Python(3.6以上版本)。然后——pipinstallyinglish最后import yinglish就行了。结束就这样，大家88(溜了溜了)。
Package: yinstabot
🤖 YInstaBot🗽 AçıklamaBotupip install yinstabotkomutu ile indirebilirsiniz.Çalışma dizini komutun çalıştırıldığı dizindir.Kullanıcı bilgileri🤵 sessionsdizinine kaydedilir✨Instabotprojesinden yararlanılmıştır.📑 Botun KullanımıBot,yinstabot <accounts.json yolu>komutu ile önceden oluşturulmuşaccounts.jsondosyasının yolunu alarak çalışır.İsteğe bağlı parametrelerAçıklama--helpYardım metnin gösterir-nrVerileri güncellemeden çalışır-qSessizce çalışır🙄 Henüz yapım aşamasında olduğundan gereksiz parametreleri de vardır📂accounts.jsonyapısı{"username":{"info":"Kişisel notunuz (önemli bir alan değildir)","username":"kullaniciadi","password":"şifre","option":1,"target_usernames":["instagram","facebook",]},"username":{"info":"Kişisel notunuz (önemli bir alan değildir)","username":"kullaniciadi","password":"şifre","option":5,"target_usernames":["instagram","facebook",]}}🔨 Option DeğerleriDeğerAçıklama1datadizinindeki kullancı idlerini takip eder, seni takip etmeyenleri takipten çıkarır2Seni takip etmeyenleri takipten çıkarır3Herkesi takipten çıkarır4Sadece takip işlemi yapar5target_usernames'deki kişilerin paylaştığı resimleri beğenen kişilerin idlerinidatadizininde dosyalarda saklar1'in çalışması için5özelliğine sahip ayrı bir hesap tanımlanmazsa ilk hesap ile veri toplanması yapılır🖤 Android'te Termux ile KullanımAndroid için🖤 Termuxuygulamasını indirin ve yükleyin, ardıntan alttaki komutları yazdıktan sonra📑 Botun Kullanımıalanındakileri uygulayın.# Gerekli araçların kurulumlarıpkginstallpython
pipinstallyinstabot# İsteğe bağlı paremetreler:# --help  | Yardım metnin gösterir# -nr    | Verileri güncellemeden çalışır# -q    | Sessizce çalışıryinstabot<accounts.jsonyolu># yinstabot "sessions/accounts.json"⭐ Örnek Kullanım Çıktısı🔗 Harici BağlantılarInstabotNeoInstabotInstabot-py💖 Destek ve İletişimYardımcı olmak içinpull requestatabilirsiniz 🤗TheMIT License© Yunus Emre Ak
Package: yinyang
yinyangA fuzzing framework for SMT solvers. Given a set of seed SMT formulas, yinyang generates mutant formulas to stress-test SMT solvers. yinyang can be used to robustify SMT solvers. It already found1,500+bugs in the two state-of-the-art SMT solvers Z3 and CVC4.InstallationTo install a stable version of yinyang use:pip3 install yinyangTo install the most recent version, check out the repository:gitclonehttps://github.com/testsmt/yinyang.gitpip3installantlr4-python3-runtime==4.9.2Note that you may want to addyinyang/binto your PATH, for running yinyang conveniently without prefix.UsageGet SMT-LIB 2 benchmarks. Editscripts/SMT-LIB-clone.shto select the logics for testing. Run./scripts/SMT-LIB-clone.shto download the corresponding SMT-LIB 2 benchmarks. Alternatively, you can download benchmarks directly from theSMT-LIB websiteor supply your own benchmarks.Get and build SMT solversfor testing. Install two or moreSMT solversthat support the SMT-LIB 2 format. You may find it convenient to add them to your PATH.Run yinyangon the benchmarks e.g. with Z3 and CVC4.typefuzz"z3 model_validate=true;cvc4 --check-models -m -i -q"benchmarksyinyang will by default randomly select formulas from the folder./benchmarksand generate 300 mutants per seed formula. If a bug has been found, the bug trigger is stored in./bugs. yinyang will run in an infinite loop. You can use the shortcut CTRL+C to terminate yinyang manually.📘DocumentationFeedbackFor bugs/issues/questions/feature requests please file an issue. We are always happy to receive your feedback or help you adjust yinyang to the needs of your custom solver, help you build on yinyang, etc.📬Contact usAdditional ResourcesCiting yinyangProject websitewith bug statistics, talk videos, etc.Google Open Source Peer Bonus🏆
Package: yi-package
yi_packageOption B2Installation$pipinstallyi_packageUsageTODOContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licenseyi_packagewas created by Paige Yi. It is licensed under the terms of the MIT license.Creditsyi_packagewas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: yippee
YippeeManage requirements.txt filesUsingrequirements.txtfiles makes it hard to distinguish between top-level dependencies and transient dependencies. In addition, separating out different dependencies for multiple environments is challenging.Yippeeattempts to ease the pain by specifying a DSL by whichrequirements.txtfiles can be generated.For example, with the followingyippee.pyfile:fromyippeeimportgroup,pippip("django",">=2.1.0")withgroup("production"):pip("postgres","2.2.2")withgroup("development"):pip("black")This would generate:requirements.txtDjango==2.1.5
pytz==2018.7requirements-production.txt-r requirements.txt
postgres==2.2.2
psycopg2-binary==2.7.6.1andrequirements-development.txt-r requirements.txt
appdirs==1.4.3
attrs==18.2.0
black==18.9b0
Click==7.0
toml==0.10.0UsageInstall yippee via pypi. Then you can runyippeeto generate yourrequirements.txtfiles.
Package: yippi
An (a)sync e621 API wrapper library.Free software: GNU Lesser General Public License v3 (LGPLv3)Installationpip install yippiYou can also install the in-development version with:pip install git+ssh://git@github.com/rorre/yippi.git@masterQuickstartSync>>> import requests
>>> from yippi import YippiClient
>>>
>>> session = requests.Session()
>>> client = YippiClient("MyProject", "1.0", "MyUsernameOnE621", session)
>>> posts = client.posts("m/m zeta-haru rating:s") # or ["m/m", "zeta-haru", "rating-s"], both works.
[Post(id=1383235), Post(id=514753), Post(id=514638), Post(id=356347), Post(id=355044)]
>>> posts[0].tags
{'artist': ['zeta-haru'],
 'character': ['daniel_segja', 'joel_mustard'],
 'copyright': ['patreon'],
 'general': ['5_fingers', ..., 'spooning'],
 'invalid': [],
 'lore': [],
 'meta': ['comic'],
 'species': ['bird_dog', ... ]}Async>>> import aiohttp
>>> from yippi import AsyncYippiClient
>>>
>>> session = aiohttp.ClientSession()
>>> client = AsyncYippiClient("MyProject", "1.0", "MyUsernameOnE621", session)
>>> posts = await client.posts("m/m zeta-haru rating:s") # or ["m/m", "zeta-haru", "rating-s"], both works.
[Post(id=1383235), Post(id=514753), Post(id=514638), Post(id=356347), Post(id=355044)]
>>> posts[0].tags
{'artist': ['zeta-haru'],
 'character': ['daniel_segja', 'joel_mustard'],
 'copyright': ['patreon'],
 'general': ['5_fingers', ..., 'spooning'],
 'invalid': [],
 'lore': [],
 'meta': ['comic'],
 'species': ['bird_dog', ... ]}Examples are available inexamples directory.DocumentationDocumentation is available on readthedocs:https://yippi.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append tox