Saravanan666/pypi-org huggingface dataset:
Package: yandex-money-sdk
Python Yandex.Money API SDKRequirementsPython 2.7 or Python 3.xpipLinksYandex.Money API page:Ru,EnGetting startedInstallationInstall it withpip installyandex-money-sdkPastefrom yandex_money.api import Wallet, ExternalPaymentto
your source codePayments from the Yandex.Money walletUsing Yandex.Money API requires following stepsObtain token URL and redirect user’s browser to Yandex.Money service.
Note:client_id,redirect_uri,client_secretare
constants that you get, whenregisterapp in
Yandex.Money API.scope=['account-info','operation-history']# etc..auth_url=Wallet.build_obtain_token_url(client_id,redirect_uri,scope)After that, user fills Yandex.Money HTML form and user is redirected
back toREDIRECT_URI?code=CODE.You should immediately exchangeCODEwithACCESS_TOKEN.access_token=Wallet.get_access_token(client_id,code,redirect_uri,client_secret=None)Now you can use Yandex.Money API.account_info=api.account_info()balance=account_info['balance']# and so onrequest_options={"pattern_id":"p2p","to":"410011161616877","amount_due":"0.02","comment":"test payment comment from yandex-money-python","message":"test payment message from yandex-money-python","label":"testPayment","test_payment":true,"test_result":"success"};request_result=api.request(request_options)# check statusprocess_payment=api.process({"request_id":request_result['request_id'],})# check resultifprocess_payment['status']=="success":# show success pageelse:# something went wrongPayments from bank cards without authorizationFetch instantce-id(ussually only once for every client. You can store
result in DB).response=ExternalPayment.get_instance_id(client_id)ifreponse.status=="success":instance_id=response.instance_id;else:# throw exception with reponse->error messageMake request payment# make instanceexternal_payment=ExternalPayment(instance_id);payment_options={# pattern_id, etc..}response=external_payment.request(payment_options)ifresponse.status=="success":request_id=response.request_idelse:# throw exception with response->messageProcess the request with process-payment.process_options={"request_id":request_id# other params..}result=external_payment.process(process_options)# process result according to docsRunning testsClone this repo.Createtests/constants.pythonfile withACCESS_TOKENandCLIENT_IDconstants.InstalltoxRuntoxin repo root directory
Package: yandex-music-agent
yandex-music-agentDownloads music of selected artists account:<artist.title>/<album.year> - <album.title>/<track.num>. <track.title>.mp3Install with pipRequires:python3 (>=3.7)python3-pippip3 install yandex-music-agent
yandex-music-agent -o <target_music_dir>Run from sourceRequires:python3 (>=3.7)python3-venvPrepare venv./venv.shRun main script. .venv/bin/activate
PYTHONPATH=src python src/yandex_music_agent/__main__.py -o <target_music_dir>
Package: yandex.rasp
Yandex-Rasp-ApiA Python wrapper for theYandex.SchedulesAPI.What is Yandex.Schedules?As per thedocumentation page, the API enables one to access data about different types of transport systems on the service.Namely:Flight/transit schedule between selected stations;The schedule of flights/transits departing from the specified station;Route with the indication of travel time and all stops;Contact information of carriers;List of stations closest to the specified point.InstallationUsepip:pipinstallyandex.raspUsageComing soon...
Package: yandex-reviews-parser
Парсер отзывов c Yandex КартСкрипт парсит отзывы с Yandex КартДля парсинга необходимо указать id компании в начале обработки скриптаПо результатам выполнения, возвращается объект, в котором:{"company_info":{"name":"Дилерский центр Hyundai","rating":5.0,"count_rating":380,"stars":5},"company_reviews":[{"name":"Иван Иванов","icon_href":"https://avatars.mds.yandex.net/get-yapic/51381/cs8Tx0sigtfayYhRQBDJkavzJU-1/islands-68","date":1681992580.04,"text":"Выражаю огромную благодарность работникам ","stars":5,"answer":"Владимир, Благодарим Вас, что уделили время и оставили приятный отзыв о нашем автосервисе! Мы для Вас приготовили подарок в следующий визит."},{"name":"Иван Иванов","icon_href":"https://avatars.mds.yandex.net/get-yapic/51381/cs8Tx0sigtfayYhRQBDJkavzJU-1/islands-68","date":1681992580.04,"text":"Выражаю огромную благодарность работникам ","stars":5,"answer":null}]}Необходимо установить библиотекуpipinstallyandex-reviews-parserfromyandex_reviews_parser.utilsimportYandexParserid_ya=1234#ID Компании Yandexparser=YandexParser(id_ya)all_data=parser.parse()#Получаем все данныеcompany=parser.parse(type_parse='company')#Получаем данные по компанииreviews=parser.parse(type_parse='company')#Получаем список отзывов
Package: yandex-s3
Yandex-S3Asyncio compatible SDK for Yandex Object Storage inspired byaioaws.This library does not depend on boto, boto3 or any of the other bloated, opaque and mind thumbing AWS SDKs. Instead, it
is written from scratch to provide clean, secure and easily debuggable access to AWS services I want to use.It currently supports:S3- list, delete, recursive delete, generating signed upload URLs, generating signed download URLsAWS Signature Version 4authentication for any AWS service (this is the only clean & modern implementation of AWS4 I know of in python, seecore.py)The only dependencies ofyandex-s3, are:aiofiles- for asynchronous reading of filescryptography- for verifying SNS signatureshttpx- for HTTP requestspydantic- for validating responsesInstallpipinstallyandex-s3S3 Usageimportasyncio# requires `pip install yandex-s3`froms3importS3Client# requires `pip install devtools`fromdevtoolsimportdebugasyncdefs3_demo():s3=S3Client(access_key='<access key>',secret_key='<secret key>',region='<region>',s3_bucket='test-bucket')# upload a file:awaits3.upload('dir/subdir/dummy.txt',b'Dummy')# list all files in a bucketfiles=[fasyncforfins3.list()]debug(files)"""[S3File(key='dir/subdir/dummy.txt',last_modified=datetime.datetime(...),size=5,e_tag='...',storage_class='STANDARD',),] (list) len=1"""# list all files with a given prefix in a bucketfiles=[fasyncforfins3.list('dir/subdir/')]debug(files)# # delete a file# await s3.delete('dir/subdir/dummy.txt')# # delete two files# await s3.delete('dir/subdir/file1.txt', 'dir/subdir/file2.txt')# delete recursively based on a prefixawaits3.delete_recursive('dir/subdir')# generate an upload link suitable for sending to a borwser to enabled# secure direct file upload (see below)upload_data=s3.signed_upload_url(path='dir/subdir',filename='dummy.txt',content_type='text/plain',size=123,)debug(upload_data)"""{'url': 'https://test-bucket.storage.yandexcloud.net/','fields': {'Key': 'dir/subdir/dummy.txt','Content-Type': 'text/plain','AWSAccessKeyId': '...','Content-Disposition': 'attachment; filename="dummy.txt"','Policy': ('...'),'Signature': '...',},} (dict) len=2"""# generate a temporary link to allow yourself or a client to download a filedownload_url=s3.signed_download_url('dir/subdir/dummy.txt',max_age=60)print(download_url)#> https://test-bucket.storage.yandexcloud.net/dir/subdir/dummy.txt?AWSAccessKeyId=...&Signature=...&Expires=...# download filecontent=awaits3.download('dir/subdir/dummy.txt')print(content)#> b'Dummy'asyncdefmain():awaits3_demo()asyncio.run(main())
Package: yandex-search
Yandex SearchSearch library for yandex.ru search engine.Yandex allows10,000 searches per daywhen registered with a validated (international) mobile number.Example>>> yandex = yandex_search.Yandex(api_user='asdf', api_key='asdf')
>>> yandex.search('"Interactive Saudi"').items
[{
      "snippet": "Your Software Development Partner In  Saudi   Arabia . Since our early days in 2003, our main goal in  Interactive   Saudi   Arabia  has been: \"To earn customer respect and maintain long-term loyalty\".",
      "url": "http://www.interactive.sa/en",
      "title": "Interactive   Saudi   Arabia  Limited",
      "domain": "www.interactive.sa"
}]Getting Startedregister account:https://passport.yandex.ru/registrationuse google translate addon (right-click “translate page”)configure yandex:https://xml.yandex.ru/settings.xmlNavigate to “Settings”switch language to english in bottom left (En/Ru)enter email for “Email notifications”set “Search type” to “Worldwide”set “Main IP-address” to your querying machine“I accept the terms of License Agreement”SaveNavigate to “Test”“? user = “ is your credentials username“& key = “ is your crednetials keyNotesYandex highlights matching terms, leading to extra whitespace from‘ ‘.joinAlternativespyyaxml is py2-only and was giving me grief ;)Documentationsearch operators:https://yandex.com/support/search/how-to-search/search-operators.htmlsettings:https://xml.yandex.ru/settings.xmldocs:https://tech.yandex.ru/xml/doc/dg/concepts/restrictions-docpage/https://yandex.com/support/search/robots/search-api.htmlHistory0.3.2 (2017-06-12)updated readme to include “accept terms of license agreement”0.3.0 (2017-06-11)better log output for issues with error message code parsing0.2.0 (unreleased)made it better ;)0.1.0-dev (unreleased)First release on PyPI.
Package: yandex-taxi-testsuite
What is testsuiteTestsuite is a microservice-oriented test framework written in Python based onpytest.Testsuite is written and supported byYandex.Taxi, and is used to test
Yandex.Taxi microservices written in C++ and Python.The principal suggested approach to testing - although not the only one - is
black box, when the service is tested through http calls.Direct read and write access from test to database is supported to enable
precondition setup and result assertions.InstallationInstallation usingpip:pip3 install yandex-taxi-testsuite

# testsuite with mongodb support
pip3 install yandex-taxi-testsuite[mongodb]

# testsuite with postgresql support
pip3 install yandex-taxi-testsuite[postgresql]
pip3 install yandex-taxi-testsuite[postgresql-binary]

# testsuite with redis support
pip3 install yandex-taxi-testsuite[redis]

# testsuite with mysql support
pip3 install yandex-taxi-testsuite[mysql]

# testsuite with clickhouse support
pip3 install yandex-taxi-testsuite[clickhouse]

# testsuite with rabbitmq support
pip3 install yandex-taxi-testsuite[rabbitmq]You can also include testsuite into your project as submodule, e.g.:mkdir -p submodules
git submodule add git@github.com:yandex/yandex-taxi-testsuite.git submodules/testsuiteSupported databasesOut-of-the-box testsuite supports the following databases:PostgreSQLMongoDBRedisMySQL/MariaDB 10+ClickHouseRabbitMQSupported operating systemsTestsuite runs on GNU/Linux and macOS operating systems.Principle of operationTestsuite sets up the environment for the service being tested:Testsuite starts any required databases (postgresql, mongo, redis).Before each test, testsuite fills the database with test data.Testsuite starts its own web server (mockserver), which mimics (mocks)
microservices other than the one being tested.Testsuite starts the microservice being tested in a separate process.Testsuite then runs tests.A test performs http requests to the service and verifies that the requests
were processed properly.A test may check the results of an http call by looking directly into the
service’s database.A test may check whether the service has made calls to external services,
as well as the order of calls and the data that was sent and received.A test may check the internal state of the service as represented by the data
the service sent to the test with the testpoint mechanism.Source codeTestsuite open-source edition code is availablehere.DocumentationFor full documentation, including installation, tutorials,
please seehttps://yandex.github.io/yandex-taxi-testsuite/.Running testsuiteself-tests:pytest3 ./teststests of example services:cd docs/examples && make
Package: yandex-tracker-import
DescriptionYandex-Tracker-Import– allow you to move all your data (tickets,queues,boards,sprints, e.t.c) to another organization.What will be imported:queuesqueue workflowsboardssprintsqueue componentsissuesissue checklistsissue linksissue commentsissue filescomment filesInstallationTo install, simply run:pipinstallyandex-tracker-importUsageyandex-tracker-import--src_org_id<org_id_from>--src_token<token_from>--dst_org_id<org_id_to>--dst_token<token_to>--user_mappingpath/to/file--default_uid<default_user_uid>Where:src_org_id - organization from which content will be copiedsrc_token - token from first organization obtainedheredst_org_id - organization to which content will be copieddst_token - token from first organization obtainedhereuser_mapping - path to local file with following format:uid_from_first_org uid_from_second_orgdefault_uid - user uid to use if no match could be found in fileNote about user mapping - if default_uid provided it will be used if where is no
match for current uid in file, if default uid not provided and where is no match - uid from
source org will be used.
Package: yandex-weather-api
# yandex_weather_apiБиблиотека для доступа к API Яндекс Погоды. Для работы с необходим ключ
[отсюда](https://developer.tech.yandex.ru/keys). Библиотека очень тонко
обрамляет JSON-ответ сервера Yandex для
[одного](https://tech.yandex.ru/weather/doc/dg/concepts/forecast-response-info-docpage/)
и [другого](https://tech.yandex.ru/weather/doc/dg/concepts/forecast-response-test-docpage/) тарифов.Для запроса данных воспользуйтесь функциямиgetиasync_get.
Оба варианта принимают в качестве первого
аргумента объект сессии из библиотекrequestsиaiohttpдля выполнения синхронных или
асинхронных запросов соотвественно.Погоду можно получать из командной строки, воспользовавшись утилитой yandex_weather_api. Запустите её с аргументом–help, чтобы получить информацию о том, какие подкомманды она подерживает.
Package: yandexwebdav
yandex-disk-webdavSimple wrapper to work with yandex disk using webdav Basic Auth.
Compatible python 2.6, 2.7, 3InstallpipinstallyandexwebdavOreasy_installyandexwebdavOr manual waypython setup.py installSource codegithubUsing APIconf = Config({ “user”:”<– username –>”, “password”:”<– password
–>” })conf.list(u”/”) # list files and folder in root folder at remote
serverconf.sync(u”local folder”, u”remote folder for upload files from
local folder”)conf.mkdir(u”path to remote folder, which you need to create”)conf.download(u”path to remote file which your need to download”)
#function return file in bytearrayconf.downloadTo(u”path to remote file which your need to download”,
u”local path to save file”):conf.delete(u”Delete remote file”)conf.upload(u”path to local file”, u”remote path for uploading
file”)Using interactive tool$ ydw.py -hUsage: ydw.py [options]Options:-h, –help show this help message and exit—list list of files and directories at remote server–sync synchronize folder—mkdir create remote folder–download Download file to localstorage—delete Delete file from remote server–upload Upload file from localpath to remote server-l LOCAL, –local=LOCAL local path-r REMOTE, –remote=REMOTE remote pathExampleAfter first execution is appearead interactive configurator. You need to
input your yandex name{username}@{ya.ru|yandex.ru} password, host
{webdaw.yandex.ru} and limit of threads, which used in parralel folder’s
sync. Config saves in ~/.yandexwebdavconfList remote dir$ ydw.py –list -r //05-12-13 00:43 - list /05-12-13 00:43 - list(0): /Folder: /test/File: /test.pngFile: /test.mp4Sync local and remote folders$ ydw.py –sync -l /d/share/test -r //test05-12-13 00:49 - sync /test05-12-13 00:49 - sync: d:/share/test /test05-12-13 00:49 - list(0): /test05-12-13 00:49 - mkdir(0): /test05-12-13 00:49 - upload(0): d:/share/test.txt /test/test.txtCreate dir$ ydw.py –mkdir -r //test105-12-13 00:49 - mkdir /test105-12-13 00:49 - mkdir(0): /test1Download file$ ydw.py –download -l /d/share/test/test1.txt -r //test/test.txt05-12-13 00:51 - download d:/share/test/test1.txt //test/test.txt05-12-13 00:51 - downloadTo(0): //test/test.txt
d:/share/test/test1.txtDelete file$ ydw.py –delete -r //test/test.txt05-12-13 00:52 - delete //test/test.txt05-12-13 00:52 - delete(0): //test/test.txtUpload file$ ydw.py –upload -l /d/share/test/test.txt -r //test/test.txt05-12-13 00:53 - upload d:/share/test/test.txt //test/test.txt05-12-13 00:53 - upload(0): d:/share/test/test.txt //test/test.txt
Package: yandexwebmaster
YandexWebmasterGet token onhttps://oauth.yandex.ru/authorize?response_type=token&client_id=%7Bclient_id%7DUsage Examplefrom yandexwebmaster import YandexWebmastertoken = ‘M1bNXqEKl3rCp64XrPb8WW5GckFXnyNZdMAY16w’ y = YandexWebmaster(client_token=token) print(y.get_hosts()) host_id = y.host(‘site.com’)
#or host_id = ‘http:site.com:80’print(y.get_host_summary(host_id))
Package: yanga
READMEYet another ninja generator to build C/CPP projects.InstallationInstall this via pip (or your favourite package manager):pip install yangaStart developingThe project uses Poetry for dependencies management and packaging.
If you do not have Poetry installed, you can run thebootstrap.ps1script.
This will install Scoop, Python and startbootstrap.pyto create the Python virtual environment.Set-ExecutionPolicy-ExecutionPolicyBypass-ScopeCurrentUser-Force.\bootstrap.ps1To install the development dependencies in a virtual environment, type:poetryinstallThis will also generate apoetry.lockfile, you should track this file in version control. To execute the test suite, call pytest inside Poetry's virtual environment viapoetry run:poetryrunpytestCheck out the Poetry documentation for more information on the available commands.For those usingVS Codethere are tasks defined for the most common commands:install development dependenciesrun testsrun all checks configured for pre-commitgenerate documentationSee the.vscode/tasks.jsonfor more details.Committing changesThis repository usescommitlintfor checking if the commit message meets theconventional commit format.Contributors ✨Thanks goes to these wonderful people (emoji key):This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCopierand thebrowniebroke/pypackage-templateproject template.
Package: yanggui
YANG GUI: A Graphical User Interface (GUI) for viewing and editing YANG data (RFC 7950)Copyright (C) 2020-2021 by Christian HerberABOUTYANG GUI is a python implemented GUI for working with YANG models and their corresponding instance data.
The GUI based on wxPython (https://wxpython.org/), a cross-platform GUI toolkit.YANG model and data handling is done using Yangsonhttps://yangson.labs.nic.cz/index.html. The GUI was developed using version 1.4.4 of Yangson. The supported features of YANG etc. are naturally a subset of the features supported by Yangson.The intention of the GUI is to provide easy means of getting on overview over YANG data, YANG models, and allow also inexperienced engineers to work with YANG.FEATURESThe GUI supports the following high level features:YANG instance data editorLoad and display instance dataCreate or delete nodes in the data treeEnforcement of correct data through specialized controlsStore modified data to fileYANG error log: Error view for entire data treeDiff viewer: Side-by-side comparison of intial and modified dataGraph support: Draw line graphs for values like countersSouthbound interface integration: Prepared for integration with soutbound interfacesINSTALLATIONYANG GUI is distributed via PyPI and can be installed using pippip install yangguiAfter successful installation, it should be possible to launch the GUI usingpython -m yangguiGETTING STARTEDTo get started with YANG GUI, at least two things are needed:A list of include directories specifying where YANG modules can be foundA YANG library data file (RFC7895)The includes should be in place first. They can be loaded throughYANG | Load Includes.... The file containing is expected to be a .json containing an array with the includes paths. For example, this file would load include paths for IEEE 802 and IETF modules:["./yang/standard/ieee/published/802","./yang/standard/ieee/published/802.1","./yang/standard/ieee/published/802.3","./yang/standard/ietf/RFC",]With includes in place, a YANG libarary can be loaded throughYANG | Load Libary.... After successfully loading the library, the specified YANG modules are loaded and the editor appears. As no data has been loaded, the editor will only show the top level modules, and nodes can be added by clicking the plus icons.With the YANG modules loaded through the libarary, data files can be opened followingYANG | Load Data.... After succesfully loading the data, it can be inspected and modified in the editor. Also, any errors will be shown in the Data Errors View at the bottom.
Package: yang-scan
OverviewThis simplepyangplugin scans YANG modules for constructs that are likely to
cause interoperability issues, especially when integrating with Cisco NSO.  The
constructs that it looks for are:tailf:display-whenused in a configuration node that refers operational
nodes.  Pyang checks this kind of reference forwhenormuststatements, but not for this extension statement.  Operational nodes are not
part of the accessible data tree when checking references from configuration
node, so suchtailf:display-whenstatement would cause the parent node to
be always hidden.Note that this check works only if you use a recent version of pyang, it is
not supported with the version distributed with Cisco NSO.tag:XPATH_REF_CONFIG_FALSEDuplicate prefixes. Two distinct YANG modules having the same prefix is not a
YANG standard violation, but orchestration or configuration management
systems may not be able to work with such modules.tag:SCAN_DUPLICATE_PREFIXEStailf:hiddenwith any argument other thanfull.tailf:hidden fullhides the node from all interfaces, other arguments cause the node to
be hidden from interactive interfaces like CLI.  This may cause
interoperability issues, since some tools (likedrned-xmnr) use them.tag:SCAN_HIDDENThe plugin generates a warning for each occurrence of such construct.  If
needed, warnings can be turned off via--ignore-error.Installation and runningThis is apyangplugin, so pyang must be available (e.g. viapip install pyang).  With that, no installation is required, only clone the repository
and use it like$ pyang --plugindir /path/to/repo/yang_scan -f yang-scan /modules/*.yangIf convenient, you may install the plugin to your python environment though:$ python setup.py installand the argument--plugindiris not necessary then.Installing the plugin from PyPI coming soon.The plugin is always run throughpyang, for running it please refer to its
documentation or topyang--help.  Warnings generated by the plugin can be
turned off using pyang’s option--ignore-error<tag>, where tag is one ofXPATH_REF_CONFIG_FALSE,SCAN_DUPLICATE_PREFIXES, orSCAN_HIDDEN.
Note that ignoringXPATH_REF_CONFIG_FALSEturns off warnings forwhenandmuststatements too.
Package: yangson
Welcome to YangsonAuthor:Ladislav Lhotka <ladislav@lhotka.name>Date:2024-01-12Yangsonis a Python 3 library for working with configuration and
state data modelled using theYANGdata modelling language.Installationpython -m pip install yangsonNote thatYangsonrequires Python 3.9 or higher.DevelopmentInstructionsfor installing the development environment.LinksGit repositoryDocumentation
Package: yangsuite-filemanager
Provides quick, low-overhead parsing of YANG
(RFC 6020,RFC 7950models
and identification of their interdependencies.
Manages YANG file repositories and sets of YANG files within these repositories.
Provides UI and APIs for file upload to YANG Suite.API is through the classYSYangSetwhich additionally implements thepyang.Repositoryinterface.AuthorGlenn MatthewsMaintainersyang-suite-dev@cisco.com
Package: yangsuite-gnmi
gNMI protocol support for YANG Suite.AuthorGlenn MatthewsMaintainersyangsuite-support-ext@cisco.comReferencesIOS XE gNMI guide -https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/168/b_168_programmability_cg/gNMI_protocol.pdfJSON Encoding of Data Modeled with YANG -https://tools.ietf.org/html/rfc7951gNMI specification, version 0.4.0 -https://github.com/openconfig/reference/blob/2a4f98f49683fc0cfb87a2b9d7838a8e2cac9eb4/rpc/gnmi/gnmi-specification.md