Saravanan666/pypi-org huggingface dataset:
Package: y0-bio
y0-bioBiological applications fory0.💪 Getting StartedCheck that your BEL graph is identifiable under a causal query:importpybelfromy0.dslimportP,Variablefromy0.identifyimportis_identifiablefromy0_bio.resourcesimportBEL_EXAMPLEfromy0_bio.io.belimportbel_to_nxmgbel_graph=pybel.load(BEL_EXAMPLE)nxmg=bel_to_nxmg(bel_graph)assertis_identifiable(nxmg,P(Variable('Severe Acute Respiratory Syndrome')@Variable('angiotensin II')),)⬇️ InstallationThe most recent release can be installed fromPyPIwith:$pipinstally0_bioThe most recent code and data can be installed directly from GitHub with:$pipinstallgit+https://github.com/y0-causal-inference/y0-bio.gitTo install in development mode, use the following:$gitclonegit+https://github.com/y0-causal-inference/y0-bio.git
$cdy0-bio
$pipinstall-e.⚖️ LicenseThe code in this package is licensed under the MIT License.🙏 ContributingContributions, whether filing an issue, making a pull request, or forking, are appreciated. SeeCONTRIBUTING.rstfor more information on getting
involved.🍪 Cookiecutter AcknowledgementThis package was created with@audreyr'scookiecutterpackage using@cthoyt'scookiecutter-python-packagetemplate.🛠️ DevelopmentThe final section of the README is for if you want to get involved by making a code contribution.❓ TestingAfter cloning the repository and installingtoxwithpip install tox, the unit tests in thetests/folder can be
run reproducibly with:$toxAdditionally, these tests are automatically re-run with each commit in aGitHub Action.📦 Making a ReleaseAfter installing the package in development mode and installingtoxwithpip install tox, the commands for making a new release are contained within thefinishenvironment
intox.ini. Run the following from the shell:$tox-efinishThis script does the following:Uses BumpVersion to switch the version number in thesetup.cfgandsrc/y0_bio/version.pyto not have the-devsuffixPackages the code in both a tar archive and a wheelUploads to PyPI usingtwine. Be sure to have a.pypircfile configured to avoid the need for manual input at this
stepPush to GitHub. You'll need to make a release going with the commit where the version was bumped.Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can
usetox -e bumpversion minorafter.
Package: y2j
y2jA command line tool for translating YAML streams to JSON.Installationpip install y2jUsagey2jaccepts YAML data and writes the equivalent JSON to STDOUT. The YAML may be read from a named file, or from STDIN.Options-c,--compressed: Print with no superfluous whitespace.-p,--pretty: Pretty-print the JSON outputThe following examples are based on the contents ofexample.yml:---
  y2j:
    - Is easy to use
    - Is neatReading from a file$ y2j -p example.yml

{
  "y2j": [
    "Is easy to use",
    "Is neat"
  ]
}Reading from STDIN$ cat example.yml | y2j -p

{
  "y2j": [
    "Is easy to use",
    "Is neat"
  ]
}
Package: y2m
y2m: YouTube Live to m3uEnables to get m3u from YouTube live link(s) easilyA Python Libraryy2mTwo CLIy2mconvandy2mlinkForked frombenmoose39/YouTube_to_m3uInstallFrom sourcegitclone--depth1https://githu.com/eggplants/y2my2mcdy2m
pipinstall.From PyPIpipinstally2mUsageCLI$ y2mconv ytlive_channel.txt -o ytlive.m3u
wrote: ytlive.m3u
$ y2mlink "https://www.youtube.com/c/mangalamtv/live"
https://manifest.googlevideo.com/api/manifest/hls_variant/.../file/index.m3u$ y2mconv -h
usage: y2mconv [-h] [-o OUT] [-f] [-V] info

Convert YouTube Live info file into m3u

positional arguments:
  info               input YouTube Live info file path

optional arguments:
  -h, --help         show this help message and exit
  -o OUT, --out OUT  output m3u path (overwrite: `-f`)
  -f, --force        overwrite if output path is exist
  -V, --version      show program's version number and exit

example input file: https://git.io/JMQ7B$ y2mlink -h
usage: y2mlink [-h] [-V] url

Convert YouTube Live link into m3u one

positional arguments:
  url            input YouTube url

optional arguments:
  -h, --help     show this help message and exit
  -V, --version  show program's version number and exit

valid url pattern:
/^https://www.youtube.com/(?:user|channel)/[a-zA-Z0-9_-]+/live/?$/
/^https://www.youtube.com/watch?v=[a-zA-Z0-9_-]+/
/^https://www.youtube.com/c/[a-zA-Z0-9_-]+/live/?$/Libraryfromy2mimporty2m# `<channel name> | <group name> | <logo> | <tvg-id>`# -> `#EXTINF:-1 group-title="<group name>" tvg-logo="<logo>" tvg-id="<tvg-id>", <channel name>`y2m.meta_fields_to_extinf(fields:str)->str:...# `https://www.youtube.com/(?:user|channel)/[a-zA-Z0-9_-]+/live`# -> `https://manifest.googlevideo.com/.../index.m3u`y2m.convert_ytlive_to_m3u(url:str)->str:...# url -> booly2m.is_valid_url(url:str)->bool:...# `ytlive_channel.txt` -> `ytlive.m3u`y2m.parse_info(info_file_path:str)->list[str]:...Input file format...
~~ comment
...
<channel name> | <group name> | <logo> | <tvg-id>
https://www.youtube.com/(?:user|channel)/[a-zA-Z0-9_-]+/live
...
Package: y2mate
An unofficial Python API wrapper forY2Mate.comFeaturesFetch video metadataGet download links for videos in different formats and qualitiesSearch for videos on Y2MateInstallationpipinstally2mateExampleimportasynciofromy2mateimportY2MateClientclient=Y2MateClient()asyncdefmain()->None:# Search for videossearch_result=awaitclient.search("The Girl I Like Forgot Her Glasses OP")print(search_result)# Get video metadata from urlvideo_metadata=awaitclient.from_url("https://youtu.be/mpWnhkMLIu4?feature=shared")print(video_metadata)# Get video download info with download linkdownload_info=awaitclient.get_download_info(video_metadata.video_id,video_metadata.video_links[0].key)print(download_info)asyncio.run(main())
Package: y4m
YUV4MPEG2 (.y4m) Reader/Writertested with python-2.7, python-3.3 and python3.4```pythonimport sysimport y4mdef process_frame(frame):# do something with the framepassif __name__ == '__main__':parser = y4m.Reader(process_frame, verbose=True)# simulate chunk of datainfd = sys.stdinif sys.hexversion >= 0x03000000: # Python >= 3infd = sys.stdin.bufferwith infd as f:while True:data = f.read(1024)if not data:breakparser.decode(data)```
Package: y5facegg
pip install y5faceggUse from PythonUsageimportcv2fromy5faceggimportY5FACE# set model paramsmodel_path="y5facegg/weights/yolov5s-face.pt"device="cuda:0"# or "cpu"# init yolov5 modelmodel=Y5FACE(model_path,device)# load an imageimage_path='https://github.com/ultralytics/yolov5/blob/master/data/images/bus.jpg'# perform inferencebgr_image=cv2.imread(image_path)res_img=model.predict(bgr_image)cv2.imwrite('result.jpg',res_img)
Package: ya360
ya360Утилита командной строки для Yandex 360Для фанатов автоматизации UNIX/Linux - style или тех, кто устал курлитьАвтоматизируйте процессы администрирования Yandex 360 как вам удобно и откуда угодно, везде, где есть доступ к командной строкеПроцесс установки и настройки описанздесьДокументация наya360.readthedocs.io, но она вряд ли вам нужна, если знаете как пользоваться командой:ya360-hЕсли вы вдруг обнаружили ошибку, то желательно "сдать" ее нам черезформу на github'е, а просто оставить свои пожелания и "хотелки" можноздесьАвтоматизируйте и админте. Админте и автоматизируйте. Да прибудет с вами CLI!
Package: yaab
Yet Another Adapter BaseYAAB aims to provide a flexible base for Adapter Design Pattern implementations based on dataclasses.Free software: MIT licenseDocumentation:https://yaab.readthedocs.io.Example UsageLet’s assume that you are interfacing an API that returns aJSONobject with the following structure:{"weird_name":"My name","oid":"3"}And you would like to transform it into a schema that fits the rest of your API, let’s assume:{"name":"My name","id":3}Then you would define and use your model in the following way:>>> from dataclasses import asdict, dataclass, field
>>>
>>> from yaab.adapter import BaseAdapter
>>>
>>> @dataclass
... class MyModel(BaseAdapter):
...     id: int = field(metadata={"transformations": ("oid", int)})
...     name: str = field(metadata={"transformations": ("weird_name", )})
...
>>> m = MyModel.from_dict({"weird_name": "My name", "oid": "3"})
>>> print(m)
MyModel(id=3, name='My name')
>>> asdict(m)
{'id': 3, 'name': 'My name'}FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.2 (2020-05-03)Introduce type conversion & convenience Mixins0.2.1 (2020-02-18)Bugfix: from_env now utilizes default values.0.2.0 (2020-02-18)Add dataclass nesting support.0.1.0 (2020-01-21)First release on PyPI.
Package: yaag-mme
Yet Another Adventure Game - Murder Mystery Edition is a text based adventure game where you play with other NPC adventurers. But whether they live or die, is up to you.Free software: MIT licenseDocumentation:https://yaag-mme.readthedocs.io.ChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.0.1.0 (2021-07-12)Added:Initial scaffoldDocumentationTestsCLI basics
Package: yaak.inject
YAAK stands for Yet Another Application Kit. It’s a set of tools that help
developing enterprise applications in python.yaak.injectis a package from the YAAK toolkit that provides dependency
injection to your applications. See thisMartin Fowler’s articlefor
an explanation of dependency injection and its usefulness when developing
enterprise application.InstallationYou should haveeasy_install(from setuptools or something
equivalent) installed on your system.To install the package, just type:$ easy_install yaak.injectYou can also install the package from a source tarball. Decompress the
source archive and type:$ python setup.py installSupportThis project is hosted onbitbucket.org.
Please report issues via the bug tracker.The package documentation can be foundhere.Automated tests are run over the mercurial repository regularly. Build results
can be foundhere.Changelog0.2.1 (11-March-2012)The setup.py file does not import code anymore in order to retrieve the
version information, since it may cause some installation problemsFixed bad years in the changelog, and reordered the items so that the most
recent changes appear firstChanged the aliases for releasing new versionsFixed line endings (unix style)Removed the extensions of the text files since it’s a convention in the
Python world.0.2.0 (24-Oct-2011)Fixed the broken lock acquire/release implementation when updating the
application context dictionary.The locking mechanism is now available for all scopes.The context manager is now responsible for updating the context dictionaries.Fixed duplicate factory calls when providing a factory returning NoneScopeManager.enter_scope now raise a ScopeReenterError when re-entering a
scopeScopeManager.exit_scope now raise a UndefinedScopeError when exiting an
undeclared scopeFixed the API documentation0.1.0 (23-Oct-2011)Initial release
Package: yaar
Yet Another Asyncio RequestsInstall and usage are as expected. To install:$pipinstallyaarAnd then the usage:importyaarresponse=awaityaar.get(url)print(response.status,response.text)print(response.json())# send a json in the request bodyresponse=awaityaar.post(url,json={"some":"json"})print(response.status)To send headers in your request use:response=awaityaar.get(url,headers={'Authentication':'bearer} XYZ')Here you have all usual the methods likeput,delete, etc..In case you need a custom session you can use:session=aiohttp.ClientSession(loop=loop)response=awaityaar.get(url,session=session)
Package: yaaredis
yaaredis(Yet Another Async Redis (client)) is a fork ofaredis, which itself was ported fromredis-py.yaaredisprovides an
efficient and user-friendly async redis client with support for Redis Server,
Cluster, and Sentinels.To get more information please read thefull documentationmanaged by the
upstreamaredisrepo. We are working on hosting our own as the projects
diverge – stay tuned!Installationyaaredisrequires a running Redis server. To install yaaredis, simply:python3 -m pip install yaaredisor from source:python3 -m pip install .Note thatyaaredisalso supports usinghiredisas a drop-in performance
improvements. You can either installhiredisseparately or make use of the
PyPI extra to make use of this functionality:python3 -m pip install yaaredis[hiredis]Getting startedWe havevarious examplesin this repo which you may find useful. A few more
specific cases are listed below.Single Node ClientimportasynciofromyaaredisimportStrictRedisasyncdefexample():client=StrictRedis(host='127.0.0.1',port=6379,db=0)awaitclient.flushdb()awaitclient.set('foo',1)assertawaitclient.exists('foo')isTrueawaitclient.incr('foo',100)assertint(awaitclient.get('foo'))==101awaitclient.expire('foo',1)awaitasyncio.sleep(0.1)awaitclient.ttl('foo')awaitasyncio.sleep(1)assertnotawaitclient.exists('foo')asyncio.run(example())Cluster ClientimportasynciofromyaaredisimportStrictRedisClusterasyncdefexample():client=StrictRedisCluster(host='172.17.0.2',port=7001)awaitclient.flushdb()awaitclient.set('foo',1)awaitclient.lpush('a',1)print(awaitclient.cluster_slots())awaitclient.rpoplpush('a','b')assertawaitclient.rpop('b')==b'1'asyncio.run(example())# {(10923, 16383): [{'host': b'172.17.0.2', 'node_id': b'332f41962b33fa44bbc5e88f205e71276a9d64f4', 'server_type': 'master', 'port': 7002},# {'host': b'172.17.0.2', 'node_id': b'c02deb8726cdd412d956f0b9464a88812ef34f03', 'server_type': 'slave', 'port': 7005}],# (5461, 10922): [{'host': b'172.17.0.2', 'node_id': b'3d1b020fc46bf7cb2ffc36e10e7d7befca7c5533', 'server_type': 'master', 'port': 7001},# {'host': b'172.17.0.2', 'node_id': b'aac4799b65ff35d8dd2ad152a5515d15c0dc8ab7', 'server_type': 'slave', 'port': 7004}],# (0, 5460): [{'host': b'172.17.0.2', 'node_id': b'0932215036dc0d908cf662fdfca4d3614f221b01', 'server_type': 'master', 'port': 7000},# {'host': b'172.17.0.2', 'node_id': b'f6603ab4cb77e672de23a6361ec165f3a1a2bb42', 'server_type': 'slave', 'port': 7003}]}BenchmarkPlease run test scripts in thebenchmarksdirectory to confirm the
benchmarks. For a benchmark in the original yaaredis author’s environment
please see:benchmark.ContributingDeveloper? See ourguideon how you can contribute.
Package: yaast
Yaast (Jåst)YetAnotherAWSSessionToolWhy?..After obtaining a normal accessKey set,
the MFA enabled user faces the challege of
mantaining a daily set of temp accessKeys+token (session) for
use with awscli, sdks and the stuff like terraform.0. Setup "start" profileaws configure --profile awsops
# PASTE keys from aws csv file ...

vim ~/.aws/config 
# ADD mfa_serial = arn:aws:iam::0000000:mfa/xxxxxxx1. ExecuteWrites a new [default] section into your $HOME/.aws/credentials,
after downloading a new SESSION temp access/token set through a "start" profile.
Start profile name defaults to [awsops] and should have 'mfa_serial' set, together with accesskeys.Both thestartanddestprofiles names can be selected with flagsyaast [-h] [flags] <mfacode>DEPENDSon botocore
Package: yaat
Yaatyet another ASGI toolkitYaatYaat is an asynchronous web framework/toolkit.DocumentationFeaturesProvide decorator routes & class-based views.Template support withJinja2.Static file serving.HTTP streaming response.Cookie support.WebSocket support.API schema generator andSwagger UI.Background tasks runner.Server startup and shutdown events.CORS support.Test client usinghttpx.RequirementsPython 3.6+Setuppip3installyaatYou'll also want to install an ASGI server, such as uvicorn.pip3installuvicornExampleWriting with Yaat is as simple as...app.pyfromyaatimportYaatfromyaat.responsesimportTextResponseapp=Yaat()@app.route("/")asyncdefindex(request):returnTextResponse("Hello World")Then run using uvicorn:uvicornapp:appInspirationI know there are a lot of awesome frameworks out there. So some might ask why did I write my own. Actually, I created this to learn how the web framework works.I started this after followingJahongir Rahmonov's blog postabout writing a web framework. Feel free to check out his WSGI frameworkAlcazar.More features will be added in the future. You can check out theproject board.Icon CreditIcons made byDave Gandyfromwww.flaticon.com
Package: yabadaba
The yabadaba package (short for “Yay, a base database!”) provides a mid-level
abstraction layer for interacting with databases containing JSON/XML equivalent
data records.  The primary purpose of the yabadaba package is to make it easy
to design user-friendly Python packages that can access and store content in a
variety of database types.In design, the yabadaba package consists of five major components:Database classes that provide pythonic APIs to interact with databases.  A
base Database class defines common method calls for interacting with the
records in a database, such as querying, adding, modifying, and deleting
entries.   Child classes of Database are then defined that implement the
universal interaction methods for a given type of database.A base Record class provides a template for interpreting single database
entries.  Developers are meant to specify unique Record classes for each
unique schema that is part of their project.  In this way, users can
interface with the data both in its raw format and using class-specific
methods and attributes.  Each Record class also allows for database query
operations to be defined that allow for filtering of any hosted records
based on meaningful fields of the Record’s schema.A ModuleManager class is defined that helps treat the child classes of
the Database and Record classes in a modular fashion.  In particular, the
ModuleManagers allow for the code to work even if there are issues with any
of the child classes, and make it possible for packages that import the
managers to append their own child classes.Generic query methods are also provided that support the construction of the
record-specific query operations.  In short, these are meant to allow for
queries to operate efficiently across all of the database types and ideally
return identical responses despite the underlying infrastructure
differences.A Settings class is provided that makes it possible for users to save
access parameters for a database under a simple name that can then be
reloaded in a later session.Package developers that want to provide APIs to any associated databases can
simply import the various components of yabadaba and define their own Record
classes that are specific to their own data.  Users of the resulting packages
can then easily explore the data, make their own copies, etc.InstallationThe yabadaba package can easily be installed using pip or conda-forgepip install yabadabaorconda install -c conda-forge yabadabaDocumentationDocumentation can be found in the doc folder in the github repository.For support, post a issue to github or emaillucas.hale@nist.gov.
Package: yabencode
An implementation of bencoding/bdecoding in Python 3, with somewhat descriptive
Exceptions for decode errors.
Also includes a command-line tool for decoding and pretty-printing bencoded data!InstallingTo install fromPyPI:pipinstallyabencodeUsage:In Python…importyabencode# bencode supports dicts, lists, ints and strings (bytestrings)yabencode.encode({'foo':'baz','list':['eggs','spam','bacon']})# Input can be string, bytes or a file objectyabencode.decode(b'd3:foo3:baz4:listl4:eggs4:spam5:baconee')try:# Malformed data, 'spam' is missing an 'a'yabencode.decode(b'd3:foo3:baz4:listl4:eggs4:spm5:baconee')exceptyabencode.MalformedBencodeExceptionase:print(e)# Unexpected data type (b':') at position 31 (0x1F hex)try:# Bencode does not support floatsyabencode.encode({'float':3.14})exceptyabencode.BencodeExceptionase:print(e)# Unsupported type <class 'float'>or with the command-line tool:$yabencode-husage:yabencode[-h][-tKEY][-r]FILEBdecodeafile/standardinputandpretty-printtheresultingdatapositionalarguments:FILEInputfile.Use-forstdinoptionalarguments:-h,--helpshowthishelpmessageandexit-tKEY,--truncateKEYTruncatevaluesundergivenkey.Mayberepeatedformultiplevalues-r,--rawRawkeys-donotdecodedictionarykeys$# The 'pieces'-bytestring is rather long, so let's truncate it$yabencode-tpiecesubuntu-17.04-desktop-amd64.iso.torrent{'announce':b'http://torrent.ubuntu.com:6969/announce','announce-list':[[b'http://torrent.ubuntu.com:6969/announce'],[b'http://ipv6.torrent.ubuntu.com:6969/announce']],'comment':b'Ubuntu CD releases.ubuntu.com','creation date':1492077159,'info':{'length':1609039872,'name':b'ubuntu-17.04-desktop-amd64.iso','piece length':524288,'pieces':'<truncated>'}}$# Reading bytes from stdin (using -r to not decode the keys)$curl-s'http://torrent.ubuntu.com:6969/scrape?info_hash=%59%06%67%69%b9%ad%42%da%2e%50%86%11%c3%3d%7c%44%80%b3%85%7b'|yabencode-r-{b'files':{b'Y\x06gi\xb9\xadB\xda.P\x86\x11\xc3=|D\x80\xb3\x85{':{b'complete':3473,b'downloaded':33029,b'incomplete':102,b'name':b'ubuntu-17.04-desktop-amd64.iso'}}}
Package: yabgp
SDN
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Topic :: System :: Networking
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Operating System :: Unix
Package: yabi
YABI: Yet Another Blogging (tool) Implementationyabi allows you to create a simple and customizable blog site with minimal effort.Write your posts in markdown, build the blog site, and deploy it anywhere you like.InstallationGetting startedFeaturesInstallationThe easiest way to install from PyPI is to thepipcommandpip install --user yabiIf you have cloned the source code you can install it withpip install --user .Getting startedSay, you want to create a new blog that describes your philosophical thoughts. You call itDiscourses. To create this new blog type in a
terminalyabi init Discoursesnow navigate to the newly created foldercd DiscoursesTo publish your first though, create a new file on, e.g.,posts/my_first_thought.md. The only requirements for a post is thatIt is somewhere inside thepostsfolderHas set the labeldraftto "yes" or "no" at the file header.It has a level 1 Markdown heading with the title of the post right after the label(s).Apart from these minimal requirements, the post can have any valid Markdown syntax.draft: no

# My first thought

I will drink more water. I will exercise more and I will wake up earlier.

No, I'm not. I rather not to.Finally, build the website using the commandyabi buildAll the contents of the website are built under the folderpublic. You can upload these files to any hosting service of your liking. If
you wish to check how the site will look you can use the commandyabi testwhich will create a local server with your website onhttp://localhost:9090by default.FeaturesSimply and minimalistic user interfaceSane defaults for the website.Have a nice blog with all the expected features: archive, categories, and a home page with the latest
postsMarkdown-format post system.No need of complex databases, the only thing needed to build your website are the markdown files
containing your posts. Ideal for version control!Optimized build system.Only builds what you have recently added/changed.