Saravanan666/pypi-org huggingface dataset:
Package: yepcord-server
YEPcord serverUnofficial discord backend implementation in python.SetupRequirements:Python 3.9+Poetry (Optional)Setup:Clone yepcord repository:gitclonehttps://github.com/yepcord/serveryepcord-server&&cdyepcord-serverInstall requirements:poetryinstall(Optional) Install and start redis, mysql/mariadb.(Optional) Fill config file (example in config.example.py) with your values.Run (with your config):poetryrunyepcordmigrate-cyepcord-config.py
poetryrunyepcordrun_all-cyepcord-config.pyRun (with default config):poetryrunyepcordmigrate
poetryrunyepcordrun_allInstall as python package and run (simple method):Install yepcord-server from pypi:pipinstallyepcord-server(Optional) Install and start redis, mysql/mariadb.(Optional) Fill config file (example in config.example.py) with your values.Run (with your config):yepcordmigrate-cyepcord-config.py
yepcordrun_all-cyepcord-config.pyRun (with default config):yepcordmigrate
yepcordrun_allLicenseAny commit before 10.04.2023 is also covered by this license.Copyright (C) 2023 RuslanUCThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 of the
LicenseThis 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 Affero General Public License for more details.You should have received a copy of the GNU Affero General Public License
along with this program. If not, seehttps://www.gnu.org/licenses/agpl-3.0.de.html
Package: yepkit-pykush
pykush__   __         _    _ _
  \ \ / /__ _ __ | | _(_) |_
   \ V / _ \ '_ \| |/ / | __|
    | |  __/ |_) |   <| | |_
    |_|\___| .__/|_|\_\_|\__|
           |_|YepkitYKUSHPython library and command line toolProvides library and command line functionality for communicating with aYKUSHdevice over USB.Thanks to the developers and maintainers of the following projects among others:HIDAPImulti-platform libraryPythonhidapiwrapper modulePythonhidapi-cffiwrapper module
Any of the above python wrappers are currently supported.FeaturesEasy touseWritten to supportYKUSH, the Yepkit USB Switchable HubOpen-source, please be our guest to collaborateCurrent development version supports both Python 2 and 3Works on Linux, Windows and MacRequirementsA Linux, Windows or Mac (OS X) systemAYKUSHdeviceA recentPython 2 >=2.7.9 or Python 3 >=3.4installedhidapiorhidapi-cffimodule installedInstallationIf you are in a hurry and just need a console application you can give our Pyinstaller bundled executable a try:Windowsexecutable, Windows XP or newermacOSexecutable, El Capitan or newerLinux x86_64, kernel 2.6 or newerLinux i386, kernel 2.6 or newerDownload the executable corresponding to your platform and run it from a terminal window.
Also remember to authorize execution on Linux or macOS systems:$chownu+xpykush
$./pykush-lFrom sourceAnonymous:$gitclonehttps://github.com/Yepkit/pykush
$cdpykush/
$pythonsetup.pyinstallGit:$gitclonegit@github.com:Yepkit/pykush
$cdpykush/
$pythonsetup.pyinstallUsageBasic command line usage$pythonpykush.py-h
usage:pykush.py[-h][-sSERIAL](-l|-u[UP[UP...]]|-d[DOWN[DOWN...]]|-rREAD|-wWRITEWRITE|-p)YepkitYKUSHcommandlinetool.

optionalarguments:-h,--helpshowthishelpmessageandexit-sSERIAL,--serialSERIALspecifytheserialnumberstringoftheYKUSHtobelistedormanaged-l,--listlistYKUSHdevices-u[UP[UP...]],--up[UP[UP...]]thedownstreamportnumberstopowerup,nonemeansall-d[DOWN[DOWN...]],--down[DOWN[DOWN...]]thedownstreamportnumberstopowerdown,nonemeansall-rREAD,--readREADtheGPIOpintoreadfrom-wWRITEWRITE,--writeWRITEWRITEtheGPIOpintowriteto-p,--persistmakethecurrentrunningconfigurationpersistentacrossreboots(onlysupportedondeviceswithfirmwarev2.0andabove)$pythonpykush.py-l
listingYKUSHfamilydevicesfoundaYKUSHrelease2devicewithserialnumberYK20001systemdevicepath0001:000a:00,vendorid0x04d8,productid0xf2f7thedeviceisrunningav1.2firmwareandhas3downstreamportsdownstreamrunningpowerstates,port1to3:UP,UP,UP

$pythonpykush.py-d12managingYKUSHfamilydevicesfoundaYKUSHrelease2devicewithserialnumberYK20001systemdevicepath0001:000a:00,vendorid0x04d8,productid0xf2f7thedeviceisrunningav1.2firmwareandhas3downstreamportspoweringDOWNport1...donepoweringDOWNport2...doneBasic module programming usage$python
>>>importpykush
>>>yk=pykush.YKUSH()>>>yk.set_allports_state_up()True
>>>yk.get_downstream_port_count()3>>>yk.set_port_state(2,pykush.YKUSH_PORT_STATE_DOWN)True
>>>yk.get_port_state(2)0>>>yk.get_port_state(2)==pykush.YKUSH_PORT_STATE_DOWN
True
>>>DisclaimerThe module is already usable in the limited scope we tested but it is still in a alpha stage.ContributingBug ReportsIf you find a problem, please submit a bug report onissue tracker.
Package: yerba
Yerba is a Python CLI application that facilitates creating presentations by writing files in markdown format. The goal is to build an application that allows for creating aesthetically pleasing presentations in a short amount of time, while also being highly customizable and versatile.Note:The application is currently in progress and is highly unstable. If you stumbled upon this page by chance, feel free to experiment with the application. However, you may prefer to return in the near future when the application is more stable and thoroughly documented.InstallationYerba is currently only available for Linux, but the plan is to make it accessible for Mac and Windows in the near future.ManimYerba is built on top ofManim, so it's essential for the program to have access to this library. If you don't have Manim installed, refer to itsLinux installation guide. If the following command runs without errors, everything should be set up correctly:python-mmanim--versionLaTexCurrently, the only available backend for text processing isXeTeX, an implementation of LaTeX with better font support. In most distributions, installingtexlive-xetexshould be sufficient. For example:# Ubuntu (Debian)aptinstalltexlive-xetex# Archpacman-Stexlive-xetexYou can confirm a successful installation by running the following command:xetex--versionYerbaThe only additional requirement for Yerba isrsvg-convert. It is typically included by default in most Linux distributions. If not, it is usually part of thelibrsvg2package. For Ubuntu:aptinstalllibrsvg2-binYou can check if you have it installed by running the following command:rsvg-convert--versionFinally, you can install Yerba from PyPI:python-mpipinstallyerbaUsageThis section is a work in progress. For now, checkusage_example.md(use "code" view mode) andusage_example.pdfto give you and idea on how to use Yerba. You can render this presentation using:yerba usage_example.md
# or
python -m yerba usage_example.md
Package: yerkes
# Yerkes**Interactive color palettes in Altair**[![pypi](https://img.shields.io/pypi/v/yerkes.svg)](https://pypi.python.org/pypi/yerkes)[![travis](https://img.shields.io/travis/zsailer/yerkes.svg)](https://travis-ci.org/zsailer/yerkes)[![docs](https://readthedocs.org/projects/yerkes/badge/?version=latest)](https://yerkes.readthedocs.io/en/latest/?badge=latest)* Free software: MIT license* Documentation: https://yerkes.readthedocs.io.Visualize color palettes interactively in Altair!.![](docs/img/yerkes.gif)## How to use.The simplest use case is to pass the palette a list of colors.1. Import `NewPalette` from Yerkes.2. Pass a list of color-hex codes to `NewPalette`.```pythonfrom yerkes import NewPalettecolors = ['#FCFFA4','#F6D746','#FCA50A','#F3761B',]NewPalette(colors)```![](docs/img/readme.png)You can also try exploring palettes from [palettable](https://jiffyclub.github.io/palettable/).```python# Import palettefrom yerkes import NewPalette# Import a palette from palettable.from palettable.colorbrewer.diverging import RdGy_10 as palette# Show interactive paletteNewPalette(palette.hex_colors)```![](docs/img/readme2.png)## InstallInstall from PyPI.```pip install yerkes```## CreditsThis package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage) project template.=======History=======0.1.0 (2018-07-18)------------------* First release on PyPI.
Package: yeroyan-clustering
yeroyan_clusteringAutomated Clustering and Annomally DetectionFree software: Apache Software License 2.0Documentation:https://yeroyan-clustering.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2023-05-08)First release on PyPI.Automated Data Processing (+ PCA)Dimensionality Reduction through t-SNEClustering with KMeansPost Analysis utilities through plots and stats
Package: yesapi
yesapiyesapi-python-sdk小白接口（YesApi.cn）Python SDK包文档地址:http://api.okayapi.com/docs.php安装：pip install yesapi
用法：yes = YesApi(api_url='http://xxx.com', app_key='xxxx',
             app_secret='xxxxx')
params = {'s': 'App.Captcha.Create'}
with open('yzm.jpeg', 'wb+') as f:
    rsp = yes.http_get(params=params)
    f.write(rsp.content)
Package: yescaptcha
yescaptcha-pythonThis is SDK for YesCaptcha.Installationpip3 install yescaptchaUsageBelow are some simple exmaples for Recaptcha, Image2Text:NoCaptchaTaskProxylessfromyescaptcha.taskimportNoCaptchaTaskProxylessfromyescaptcha.clientimportClientCLIENT_KEY=<YOUR_CLIENT_KEY>website_url='https://www.google.com/recaptcha/api2/demo'website_key='6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-'client=Client(client_key=CLIENT_KEY,debug=True)task=NoCaptchaTaskProxyless(website_key=website_key,website_url=website_url)job=client.create_task(task)print('result',job.get_solution())ImageToTextfromutilsimportresize_base64_image_from_file# see examples/utils.pyfromyescaptcha.taskimportImageToTextTaskfromyescaptcha.clientimportClientCLIENT_KEY=<YOUR_CLIENT_KEY>IMAGE_PATH=<IMAGE_PATH>client=Client(client_key=CLIENT_KEY)task=ImageToTextTask(resize_base64_image_from_file(IMAGE_PATH))job=client.create_task(task)print('result',job.get_solution_text())Please checkhttp://yescaptcha.readthedocs.orgto get more details.
Package: yes-chef
yes-chefA command-line tool for managing recipes and making shopping lists.InstallationClone this repository, set up a venv, and run./install.shYou may need to give the file run permissions withchmod+xinstall.shUsageInitialise a new recipe library in the current folder:chefinit.Create a new plan (collection of recipes to turn into a shopping list):chefnewplanAdd a recipe to the plan:chefplan<searchterm>View the currently planned recipes:chefviewplanView the shopping list for the planned recipes:chefviewlist
Package: yesmaster
Yes MasterGoalYesmaster is a terminal mastermind game. It's possible to play normally or let's play the computer with algorithm :random_idiot : totally random and idiotrandom_no_repeat : random but never the same code twicecompatible : play random but take in consideration the verification and play only code compatible with itcompatible_8in2 : play the two first code with 8 colors and after that play compatiblecompatible_4in1 : play like compatible but the first must be 4 differents colorsone_step_ahead : play the move that has the highest expected eliminationInstallationThe program is available onPypi.
You need at least python 3.6 and you can use pipx to install it.pipx install yesmasterUsageusage: yesmaster.py [-h] [--algo ALGO] [--loop LOOP] {play,auto}

positional arguments:{play,auto}  play yourself or let's computer playing

optional arguments:
  -h, --help   show this help message and exit
  --algo ALGO  Choose an algo present in the algo folder
  --loop LOOP  Number of gamesTest your algorithmYou can add your personnal algorithm with a python file in the algo directory (the name of the python file will be the name of the algo to call in the command line). A template file shows you how your algo must be organized. Two functions are mandatory in a class name Algo :get(self) : executed for choosing the code. Must return a 4 letters string with letters among ROGBYAPWreport(self, test, good, bad) : executed with 3 arguments (test : the code that you pushed with get, good : the number of goods colors at good place, bad : the number of goods colors at wrong place). Return nothing.
Package: yesnopy
yesnopy- a package by Arnav NSimpilfies vailidating user input and return True/False based on a list of expected inputs. Also accounts for extra whitespace and capitalisationInstallationpipinstallyesnopyUsagefromyesnopyimportyesnopyasynifyn.returnDecision(inputMessage="",forceValidInput=False,defaultValue=False):doSomething()# Or just RD (if you prefer concise notation)ifyn.RD(inputMessage="",forceValidInput=False,defaultValue=False):doSomething()inputMessage [STRING]: what to display when asking a questionforceVaildInput [BOOL]: Keep asking until user inputs valid input?defaultValue [ANY]: If all else fails what should the function return? (can be string, number etc...)userWantsCake=yn.returnDecision(inputMessage="Do you want cake? ",True)ifuserWantsCake:print("Returned True")else:print("Returned False")Doyouwantcake?gibB432ish
Doyouwantcake?asdbajksdf
Doyouwantcake?yeah
ReturnedTrueDoyouwantcake?gibB432ish
Doyouwantcake?asdbajksdf
Doyouwantcake?nah
ReturnedFalseExample of using default:userWantsCake=yn.returnDecision("Do you want cake? ",False,"ERROR")ifuserWantsCake:print("Returned True")elifnotuserWantsCake:print("Returned False")elifuserWantsCake=="ERROR":print("Something went wrong...")Doyouwantcake?Idontknow?
Somethingwentwrong...Please do note: if forceValidInput is set to True the program will continue until it can output a True or a False value, hence defaultValue will not be returnedAll possible inputsyesnopy accepts a wide range of inputs, all of them are listed here:WILL RETURN TRUE:y, yes, 1, true, yep, all right, alright, very well, of course, by all means, sure, certainly, absolutely, indeed, affirmative, agreed, roger, aye, aye aye, yeah, yah, yep, yup, uh-huh, okay, ok, okey-dokey, okey-doke, achcha, righto, righty-ho, surelyWILL RETURN FALSE:n, no, 0, nope, false, not, no indeed, absolutely not, most certainly not, of course not, under no circumstances, by no means, not at all, negative, never, not really, no thanks, nae, nope, nah, not on your life, no way, no fear, not on your nelly, no siree, nawWebsitesHomepage>>https://github.com/AN1001/yesnopyBug Tracker>>https://github.com/AN1001/yesnopy/issuesLicenseMIT
Package: yes-no-words
yes-no-wordsGet yes/no-like words.Inspired by:https://github.com/sindresorhus/yes-no-wordsinstallpipinstallyes-no-wordsusageimportyes_no_wordsyes_no_words.yes_random()# "yisss"yes_no_words.no_random()# "absolutely not"# test "truthy" wordsyes_no_words.is_truthy("Yisss")# Trueyes_no_words.is_truthy("nope")# False# test "falsy" wordsyes_no_words.is_falsy("certainly not")# Trueapi.YESYes like words..NONo like words..ALLBoth yes and no like words..yes_random() -> strRandom yes like words..no_random() -> strRandom no like words..all_random() -> strRandom yes or no like words..is_falsy(word_or_phrase: str) -> boolTest a word to verify if it's falsy..is_truthy(word_or_phrase: str) -> boolTest a word to verify if it's truthy.licenseApache License 2.0 :copyright:Jeff Triplett
Package: yesno.wtf
yesno.wtfWrapper foryesno.wtfInstallPython 3 or higher is required.# Linux/OS X
$ python -m pip install -U yesno.wtf

# Windows
> py -3 -m pip install -U yesno.wtfExamplefromyesnoimportYesNoyesno=YesNo()print(yesno.answer)Methodanswerforcedimage
Package: yes-or-no
yes_or_noThis silly seemingly useless function, makes debugging suprisingly easy.InstallRequres Python 3.8 or above, and can be installed with pip or poetry.
To install with pip, simply run:pipinstallyes-or-noTo install with poetry, run:poetryaddyes-or-noUseageWhen debugging code, it is often helpful to know whether a particular condition is
True or False.
However sometimes the True state is fail state, this allows to ask the question
in the form:
Are you sure this condition is False: yes if false no if True
This function allows you to frame a test as a question with a yes or no answer,
which can make it easier to understand the results.For example, if you are testing whether a server is accessible, you can use this function to ask the question "Is the server up?" and get a clear answer based on the server's status code.How I like to use it, is in multi line f strings, which I will pass to a log.debug.
The fact that it's a mutli line f sting allows for documentation around what is
happening in code.#sever_return_200(ip_address) -> bool: True if status is 200 else Falselog.debug(f'''This can be a detailed debug, that explain what code is doing,and why these question might asked. So for example, a server isneeded to be accessable by the program. So you could write a testfot that and use it as your yes or no indicator. The reason Imade this is sometimes True is the valid and sometimes False, but askingquestion it's clear which state is valid and which is not{yes_or_no('Is the server up',server_return_200(ip_address))}''')Argsquestion (str): This the question you want answer when debuging.
example: "Is the server up"
answer (bool): This a boolean function that answers the question
example: server_return_200(ip_address)Returnsstr: A string that ask and answers the question
example: Is the server up: yes if server returns 200 status else no
Package: yesqa
yesqaA tool (and pre-commit hook) to automatically remove unnecessary# noqacomments, for example: a check that's no longer applicable (say you increased your
max line length), a mistake (# noqaadded to a line that wasn't failing),
or other code in the file caused it to no longer need a# noqa(such as an unused import).InstallationpipinstallyesqaAs a pre-commit hookSeepre-commitfor instructionsSample.pre-commit-config.yaml:-repo:https://github.com/asottile/yesqarev:v1.5.0hooks:-id:yesqaIf you need to select a specific version of flake8 and/or run with specific
flake8 plugins, add them toadditional_dependencies.
Package: yesserpackageupdater
yesserpackageupdaterThe pip package updater by yesseruserThis package was renamed and moved tohttps://github.com/yesseruser/ypkgupgr, this repository is an archive of the old package. It will automatically upgrade to ypkgupgr since version 1.8.1.1.This is a package updater that updates all outdated packages when run.To install, follow the steps listed here:InstallationHere's the wiki page:WikiThis package only works on Windows.This package works on any operating system since update 1.1.5If you're running the package from a python file, pleaseuse a subprocessinstead of importing and calling theupdate_packagesfunction. This is because the package can update itself and it can result in an error because of the code changing.
Added upgrade to ypkgupgr functionality.Full Changelog:https://github.com/yesseruser/yesserpackageupdater/compare/1.8.1...1.8.1.1
Package: yeswehack
SDK for yeswehackBuild from sourcemake build(orpoetry build)InstallationDeveloperRequirementspoetry(pip install poetry)Installationmake install(orpoetry install): creates a virtualenv and install dependenciesFrom pippip install yeswehackFrom wheelpip install path/to/yeswehack-wheel.whlGetting starting with YesWeHack Python SDKAPI ModuleIn this python module, we define object mapping to YesWeHack API Object.
Package: yet-another-colorful-logger
Yet Another Colorful LoggerDescriptionYet Another Colorful Logger is just another Python logging utility that adds color to your console log messages. This module is already configured, not requiring any setup. Simply install it and integrate into your Python projects. However, if you want to customize it, you can do it as well.For customizing the logger, you can change the colors, the format, and the log level. For more details, check theCustomizationsection.This module was created for personal use, but feel free to use it in your projects as well.
Also, feel free to customize it according to your needs.Any issues, suggestions, or questions, please feel free to reach out.InstallationTo install Yet Another Colorful Logger, usepip:pipinstallyet-another-colorful-loggerUsageTo start using the logger is pretty forward. Just import it and create a logger instance:fromyacloggerimportYACLogger# Create a logger instancelogger=YACLogger(name="my_logger")# Log messages with different severity levelslogger.debug("This is a debug message !!!")logger.info("This is an info message !!!")logger.warning("This is a warning message !!!")logger.error("This is an error message !!!")logger.critical("This is a critical message !!!")CustomizationFor customizing the colors, you can pass adictionaryas the log_colors parameter to theYACLoggerconstructor. The dictionary must contain the log level as the key and the color as value, both in strings. In case you want to use a background color, you can pass the color name with the prefixbg_, separated by a comma.Example 1:If you want to change the background only for theERRORlog level, you can pass the following dictionary:my_custom_log_colors={"ERROR":"black,bg_red"}yaclogger=YACLogger(name="my_logger",log_colors=my_custom_log_colors)Example 2:If you want to change the background only forDEBUGandCRITICALlog level, you can pass the following dictionary:my_custom_log_colors={"DEBUG":"green,bg_white","CRITICAL":"red"}yaclogger=YACLogger(name="my_logger",log_colors=my_custom_log_colors)Example 3:If you want to change the color for all log levels, you can pass the following dictionary:my_custom_log_colors={"DEBUG":"light_blue","INFO":"green","WARNING":"cyan","ERROR":"purple","CRITICAL":"black,bg_white"}yaclogger=YACLogger(name="my_logger",log_colors=my_custom_log_colors)Available Colorsblackbluepurplecyanredwhitelight_blacklight_redgreenlight_greenlight_yellowlight_blueyellowlight_purplelight_cyanlight_whiteNote: In some terminals, the foreground colors can have the same representation as the background colors, even both codes being different on the code. So, if you use the same color for both foreground and background in the same log level, you may not be able to see the message.ContactFor any questions, suggestions, or issues, feel free to reach out:GitHub:Wagner CottaLicenseThis project is licensed under the GNU License - see theLICENSEfile for details.
Package: yet-another-imod-wrapper
yet-another-imod-wrapperA simple API for automated tilt-series alignment in IMOD.UsageThe package can be used from Python or the command line, please check the
documentation atteamtomo.org/yet-another-imod-wrapperfor information on how to use the package.InstallationThis package requires thatIMOD>=4.11.0is installed and on thePATH.yet-another-imod-wrappercan be installed usingpip.pipinstallyet-another-imod-wrapperWe recommend installing into a fresh virtual environment.