Saravanan666/pypi-org huggingface dataset:
Package: yahoo-search-api-v11
&lt;div lang&#x3D;&quot;ja&quot;&gt;Yahoo!広告 検索広告 APIのWebサービスについて説明します。&lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;Search Ads API Web Services supported in Yahoo! JAPAN Ads API.&lt;/div&gt; &lt;div&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/design/v12/Route.yaml&quot;&gt;OpenAPI Specification&lt;/a&gt;&lt;/div&gt; &lt;div lang&#x3D;&quot;ja&quot;&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/ja&quot;&gt;Best Practice&lt;/a&gt;&lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/en&quot;&gt;Best Practice&lt;/a&gt;&lt;/div&gt;   # noqa: E501
Package: yahoo-search-api-v12
&lt;div lang&#x3D;&quot;ja&quot;&gt;Yahoo!広告 検索広告 APIのWebサービスについて説明します。&lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;Search Ads API Web Services supported in Yahoo! JAPAN Ads API.&lt;/div&gt; &lt;div&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/design/v12/Route.yaml&quot;&gt;OpenAPI Specification&lt;/a&gt;&lt;/div&gt; &lt;div lang&#x3D;&quot;ja&quot;&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/ja&quot;&gt;Best Practice&lt;/a&gt;&lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/en&quot;&gt;Best Practice&lt;/a&gt;&lt;/div&gt;   # noqa: E501
Package: yahoo-search-test
&lt;div lang&#x3D;&quot;ja&quot;&gt;Yahoo!広告 検索広告 APIのWebサービスについて説明します。&lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;Search Ads API Web Services supported in Yahoo! JAPAN Ads API.&lt;/div&gt; &lt;div&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/design/v12/Route.yaml&quot;&gt;OpenAPI Specification&lt;/a&gt;&lt;/div&gt; &lt;div lang&#x3D;&quot;ja&quot;&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/ja&quot;&gt;Best Practice&lt;/a&gt;&lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/en&quot;&gt;Best Practice&lt;/a&gt;&lt;/div&gt;   # noqa: E501
Package: yahoostock
yahoostockA package designed to scrape data from Yahoo Finance.InstallationThe most simple installation method is through PIP.pip install yahoostockThe PyPI page can be foundhere.UsageUse the following code to see a list of useful methods.fromyahoostockimportyahooprint(dir(yahoo))Note that each method accepts a stock ticker as a single parameter and returns a float with the specified statistic.Here's an example:fromyahoostock.yahooimport*stock_name="GOOGL"function_list=[get_price,get_open,get_previous_close,get_change,get_percent_change]forfunctioninfunction_list:# prints price ($), opening price ($), last closing price ($),# change in price ($), and relative change (%)print(function(stock_name))For information about a specific method's purpose refer to the respective method's docstrings.For example:fromyahoostock.yahooimportget_pricehelp(get_price)
Package: yahooweather
Python modul for access to yahoo! weatherExampleimportloggingfromyahooweatherimportYahooWeather,UNIT_Clogging.basicConfig(level=logging.WARNING)yweather=YahooWeather(91543049,UNIT_C)ifyweather.updateWeather():print("RawData:%s"%str(yweather.RawData))print("Units:%s"%str(yweather.Units))print("Now:%s"%str(yweather.Now))print("Forecast:%s"%str(yweather.Forecast))print("Wind:%s"%str(yweather.Wind))print("Atmosphere:%s"%str(yweather.Atmosphere))print("Astronomy:%s"%str(yweather.Astronomy))data=yweather.Nowprint("Weather image from current:%s"%yweather.getWeatherImage(data["code"]))print("The woeid from Gstaad is:%s"%get_woeid(46.475661,7.283469))else:print("Can't read data from yahoo!")Rate LimitsUse of the Yahoo Weather API should not exceed reasonable request volume.
Access is limited to 2,000 signed calls per day.Linkshttps://developer.yahoo.com/weather/
Package: yahoo-weather
Python Library for Yahoo Weather (New API)On 3 Jan 2019 Yahoo changed its Weather API to use OAuth1 Authentication. This new method requires authentication to use the API. This library helps you to handle the new API.
In order to use the new API you have to get an API key fromYahoo!from yahoo_weather.weather import YahooWeather
from yahoo_weather.config.units import Unit

data = YahooWeather(APP_ID="Your App ID",
                     api_key="Your API KEY",
                     api_secret="Your API secret")

data.get_yahoo_weather_by_city("tehran", Unit.celsius)
print(data.condition.text)
print(data.condition.temperature)

data.get_yahoo_weather_by_location(35.67194, 51.424438)
print(data.condition.text)
print(data.condition.temperature)
Package: yahp
YAHP: Yet Another HyperParameterYAHP introduces yet another hyperparameter management tool.FeaturesUtilizesdataclassesto describe the data model.Supportsint,float,bool,str, andEnums; along with lists and nullable fieldsFields can be optional (with a default) or requiredAuto-generates YAML templates, serializes the data model to YAML, and loads YAML into the data model.Allows for nested dataclasses -- even with abstract classesAdds anargparseCLIGetting StartedSee thesimple examplefor a simple data model and yaml file.See thecli examplefor an example of the CLI.See theregistry examplefor how to use nested dataclasses with inheritance.YAHP Command LineWheneverHparams.create()is invoked, YAHP adds the following command line options:-h,--help: Print help and exit.-f,--file": Load data from this YAML file into the Hparams.-s,--save_template: Generate and dump a YAML template to the specified file (defaults tostdout) and exit.-i,--interactive: Whether to generate the template interactively. Only applicable if--save_templateis present.-c,--concise: Skip adding documentation to the generated YAML. Only applicable if--save_templateis present.-d,--dump: Dump the resulting Hparams to the specified YAML file (defaults tostdout) and exit.
Package: yahtzee-api
Welcome to the Yahtzee API! This package provides thecore functionalities to programmatically play a game of
Yahtzee. The stated purpose of this package is for use
with reinforcement learning environments
(in development), however it is generalized for many
different use cases, including simple algorithm
development. As this is the first full iteration of
this API, I will likely be reworking/adding to
some of the core functionalities to suit my needs
as I do more work on the RL front.
Package: yahtzee-solve
yahtzeeA Yahtzee-solving python package and command line tool.The algorithm is mathematically guaranteed to have the best strategy. That is, it maximizes expected score for a single game of Yahtzee.The command line tool (play_yahtzee) guides you through a game and advises you on the best moves to make.The algorithm assumes "vanilla" rules. It attains an average score of ~230 points.InstallationClone the repository:$ git clone git@github.com:dpmerrell/yahtzee.gitMake sure you have python >= 3.8.
I recommend using a virtual environment:$ source my_py38_envInstall via pip:(my_py38_env)$ cd yahtzee
(my_py38_env)$ pip install .Congratulations! Theyahtzeepackage andplay_yahtzeecommand line tool are now installed.Command line toolAfter installation, you can run the interactive command line toolplay_yahtzee:(my_py38_env)$ play_yahtzee

###### STARTING GAME ######

    Roll all of your dice!
    Enter all of your dice here:The prompts will lead you through a game of Yahtzee and advise you on the best moves to make.Python packageTheyahtzeepython package has the following components:A dynamic programming algorithm that solves the whole game (solve_game,solve_turn)Precomputed results for that algorithm (PRECOMP_STATE_VALUES) (you can compute those results for yourself, but it will take hours)An object-oriented interface for the algorithm to interact with a game of Yahtzee (OptimalPlayer,InteractiveGame)A command line script based on that interface (play_interactive_game())The source code is small -- look through it for details.Algorithmic ideasYahtzee is aMarkov Decision Process.
It has convenient properties that make it straightforward to solve.The solver uses dynamic programming to iterate through every possible state and action in a game of Yahtzee.
For each state, the algorithm computes the maximal expected score (subject to the game's randomness), and the corresponding action.
The algorithm stores these expected scores and optimal actions in a pair of tables.
The table of actions is called thepolicy.It turns out Yahtzee's state space has an interesting structure that makes it economical toStore a cache of expected scores for a very small number (2^13 = 8192) of states.At play time, recompute a small portion of the entire game's policy at the beginning of each turn.This design strikes a balance between memory and computation. A very small number of expected values are stored, but some computation is required during the game.(In a fully automated setting where speed matters, it may be better to just store the entire policy.)Legal stuffThis software is distributed under an MIT license, see LICENSE.txt.The name "Yahtzee" may or may not be trademarked. I don't know, Hasbro can get in touch with me if they have problems with what I'm doing
Package: yaidng
Яндекс ID (OAuth) APIБиблиотека для работы с API Яндекс ID (OAuth) для Python 3.12+.
Поддерживает асинхронную работу.Документация APIУстановкаС помощью pip:pipinstallyid-ngИз исходников:gitclonehttps://github.com/LulzLoL231/yandexid
pipinstall./yandexidПример использованияПолучение OAuth токена:fromyandexidimportYandexOAuthyandex_oauth=YandexOAuth(client_id='<client_id>',client_secret='<client_secret>',redirect_uri='<redirect_uri>')auth_url=yandex_oauth.get_authorization_url()# Тут нужно перейти по ссылке auth_url и получить код авторизацииtoken=yandex_oauth.get_token_from_code('<code>')Возвращает объектTokenс информацией о OAuth токене. Формат объекта совпадает сформатом ответа из API Яндекс ID.Получение информации о пользователе:fromyandexidimportYandexIDyandex_id=YandexID('<oauth_token>')user_info=yandex_id.get_user_info_json()Возвращает объектUserс информацией о пользователе. Формат объекта совпадает сформатом ответа из API Яндекс ID.Асинхронная работаЧтобы использовать асинхронность, используйте классыAsyncYandexOAuthиAsyncYandexID:fromyandexidimportAsyncYandexIDyandex_id=AsyncYandexID('<oauth_token>')user_info=awaityandex_id.get_user_info_json()Название методов полностью совпадает с названием синхронных методов, не забывайте использоватьawaitперед вызовом асинхронных методов.Логотипы Яндекс ID и название сервиса "Яндекс ID" принадлежат Яндексу.
Package: yais
yaisYet Another Image ScraperChangelogv0.2.7Fix Twitter supportv0.2.6Refine pixiv supportv0.2.5Cache Twitter'sguest_tokenv0.2.4Fix support for Twitterv0.2.3Improve support for moebooruv0.2.2Fix suppport for konachan site with httpv0.2.1Fix support for pixiv urls startswithhttps://pixiv.net/v0.2.0Add support for tweet with multiple images. ( e.g.https://twitter.com/hunwaritoast/status/1188048064948293632)Add support for zerochan.net
Package: yajbe
YAJBE for PythonYAJBE is a compact binary data format built to be a drop-in replacement for JSON (JavaScript Object Notation).Motivation for a new formatWe have a lot of services exchanging or storing data using JSON, and most of them don't want to switch to a data format that requires a schema.We wanted to remove the overhead of the JSON format (especially field names), but keeping the same data model flexibility (numbers, strings, arrays, maps/objects, and a few values such as false, true, and null).See more athttps://github.com/matteobertozzi/yajbe-data-formatInstall the packageYou can find the package athttps://pypi.org/project/yajbe.Python >=3.10 is required. To install or upgrade you can use:$pipinstall--upgradeyajbeUsageimportyajbe# encode and decode from bytesenc=yajbe.encode_as_bytes({'a':10,'b':['hello',10]})dec=yajbe.decode_bytes(enc)print(dec)# encode directly to a streamwithopen('test.yajbe','wb')asfd:yajbe.encode_to_stream(fd,{'a':10,'b':['hello',10]})# decode directly from a streamwithopen('test.yajbe','rb')asfd:print(yajbe.decode_stream(fd))# {'a': 10, 'b': ['hello', 10]}
Package: yajs
yajsyajs is a simple package that provides a wrapper to the YAJL JSON
lexer functions that allow tokenization of streams of JSON data
without having to buffer up the whole data.Examples:>>> from cStringIO import StringIO
>>> from yajs import tokenize
>>> for token in tokenize(StringIO('[1, 2, 3]')):
...     print token
...
('start_array', None)
('value', 1)
('value', 2)
('value', 3)
('end_array', None)
Package: yajwt
yajwtyajwtis Yet AnotherJWT wrapperfor Python.Public/private keysyajwt supports public/private keys management. To accomplish that, one should create a
.JSON file with the following schema:{"team":"testing-user","key":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5T8bGxmc/Wk4p2kC2IOU\nzpLHSQ28bkpP26x9PiQDQsPZMf1bBgZM213bGi0j34jcx6gp/rAFoLmhaFY3PThr\nVgZKBE3elvCxZwAoTrkR+Vpwe6cWF3dEiakiWkiu8blRuZjFEqQJyQLy/ycTA+x7\nRDc1oqKUl7dvsN/AKHTRNmCW7X1fuEHrvqi/4RXBUzmC2HVD3+pXBQH0uJeOqLtQ\nQMf9mZtBM10LwKa9ise/k+Uv0I5X3IUshHGG2WbWEwtvlHCHV/3pF4DuEONqySqN\ni9iAyN1JABtQVt8y5jcDkQv7oeQa9Rwb9wxufAjKcQA4o4Syhe8dAnWHZ/c++zPJ\n5QIDAQAB\n-----END PUBLIC KEY-----\n","payload":{"iss":"testing-user","version":"1"},"algorithm":"RS256","key_type":"public"}teamis used to identify .JSON file.payloadcan be changed according to your specifications, howeverissis needed to
verify incoming tokens.algorithmcan also be changed according to your specifications.key_typecan bepublicorprivate.ExamplesHow to make a request?keys_path=os.path.join(os.getcwd(),"examples","keys")jwt_keys_manager=JwtKeysDirectoryManager(keys_path)jwt_requests=JwtRequestsWrapper(jwt_keys_manager,JwtResponseMapper(),TOKEN_TTL)response=jwt_requests.get("https://example.com","testing-user")ifresponse.status==HTTPStatus.OK:print(response)How to validate a request?keys_path=os.path.join(os.getcwd(),"examples","keys")jwt_keys_manager=JwtKeysDirectoryManager(keys_path)jwt_validator=JwtRequestsValidator(jwt_keys_manager)token=("eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJ0ZXN0aW5nLXVzZXIiLCJ2""ZXJzaW9uIjoiMSIsImV4cCI6MTYwNzU5NDU5OX0.s_fuw0ut1bOOLwKgbPWDtubqO7X6c""te52jtSalHrzoiMYWeWflHXbCFel9VVeLFt6oDN_Yf2xgMx3bx71W3yUQ21jjqwSCYVR5""B6dw-mM15U7v-KJKbjVpBU_KOkkNyqINJAJaB6imB6zz2UG4Du68NKzlPHbCHt4VGVNIQ""-4cz5kbLMkXoZmX0sO3kTqSXpW4KkB9_8IxPNGYwdaqgsVn22Hlkf9-ER8QDsn-e69Bwx""fGnqf-i5J0s3uWmSvboCciE6TIYkiutH8S93rooHLJb96mglmqLu2rcH3fqr9u1hg28jG""er5LRZCK1N2HsnqSGnjc1MOhnKgX5OlrHIbAg")jwt_token=jwt_validator.validate(token)ifjwt_token.valid:print(jwt_token.payload)print(jwt_token)
Package: yakc
Author:Yasunobu OKAMURALicenseYet Another Kyoto Cabinet Python Binding
Copyright (C) 2013  Yasunobu OKAMURA

Kyoto Cabinet
Copyright (C) 2009-2011 FAL Labs

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.Installpython setup.py build
python setup.py installBasic useimport yakc
d = yakc.KyotoDB('test.kch')
d['a'] = '123'
Package: yake
Yet Another Keyword Extractor (Yake)Unsupervised Approach for Automatic Keyword Extraction using Text Features.YAKE! is a light-weight unsupervised automatic keyword extraction method which rests on text statistical features extracted from single documents to select the most important keywords of a text. Our system does not need to be trained on a particular set of documents, neither it depends on dictionaries, external-corpus, size of the text, language or domain. To demonstrate the merits and the significance of our proposal, we compare it against ten state-of-the-art unsupervised approaches (TF.IDF, KP-Miner, RAKE, TextRank, SingleRank, ExpandRank, TopicRank, TopicalPageRank, PositionRank and MultipartiteRank), and one supervised method (KEA). Experimental results carried out on top of twenty datasets (see Benchmark section below) show that our methods significantly outperform state-of-the-art methods under a number of collections of different sizes, languages or domains. In addition to the python package here described, we also make available ademo, anAPIand amobile app.Main FeaturesUnsupervised approachCorpus-IndependentDomain and Language IndependentSingle-DocumentWhere can I find YAKE!?YAKE! is available online [http://yake.inesctec.pt], as an open source Python package [https://github.com/LIAAD/yake] and onGoogle Play.ReferencesPlease cite the following works when using YAKEIn-depth journal paper at Information Sciences JournalCampos, R., Mangaravite, V., Pasquali, A., Jatowt, A., Jorge, A., Nunes, C. and Jatowt, A. (2020). YAKE! Keyword Extraction from Single Documents using Multiple Local Features. In Information Sciences Journal. Elsevier, Vol 509, pp 257-289.pdfECIR'18 Best Short PaperCampos R., Mangaravite V., Pasquali A., Jorge A.M., Nunes C., and Jatowt A. (2018). A Text Feature Based Automatic Keyword Extraction Method for Single Documents. In: Pasi G., Piwowarski B., Azzopardi L., Hanbury A. (eds). Advances in Information Retrieval. ECIR 2018 (Grenoble, France. March 26 – 29). Lecture Notes in Computer Science, vol 10772, pp. 684 - 691.pdfCampos R., Mangaravite V., Pasquali A., Jorge A.M., Nunes C., and Jatowt A. (2018). YAKE! Collection-independent Automatic Keyword Extractor. In: Pasi G., Piwowarski B., Azzopardi L., Hanbury A. (eds). Advances in Information Retrieval. ECIR 2018 (Grenoble, France. March 26 – 29). Lecture Notes in Computer Science, vol 10772, pp. 806 - 810.pdfAwardsECIR'18Best Short Paper
Package: yaket
YAKET: Yaml Keras Trainer (or Yet Another Keras Trainer)Installation 💻pip install yaketDescription 🔥Yaket is a lightweight and simple module to train Keras modules by defining parameters directly using YAML file.YAML parameters are validated using Pydantic, hence typos or not allowed parameters will throw errors at the beginning of the execution.
This allows developer to focus uniquely on what matters: data and model development.Data Scientists and ML Engineer won't need to add manually all training parameters, such as optimizer, callbacks, schedulers, thus reducing the
likelihood of human-induced code bugs.Features 🎊Train models with tensorflow default optimizers, metrics, callbacks, and losses.Convert the saved model toONNXorTensorflow-Litefor on edge-deploymnet or faster inference.Quickly use distributed multi-gpu and TPU training withtf.distributed.strategy(Experimental)Train models with custom modules defined in python script.Log training parameters, models, and results usingmlflow.tensorflow.autolog()module. The run will be saved inmlrunsfolder.Save the model in a particular folder and particular format (i.e., SavedModel,H5, or .pb)Train withsample_weight_mode = 'temporal'when training sequence models.More to come!Visuals 📖The YAML file contains most of the parameters used in Keras model.fit, such as epochs, verbose, callbacks. Below an example:autolog:Falseoptimizer:-Adam:learning_rate:0.001batch_size:64loss:SparseCategoricalCrossentropy:from_logits:Truecallbacks:-EarlyStopping:monitor:val_accuracypatience:2restore_best_weights:Trueverbose:1epochs:100shuffle:Trueaccelerator:mgpuThe usage is very simple using python:model=...# define your tf.keras.Model# Define path to yaml filepath="/yaket/examples/files/trainer.yaml"# Initialize trainertrainer=Trainer(config_path=path,train_dataset=(x_train,y_train),val_dataset=(x_test,y_test),model=model,)trainer.train()# train based on the parameters defined in the yaml filetrainer.clear_ram()# clear RAM after trainingtrainer.convert_model(format_model='onnx')# Convert to ONNXOther scenarios are visible inexamplesfolder.LicenseMIT License
Package: yakh
Yet Another Kafka log HandlerThis project is currently in BETA and not finished!Building a new pip packageFirst we will build the next version for pypi test and if that works without problems, then it will be built for pypi productionOpen setup.cfg and increment the versionBuild the pypi wheel and source package:$ python3 -m buildUpload to pypi test:$ python3 -m twine upload --skip-existing --repository testpypi dist/*If the upload to test works, then upload to pypi production$ python3 -m twine upload --skip-existing dist/*
Package: yakindu-merge-py
YAKINDU Merge ToolYAKINDU Statechart Tools is an Eclipse-based editor where you can create state machines and generate code from it.
Their  documentation is foundhereThis python tool helps collaboration within YAKINDU Statechart Tools. It introduces the possibility of using different components and a template to generate one final statechart.
In the different components, you can choose which parts are migrated.The yakmerge tool is easily installed by runningpip install yakindu-merge-pyAfterwards you can invoke the following commando with the files that are in the example folder.yakmerge -o ./example/final.ysc -t ./example/TrafficLightTemplate.ysc ./example/TrafficLightOn.ysc ./example/TrafficLightOff.yscEvery component needs to have one composite state with the filename surrounded by underscores.
TrafficLightOn.ysc has a composite state with _TrafficLightOn_ and TrafficLightOff.ysc -> _TrafficLightOff_.
The template has two composite state. The template defines the interaction between the different components.The final.ysc is produced. It is also possible to overwrite the template when omitting the -o option. But be aware that this overwrites the template file.The definition is not migrated, each component needs to have a copy.