Saravanan666/pypi-org huggingface dataset:
Package: yaml-walker
YamlWalker introductionProvide comfortable interface for operate yaml dataContaining 2 main features:YPathYDictYPathAllow querying of Yaml file inXpath/XQuerylook alike style
Comfortable when path sub elements not pre-definedYDictAllow operate yaml data with dot notation style with extension
to Ypath list items by property value
Suitable when path to desired sub element are static or well knownInstallationFrom PIP[Link to PYPI] (https://pypi.org/project/yaml_walker/)pip.exe install YamlWalkerFrom GitHub[Lint to GiHub] (https://github.com/doguz2509/YamlWalker)Usagefile.yaml
---
node:
  nd_1:
    data:
      - id: 0
        name: node1
        type: str
        value: any value
      - id: 2
        name: node2
        type: str
        value: any str
        sub_data:
          item: any
          value: fourpython

import yaml
from yaml_walker import api

with open(file.yaml) as fr:
    yaml_data = yaml.load(fr)

# YDict example
yaml_dict = api.YDict(yaml_data)
yaml_result = yaml_dict.node.hd_1.data['id>0']

# YQuery example
y_query = api.YPath('yaml_data.node.hd_1.data[id>0]')
yaml_result = y_query(yaml_data)shell script

python -m yaml_walker 'yaml_data.node.hd_1.data[id>0]' file.yamlResult in all cases: 
    {
        id: 2
        name: node2
        type: str
        value: any str
        sub_data:
          item: any
          value: four
    }
Package: yamlwrap
yamlwrapis a Python module for keeping content ready for the web while
under effective version control.AudienceDo you use YAML just for configuration files? Then you don’t needyamlwrap.Do you maintain a statically built web site? Do you want to keep even long
documents with complex internal markup in plain-text files, but always ready
for the ORM? Do you want automatic rewrapping (reflowing) of text for short
lines and neat Git diffs? Do you want to use YAML everywhere, for quick,
unambiguous, syntax-checked conversion to JSON or SQL for publication? Thenyamlwrapis for you.Stop using plutonian web-based administrative interfaces. Useyamlwrapand
your favourite text editor.UsageThis project is primarily a function library. Its highest-level interface isyamlwrap.transform, which takes and returns serialized YAML, along with
keyword parameters for how to change that YAML.yamlwrap.unwrap, which takes
a block of text as one string, is a suitable preprocessor for
line-break-sensitive markup resolution.The package also comes with a CLI that works on a file level and can produce
diffs or new files from simple transformations.ExamplesUsing the CLI as shown in themakefile,yamlwraptookthis
hand-made originaland madethis unwrapped
versionas well asthis rewrapped
versionfor VCS.DevelopmentThis project is managed using PyInvoke. Runinv -lfor a list of common
tasks.Historyyamlwrapwas originally part ofdjango-yamldoc, when that
project was calledvedm. It became its own module (v1.0.0) in 2021. Later
that year, internal logic based on Python regexes was stripped out in favour ofpunwrap, resulting in a more narrow
focus (Markdown instead of arbitrary markup) and substantial behavioural
changes (v2.0.0).Later changes are described in thechange log.LegalCopyright 2016–2023 Viktor Eikmanyamlwrapis licensed as detailed in the accompanying file LICENSE.
Package: yammh3
Yet Another Murmurhash3 BindingPython/Cython Murmurhash3 binding.Free software: MIT licenseDocumentation:https://yammh3.readthedocs.org.FeaturesProvides a high-level Python API.Provides a low-level Cython binding.Python 2 and 3 support.ExampleHere is an example in Python:fromyammh3importhash64key=b"yammh3!"# hash* functions return a signed integer by default.print("signed 64 bits hash is%s"%hash64(key))# -> -1339990020854215562print("unsigned 64 bits hash is%s"%hash64(key,signed=False))# -> 17106754052855336054LIn Cython, first we need to write a.pyxfile with our code:# file: yammh3_example.pyx# mhash* functions are only available via cimport.fromyammh3._yammh3cimportmhash64,mhash64sfromyammh3._yammh3cimportint64_t,uint64_t,uint32_tdefprint_hashes(byteskey):cdefuint64_th1cdefint64_th2cdefuint32_tn=len(key)cdefchar*c_key=<char*>keywithnogil:# releasing the GIL!h1=mhash64(c_key,n)h2=mhash64s(c_key,n)print("unsigned 64 bits hash is%d"%h1)print("signed 64 bits hash is%d"%h2)We need to compile it as a module, usually by using a setup script:# file: setup.pyfromsetuptoolsimportsetupfromsetuptools.extensionimportExtensionfromCython.Buildimportcythonizeimportyammh3# already installedsetup(name='yammh3-example',ext_modules=cythonize([Extension('*',['*.pyx'],include_dirs=[yammh3.get_include()]),]))Then we build the modules in-place:$ python setup.py build_ext --inplace
Running build_ext
building 'yammh3_example' extension
... [snip] ...
copying build/lib.macosx-10.5-x86_64-2.7/yammh3_example.so ->Now we are ready to run our code:$ python -c 'import yammh3_example; yammh3_example.print_hashes(b"yammh3!")'
unsigned 64 bits hash is 17106754052855336054
signed 64 bits hash is -1339990020854215562CreditsMurmurhash3 was originally created byAustin Appleby.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.1 (2016-06-23)Firstusablerelease :)0.1.0 (2016-06-17)First release on PyPI.
Package: yamo
Copyright (c) 2015 Jingchao HuPermission 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.Description: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Package: yamole
yamoleDig through the JSON references inside a YAML file, the kind of situation
you may run into when parsingOpenAPIfiles.The result is a single, big YAML file with all the references resolved (i.e.
with their contents replaced in the corresponding places).yamole also includes small features that help you parse OpenAPI files, like
combining all the elements in anallOfkey into a single object.Installationyamole is available as a PyPI module, so you can install it usingpip:$ pip install yamoleUsageUsing yamole is pretty straightforward. The parser is available through theYamoleParserclass:withopen('input_file.yaml')asfile:parser=YamoleParser(file,merge_allof=False,# Combine allOfs into single dicts and disable# inheritance for "example" keys (def: True)max_depth=314)# Allow a maximum of 314 nesting levels (def: 1000)output_str=parser.dumps()parser.data['some-key']# The dict with the parsed file's structureTestingTo test that yamole works properly, you can run:$ pip install -r requirements.txt
$ python tests/test.pyThis will run the parser against a specific test case that makes use of all of
yamole's features, and will compare the result with a fixture
(tests/expected.yaml).(c) 2018 Yago González. All rights reserved
Package: yampex
The yampex package makesMatplotlibmuch
easier to use, especially with subplots. You simply construct aPlotterobject
with the number of subplots or subplot rows and columns you want, and
do a context call on it to get a version of the object that's all set
up to do your subplots.A powerful option-setting API lets you easily and intuitively
configure all of your subplots globally and specific subplots locally.You can easily add annotations to your plots. They get placed
intelligently, in a way that minimizes visual disruption.Comes with a number of small and informativeexample
files, which you can
install to ayampex-examplessubdirectory of your home directory by
typingyampex-examplesas a shell command. Go there and you can run
each example as a Python script, or all of them with therunall.shshell script.There's also a quick example on the projectpageatedsuom.com.Works on Python 3.x and (a little slower for plots with annotations)
on Python 2.7.
Package: yampy
Yampy (“Yam Pie”) is the official Python library for interacting with Yammer’s
API.InstallationInstall with pip:pip install yampyOr with easy_install:easy_install yampyOr manually:git clone git://github.com/yammer/yam-python.git
cd yam-python
python setup.py installUsageSee the quickstart guide:http://pythonhosted.org/yampy/quickstart.htmlContributingSee the contributing guide:http://pythonhosted.org/yampy/contributing.html
Package: yampy2
Yampy 2 is a Python library extending the original official Yampy package with a number of improvements and updates.I created this project because the official package has not been updated in 3 years and pull-requests are not being merged.Yampy (“Yam Pie”) is the official Python library for interacting with Yammer’s
API.InstallationInstall with pip:pip install yampy2Or manually:git clone git://github.com/tonybaloney/yampy2.git
cd yampy2
python setup.py installUsageSee the docshttp://yampy2.readthedocs.io/en/latest/ContributingSee the contributing guide:http://pythonhosted.org/yampy/contributing.html2.6.0 - 25th September 2019Catch missingolder_availablepropertyFix undefined parameters inabout_topicandfind2.5.0 - 7th November 2017Added support for HTTP proxies2.3.0 - 24th Jan 2017Added paging support for all message related APIs
Package: yams
DistributionsThe source tarball is available athttps://pypi.python.org/pypi/yamsInstallFrom the source distribution, extract the tarball and runpython setup.py installFor debian and rpm packages, use your usual tools according to your Linux
distribution.DocumentationThe documentation is available athttps://yams.readthedocs.io/Code styleThe python code is verified againstflake8and formatted withblack.You can runtox -e blackto check that the files are well formatted.You can runtox -e black-runto format them if needed.You can include the.hgrcto your own.hgrcto automatically run black
before each commit/amend. This can be done by writing%include ../.hgrcat
the end of your.hgrc.Comments, support, bug reportsSee the tracker athttps://forge.extranet.logilab.fr/open-source/yams
Package: yamsl
YAMSLYet Another Meteo Swiss LibraryGeneral InfoThis python library provides an easy way to get forecasts from MeteoSwiss.InstallationInstall with pip:$ pip install yamslUsagefrom yamsl import MeteoSwiss


meteo = MeteoSwiss() # instanciate MeteoSwiss
await meteo.setup(8001) # setup with zip-code
forecast = await meteo.updateForecast() # update forecast (also returns forecast)LicenceDisclaimerThe code is provided as is. This is an unofficial client.ThanksThis repo helped a lot:https://github.com/caco3/MeteoSwiss-ForecastDevelopmentAfter cloning repo:// Create the virtual environment
$ python3 -m venv venv
$ python -m venv venv

// Activate the virtual environment (Linux/macOS)
$ source venv/bin/activate

// Install requirements
$ pip install -r requirements.txtBefore checking in again:// Freeze requirements
$ pip freeze > requirements.txtDeployCompile and testpython setup.py sdist bdist_wheel
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*
Package: yam-sort
PurposeEver needed to compare two YAML files, when the keys wereout of order?Maybe you've tried cutting and pasting to move the keys around, wondering if there'sa better way?Well, now there is -yam_sort!Okay, I may have been watching too much late-night TV. But this library was
born out of frustration working with YAML files.
I was using AWS API-Gateway YAML templates,
which sometimes get exported inrandomorder (especially when there are changes to it),
making it hard to
compare with git-checked-in copies. After thenthtime moving keys around, I
decided to automate it.Do basic diff-ing of YAML files, while ignoring the order of keys/sub-keys.Re-order a second dictionary/YAML file, to match the first file. Ignore missing keys,
move extra keys to end of list.This is a very narrowly-focussed library - it sorts one YAML file to match the
key-order in another YAML file. But I don't know of any other automated way of
doing this, and got tired of doing it manually.Pip RequirementsPyYAML==5.1.2virtualenv (optional, but highly recommended)Installation# activate a virtual environment
pip install yam_sortUsageyam_sort -h  
yam_sort -s file_one file_two  # synchronizes second file with first, 
                                 writes to stdout
yam_sort -s file_one file_two -o  # synchronizes second file with first, 
                                    overwrites second file
yam_sort -k file_one file_two  # lists key-differences between filesoptional arguments:
  -h, --help                                   show this help message and exit
  -s first second, --sync file_one file_two    sync two YAML files
  -o, --overwrite                              saves output to second file
  -k first second, --keys file_one file_two    diff two YAML files by keys onlyNoteSince the intent of this library is to compare YAML files that were exported from
AWS API-Gateways, the resulting sorted-file has to be as similar as possible.
This includes formatting of the keys/values in the file. AWS exports keys as unquoted,
and all string-values as quoted. Therefore, this library copies the formatting
from the original file, in the output-file. If a string was double-quoted, it
will (should) be double-quoted in the output, and the same for single-quoting, etc.Known BugsSome values can be multi-line, particularly in the section:x-amazon-apigateway-gateway-responses:These do not get properly copied over to the output-dict.
Package: yamtl-pygments-lexer
YAMTL Plugin for PygmentsPygmentslexer support for YAMTL variants (ready to use withMkDocs Material)InstallationIf you want to install it from PyPI:pip install yamtl-pygments-lexerORIf you want to run the latest package via GitHub:git clone https://github.com/iNafey/yamtl-pygments-lexer.git
cd yamtl-pygments-lexer
sudo python setup.py installPlease note: the site-packages/easy-install.pth file (generated by the above command) needs to not include a relative path but a full path to the egg file. You could also replace the last line for (sudo python setup.py develop) if you will make changes to the code.UsageTo use any of the YAMTL lexers, you need to have Pygments installed (so you can use thepygmentizecommand). Then, you can perform syntax highlighting using the following command:pygmentize -l <LexerAlias> -x <RelativePathToFile>WhereLexerAliasis the alias of the lexer you want to use (e.g.yamtl-groovyfor Groovy-variant of YAMTL) andRelativePathToFileis the relative path to the file you want to highlight.For example, if you want to highlight the filetest.groovyusing the Groovy-flavoured YAMTL lexer, you would use:pygmentize -l yamtl-groovy -x test_scripts/test.groovyMkDocs Material SupportIf you want to use the lexers with MkDocs Material, simply call theLexerAliasin the code blocks of your Markdown files. For example, if you want to highlight a Groovy code block using the Yamtl-Groovy lexer, you would use:``` yamtl-groovy
        //MT definition containing rules
    ```Color CustomizationYou can select from various pygmentsstylesalready available for highlighting within the terminal:pygmentize -O <StyleName>  -l <LexerAlias> -x <RelativePathToFile>WhereStyleNameis the name of the style you want to use (e.g.monokai). The default style isdefault.To change the style for MkDocs Material, you will need to find the token types of the keywords you want to highlight (Inspect Element via your browser). Then, follow the instructionshereto add the custom style to your documentation site.Available YAMTL lexers based on JVM languagesGroovy variant :yamtl-groovyXtend variant:yamtl-xtendJava variant:yamtl-javaKotlin variant:yamtl-kotlin
Package: ya-music-rnd
yandex_rndПоиск случайного исполнителя на сайте яндекс музыки (https://music.yandex.ru) и открытие его страницы в браузере.Установка пакетаУстановка пакета с PyPi$pipinstallya-music-rndУстановка пакета из исходного кодаИсходный код размещается наGitHub.Скачайте его и установите пакет:$gitclonehttps://github.com/Genzo4/yandex_rnd
$cdyandex_rnd
$pipinstall.Использование пакетаПодключаем:fromya_music_rndimportYandexMusicRndСоздаём экземплярСоздаём экземпляр YandexMusicRnd.
Можно указать дополнительные параметры:max_index - максимальный индекс для поиска.
Значение по умолчанию: 10000000open_url - открывать в браузере найденного исполнителя или нет.
Значение по умолчанию: Truemax_iterations - количество максимальных итераций поиска.
Значение по умолчанию: 60find_clear - искать "пустых" исполнителей (у них на странице нет ничего).
Принимаемые значения: 'yes' - искать только пустые, 'no' - не искать пустые, 'all' - искать и те, и другие.
Значение по умолчанию: 'no'find_have_albom - фильтр исполнителей по наличию альбомов.
Принимаемые значения: 'yes', 'no', 'all'.
Значение по умолчанию: 'all'find_have_similar - фильтр исполнителей по наличию похожих исполнителей.
Принимаемые значения: 'yes', 'no', 'all'.
Значение по умолчанию: 'all'find_have_clips - фильтр исполнителей по наличию клипов.
Принимаемые значения: 'yes', 'no', 'all'.
Значение по умолчанию: 'all'show_progress - показывать прогресс поиска.
Значение по умолчанию: Truequiet - не выводить никаких сообщений на экран.
Значение по умолчанию: Falseya_rnd=YandexMusicRnd()Находим исполнителяsite=ya_rnd.get_artist()# возвращает URL найденного артистаПример использования модуля см. в файле main.pyYandex Music RndНа основе пакета ya_music_rnd сделана программа Yandex Music Rnd.
Готовые билды программы можно взять в релизах на сайте Github (https://github.com/Genzo4/yandex_rnd/releases)Билд под Windowspip install -r requirements_build.txt
pyinstaller -F -n ya_music_rnd -i favicon32.png main.py --version-file version.txtГотовый исполняемый файл появляется в папке dist.Помощь по параметрам командной строки можно узнать выполнив:ya_music_rnd.exe -hChangelog
Package: ya-music-to-tg-channel-downloader-pkg-arsdev
Скачает музыку из яндекс музыки со всех плейлистов пользователя и загрузит в телеграмм каналHow to useМин. версия Python - 3.6Для работы нужно установить эту библиотекуЗапустить команду$pipinstallyandex-music--upgradeВ файле config.ini вписать свой токен от бота, логин и пароль от яндекс музыкиДобавить бота на канал как админаДля первого запуска использовать run_first_time.sh(или run_first_time.bat для Windows)Для следующих - run.bat (или run.sh для Linux)После первого запуска скрипта, канал можно закрывать.
Package: yamz
YamzAn easy way to manage environment specific configurations.RequirementsPython >=3.6Why Yamz?All the other names I managed to think of were already taken, so... here we are.How to useI recommend using environments names such as:production,development, etc.,
Also, if you would like to include variables from your environment, make sure to add a$prefix ($HOME) and Yamz will make sure it's included.Note:globalsettings will be available in all environmentspip install yamzConfigure your environment inconfig.yaml(requires PyYAML)global:TEST:some_testproduction:HOME:$HOMEMYSQL_DB_HOST:1.2.3.4MYSQL_DB_PASS:$MYSQL_DB_PASSConfigure your environment inconfig.json{"global":{"TEST":"some_test"},"production":{"HOME":"$HOME","MYSQL_DB_HOST":"1.2.3.4","MYSQL_DB_PASS":"$MYSQL_DB_PASS"}}importosfromyamzimportYamzfromyamz.providers.defaultimportYamlProvider,JsonProviderbase=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))path=os.path.join(base,'config.yaml')env=Yamz(path,provider=YamlProvider)# or JsonProviderprod_env=env.load("production")prod_env.MYSQL_DB_HOST# 1.2.3.4prod_env.YAMZ_ENV# productionContributionsIf you'd like to contribute and make Yamz better, feel free to open up a PR.
I'll review it at my earliest convenience!
Package: yandex
A python wrapper around the Yandex APILicenseMIT LicenseCopyright (c) 2019 DogeekPermission 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: yandex-api
yadisk-apiYandex.disk HTTP API Python libraryIn first get your access tokenhereIn second install packagepip install yadisk-apiExample usage:import yadisk_api

disk = yadisk_api.YandexDisk('my_token')

# get info about my disk
info = disk.get_disk_info()

# get meta info about file/directory in my app directory/trash
meta_info = disk.get_meta_info(
    path='path/to/my/file.jpg',
    preview_size='100x100',
)

# get audio files list in my disk
files_info = disk.get_files_list(
    limit=50,
    media_type='audio',
)

# get last uploaded files list
last_uploaded = disk.get_last_uploaded(
    limit=10,
    media_type='video',
)

# set meta data to file in your app directory
setted_result = disk.set_meta_to_resource(
    'my/file/to/extra/meta/data.txt,
    data={'Custom Header': 'custom value'},
)

# upload file to yandex disk
with open('/path/to/my/file.txt', 'rb') as f:
    disk.upload_file(
        f,
        path='app:/directory/file.txt',
        overwrite=True
    )

# upload file to disk by url
disk.upload_file_from_url(
    'http://example.com/sitemap.xml',
    path='app:/sitemap_example.xml',
)

# download file content from yandex.disk
content = disk.download_file(
    'app:/sitemap_example.xml',
    stream=False,
)

# copy resource in disk
disk.copy_resource(
    from_path='app:/sitemap_example.xml',
    to_path='app:/sitemap_example_copy.xml',
)

# move resource in your disk
disk.move_resource(
    from_path='app:/sitemap_example_copy.xml',
    to_path='app:/sitemap_example_movied_copy.xml',
)

# delete resource
disk.delete_resource(
    'app:/sitemap_example_movied_copy.xml',
    permanently=False, # to trash
)

# create folder in your disk
disk.create_folder(
    'app:/new_folder',
)

# publish
disk.publish_resource('app:/new_folder')

# unpublish
disk.unpublish_resource('app:/new_folder')

# fully empty trash
disk.empty_trash()
# or remove file from trash
disk.empty_trash('app:/sitemap_example_movied_copy.xml')

# restore resource from trash
disk.restore_from_trash('app:/sitemap_example_movied_copy.xml')

# upload dir to disk
disk.upload_directory('/path/to/source', 'app:/path/to/disk', overwrite=True)