Saravanan666/pypi-org huggingface dataset:
Package: console-chess-imandyr
Console-ChessMy implementation of chess game which can be played through console.
Run main.py or Menu.start() to start application.Overview:console_chess.base:Containing classes Table, Player, Figure and exception classes.console_chess.figures:Containing figures classes Pawn, Rook, Bishop, Knight, Queen, king and some functions for them.console_chess.bot:Containing Bot, EasyBot, NormalBot, HardBot and some functions for them.console_chess.game:Containing Difficulty, ChessSet, Game, PvP, PvC, CvC and Menu.Instruction:The Table contains Figure objects in certain positions inside.Figures are a Figure subclasses, which have their unique rules by which their moves are validated.figures are owned by some Players, which can move their figures from one position on table to another using Player.move() method.Player and Figure moves must be valid from chess rules perspective, or else it will raise exception.Bots are subclasses of Player, which can make moves by themselves using Bot.auto_move() method.PvP, PvC and CvC are subclasses of a Game, which performs turn-based gameplay of chess through console.  Use .play() method to start the game.The Menu provides interface to choose game mode and difficulty. Run Menu.start() to start a menu.Requirements:OS:No OS specific tools were used, so it should work anywhere Python runs.Python interpreter version:3.10Third party packages:pytest==8.0.0 (Only for tests, so most of the code can be used without it.)
Package: consolecolor
consolecolor设置pycharm控制台字体颜色快速开始安装：pip install consolecolor使用：fromconsolecolorimportFontColor,Colorsprint(FontColor.set_color("hello",Colors.red,underline=True))print(FontColor.set_backcolor("hello",Colors.blue))显示效果：项目详细说明：Python编程：pycharm控制台字体颜色
Package: console-color
print with color on the console.Installpip installconsole-colorFeaturesIt allows you to register your own styles.Supports fore, background, style (Bold, Italic, URL, …), and you can dopermutations, really flexible.Well documented, you can find all the usage formtest.pyfolder andconsole_color.ipynbNoteGithub page may not show ipynb well, you can gohereto see another resource that I put on Google ColabUsagefromconsole_colorimport*# cprint(text, fg=, bg=, style=)cprint('...',RGB.WHITE,'#ff0000',Style.BOLD+Style.URL)cprint('...',(255,0,0),RGB.YELLOW,Style.BOLD+Style.URL)# you can do permutations, for example, you only need style only thencprint('...',style=Style.BOLD)# combine with normal textprint('123'+cprint('...','#ff0000',pf=False)+'~~~')Noteget more help; please reference thetest.pyandconsole_color.ipynbDemo★Click meto see the HTML which is converted from ipynbContributingIf you want to contribute, please use thereleasebranch as the stable branch.devis the future branch for the maintainer.Be sure towrite testsfor new features. If you have any difficulties, you can ask me or discuss with me. I am glad if you want to join us.By the way, I’m very friendly! (You can ask me questions with Chinese)Useful ReferenceThe below link may help you to understand how do you write, such as this library by yourself.★ ANSI_escape_codestackoverflow: how to print colored text in terminal in pythonMoreSee thedocumentation
Package: console-color-writer
console_color_writerwrite lines with color tags !Installationpip install console_color_writerhttps://pypi.org/project/console-color-writer/Usageexample:fromconsole_color_writerimport*print_green('ok','some info text ...')print_yellow('alert','some info text ...')print_red('bad','some info text ...')print_cyan('some info text ... only cyan')print_magenta('some info text ... only magenta')print_white('only white text here (super white)')print('\nhere some tag example:')print_green_tag('ok','some info text ...')print_yellow_tag('alert','some info text ...')print_red_tag('bad','some info text ...')print('\nthat all ... color makes the world better !')Get helpGet help ➡️Github issueUpdate log1.0.0first releasehow to upload a new version (for me)en:https://packaging.python.org/tutorials/packaging-projects/zh:https://python-packaging-zh.readthedocs.io/zh_CN/latest/minimal.html#id2make sure have twine installed firstchangesetup.pytestingpy setup.py developpy setup.py sdisttwine upload dist/*test code :py



from console_color_writer import *



print_green('ok','some info text ...')

print_yellow('alert','some info text ...')

print_red('bad','some info text ...')

print_cyan('some info text ... only cyan')

print_magenta('some info text ... only magenta')

print_white('only white text here (super white)')

dumb_menu.demo()
Package: console-conjugator
Console ConjugatorAboutHallo!Have you ever had trouble conjugating verbs in different languages? Forgot the simple-past of "machen"
in german, or perhaps the various conjugations of "dire"?Fear not! Console-conjugator easily allows you to conjugate thousands of verbs from the command-line!InstallationInstall with pippip/pip3installconsole-conjugatorInstall Scriptgitclonehttps://github.com/Konjugators/console-conjugator.git&&cdconsole-conjugator/bin
chmod+xinstall
./installInstallation Video and DemoUsageAfter installation, you can use the cli interface in most terminals and scripts--NOTE--This Documentation will be moved to readthedocs soon.The following tenses are supported (im Deutsch):presentsimple-pastpresent-perfectpast-perfectfuturefuture2Just give the argument "c" (for "command line") and conjugate away:$konjugiercmachenerpresent
ermachtYou can also create a table of conjugations:konjugieramachenaReplace "a" with a specific tense, if wanted: a will result in tables for all tenses.
To use the fuzzy finder, simply give the argument "f" (Not fully supported):$konjugierfNote: Fuzzy Finder is only availible on OS X and Linux distributionsThe character-set a^, o^, u^, and s^ will be formatted automatically to Ã¤, Ã¶, Ã¼, and ÃŸ (for german) most of the time (full support added soon).RoadMap:Fuzzy Finder Revamp: Select pronoun and tense in fzf formatFrench - finishSpanish Conjugation
Package: console-contacts
console contactsA simple python app for you to manage your contacts. Tested on python 3,
probably not compatible with python 2.InstallationFast install:::pip install console-contactsExamples:: console-contacts -lHere is the output:
contactName1
contactName2
contactName3
contactName4
:: console-contacts -s Mary
Output:
Marymary@example.com1234567890:: console-contacts -a Bobbob@example.com0987654321This adds a contact with the name Bob, the emailbob@example.com, and the phone number 0987654321:: console-contacts -r Bobbob@example.comThis removes Bob from your contacts
Package: console-creator
Console creatorProject's descriptionWith console_creator, create consoles (python like, cdm like or java like) for your softwere.
This framework is currently in development.How create a consoleFirst, you can create four types of consoles :python like consolecmd like consolecolored consolecustomized consoleCurrently, all those features are in development.ThanksThis framework rely on few others frameworks that are free.
The code is written in Python 3.10.LicenseCreative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License (CC-BY-NC-SA)(Futher information at:https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode)©Cyprien BONTRON (c.b.e.python@gmail.com)
Package: console-ctrl
Console CTRLThis simple package allows you to send CTRL-C event to a target console process WITHOUT causing KeyboardInterrput at the caller side.The solution is based on posts shared on stackoverflow (see Reference for details).UsageInstall withpip install console-ctrlIn you code:importconsole_ctrlimportsubprocess# Start some command IN A SEPARATE CONSOLEp=subprocess.Popen(['some_command'],creationflags=subprocess.CREATE_NEW_CONSOLE)# Do something elseconsole_ctrl.send_ctrl_c(p.pid)Note: the target process should be started withcreationflags=subprocess.CREATE_NEW_CONSOLE.ReferenceSpecially thanks to people shared solutions here:https://stackoverflow.com/questions/7085604/sending-c-to-python-subprocess-objects-on-windowshttps://stackoverflow.com/questions/813086/can-i-send-a-ctrl-c-sigint-to-an-application-on-windowsMore official docs:https://docs.microsoft.com/en-us/windows/console/generateconsolectrleventhttps://docs.python.org/3/library/subprocess.html
Package: consoledev
Quick Introduction: Version 1.0.4InstallationYou can install the module from pypi's website, or 
directly via the pip manager:pip install consoledevShould I install?If you want to make a pretty and basic console project, without 
spending the extra time to do this the right way, and eventually end up
with a messy project, then this module is for you.Examples of usages:First, you need to import consolekit:from consoledev.consolekit import *Example 1 - Basic Python Console:header = Text("BASIC PYTHON CONSOLE V1.0 ", COLORS.WARNING)
python_console = JConsole(header=header, starting_message="hello and welcome !", ending_message=" goodbye !")
python_console.run()You can also define your own analysis function for the console, 
as long as it gets a string as a parameter and returns a string.def echo(word: str):
    return worddef main():
    header = Text("ECHO CONSOLE", COLORS.OKCYAN)
    echo_console = JConsole(header=header,starting_message=Text("welcome!",COLORS.CYELLOW),analysis_function=echo)
    echo_console.run()if __name__ == '__main__':
    main()
Package: consoledraw
Have you ever tried updating the console with text that changes multiple times a second? Remember how when you tried clearing the console with os.system calls it would make the console flash and make the text unreadable? I wrote this python module to prevent exactly that. Introducing...ConsoleDrawA python module to update the console without flashing.InstallationThe consoledraw module can be installed using pip.pip install consoledrawIf that doesn't work, try this instead.pip install git+https://github.com/Matthias1590/ConsoleDraw.gitOr, if you want to, you can clone the repo and run the following commands.python3 setup.py build
python3 setup.py installDemoexample.py:fromconsoledrawimportConsolefromdatetimeimportdatetimefromtimeimportsleepconsole=Console()format="""╔══════════╗║{}║╚══════════╝"""whileTrue:withconsole:console.print(format.format(datetime.strftime(datetime.now(),"%H:%M:%S")))sleep(0.5)withconsole:console.print("Hello, world!")console.print("Another message!")# is the same asconsole.clear()console.print("Hello, world!")console.print("Another message!")console.update()DownloadsSupported Operating SystemsThe consoledraw module is supported on Windows, Linux and Mac.
Package: console-engine
!!!DISCLAIMER!!!⚠️This tool is experimental⚠️ : This project currently is in early alpha! The tool is extremly unstable and has a lot of unfixed bugs.USAGE AT YOUR OWN RISK!Console EngineThis is a simple to integrate Shell (Metasploit like)Installationpip3 install console-engineUsageYou will have to pass a configuaration as Dictionary into the Shell instance. In the configuration you define the commands and their needed arguments.Example config:config={'keywords':{'help':'help_menu','exit':'exit','commandone':'method1','commandtwo':'method2',},'methods':{'help_menu':{'arguments':None},'exit':{'arguments':None},'method1':{'arguments':{'flags':{'i':{'type':'IPADDR','idx':'target_ip'}}}},'method2':{'arguments':{'values':{'STR':'text'}}}},}After having made the config implement console engine into your script like in this demo script:importcengineif__name__=='__main__':shell_=cengine.Shell(config,header='>> ')whileTrue:inst,count=shell_.prompt()#IF None is returned skip iterationifnotinst:continueres=inst[0]ifres['idx']=='help_menu':print("""command1 - returns given ipcommand2 - echos given strhelp - diplays this msgexit - terminates script""")elifres['idx']=='exit':exit()elifres['idx']=='method1':print(res['data']['target_ip'])elifres['idx']=='method2':print(res['data']['text'])
Package: console-games
console gamesFour games are available:Geometry Bash: Bash the squares before they get you and watch out for the money boss! Don’t like geometry? You will love this one!! :DPlanet X: You have been transported to Planet X thru a wormhole. Fly thru obstacles and wormholes to get back home! Game design by my kids.Number Crush: Great game to train your kids’ basic math skill. Answer quickly or get crushed. My son needs to crush 5 to earn 1 minute of screen time and loves doing it daily. :)Wasp Invasion: Wasp kaijus have invaded Earth! Luckily, you got your flamethrower with you to save the day. FLAMES ON!!THE LAST SURVIVOR!!: Kill the zombies to survive the apocalypse where you are the last survivor. Level up to get machine gun, grenades, and flamethrower!! Game design by my kids.To play using Docker:docker run -it --rm maxzheng/console-gamesTo install usingautopip:sudo pip3 install autopip
app install console-gamesIf you have trouble usingautopip, you can install usingpip3directly too:pip3 install console-gamesAnd then start playing:playEnjoy! And come back soon for more games!!Links & Contact InfoDocker Image:https://hub.docker.com/r/maxzheng/console-gamesPython Package:https://pypi.python.org/pypi/console-gamesSource Code:https://github.com/maxzheng/console-gamesReport Issues:https://github.com/maxzheng/console-games/issuesConnect:https://www.linkedin.com/in/maxzhengContact: maxzheng.os @t gmail.com
Package: console-gpt
### Package helps to interact with Chatgpt### How to use### import console_gpt### key = “<password: apikey>”### bot = console_gpt.ChatbotGPT(key)
### bot.ask()### Changes : v2 = “Calling the bot”### Changes : v3 = “Package problems”### Changes : v4 = “Issue solved of new lines”### Changes : v5 = “Removing sensitive parts”### Don’t have api key? contact:pranav.chandran@gmail.com
Package: console-gui
console-gui1 - install:
pip install console-gui2 - use
from gui import *# when we change the text
# component = what is the component calling the func
def on_text_change(component):
    reader.components['readonly'].config(text=component.text)


componets=[
    Field('readonly', None, readonly=True, text='hello readonly'), # readonly lets the user not click on it
    Field('this is a input filid', on_text_change),
    Button('this is a disable button', None, enable=False), # gray out the button not letting the user click it
    Button('this is a exit button', lambda _: exit(0)) # exit the prorgam when click
]

reader = Reader(componets)

reader.read()3 - add more
from gui import Componentclass MyComponent(Component):
    def __init__(self, name, click, **kwargs):
        super().__init__(name, click, **kwargs)
        self.text = name
    
    # calls when we click
    def on_click(self):
        self.text = 'pizza'
        self.click(self)
    
    # what will is show
    def __str__(self):
        return self.text4 - helpclass Component:
    def __init__(name, click, kwargs) 
     name is not the thing that will display unless text is none
     name is the str use to get Comp ex: reader.components.get('button')
     for Button name use conent

Reader.__init__(the list of componets, 
stop if press type x = None by defalt,
the button color when selected=WHITE by defalt, 
the button fore color when selected=BLACK bu defalt)
Package: consoleimages
consoleimagesReads image formats and prints ascii colour text to consoleCreate an instance of theimageclass passing the path of a image as an argument.
Instance arguments:
-width(ofastextstring)
-height(ofastextstring)
-aspect_ratio(width/height)
-astext(string that gets printed to the console)
-name(the name of the image file)
-display()(pass a file to write to, otherwise sys.stdout)Example:fromosimportget_terminal_size,listdirfromos.pathimportisfile,joinfromtimeimportsleepfromconsoleimagesimportimagedefclear():fromosimportsystemfromsysimportplatformsystem("cls"ifplatform=="win32"else"clear")# clears the consoleimages={}whileTrue:forimagenamein[fforfinlistdir("images/")ifisfile(join("images/",f))]:# open the 'images/' directory and get all the file names inside.clear()# clear consoleimages[imagename]=image("images/"+imagename,get_terminal_size()[1]-4)# create instance of image classprint(images[imagename].name)# print the name of the image in that instanceimages[imagename].display()# print the imageprint(images[imagename].width,images[imagename].height,sep=" x ",end=" ("+str(images[imagename].aspect_ratio)+")\n")# print the width, height and aspect ratiosleep(2)# wait 2 seconds
Package: console-images
We are on github!Console_imagesThis is a lib of making images ascii and coloredconsole_imagesConsole images in 48 colors, 216 colors and full rgbFull RGB216 colors48 colorsIf it does not work maybe you should change color_function to color_it48 or color_it216 (maybe you use windows)Console color schemes:216 colorsFull RGBColor circles
Package: consoleinvaders
Console InvadersA text-mode space invaders game (suggested fromAustin Z. Henley's blog).InstallInstall by runing:pipinstallconsoleinvadersUsespynputandwindows-cursesdependencies.RunTo play the game use arrow keys to move, and hold Left Shift to shoot, run on a terminal:consoleinvadersThe game is over if you destroy all aliens or an alien destroys you or reaches the bottom.Press ESC or Ctrl+C to quit.WindowsThe Windows Terminal doesn't seem to handle resizing while the game is running: microsoft/terminal#5094MacOSIn order todetect keyboard state, your terminal needsInput Monitoringpermission.For some reason, when using iTerm2 the keyboard state doesn't work if iTerm2 is selected. Click to focus a different app and then play the game, or use a different terminal.Developinggitclonehttps://github.com/darthwalsh/ConsoleInvaders.gitcdConsoleInvaders
python3-mvenvenv# Or on Windows, use python.env/bin/activate# Or on Windows, use Activate.ps1pipinstall-rrequirements.txt# On Windows: pip install windows-cursesRun with:python3-c"import consoleinvaders.app; consoleinvaders.app.main()"
Package: consolejs
consolejsA console logger / debugger for Python CLI programsCurrently consolejs only support functions. support for classes will be added later.Installation$pipinstallconsolejsGetting Started# Create a Conlog from the constructor.consolejs=Conlog.create("main")# Set the required logging levelconsolejs.level=Conlog.DEBUG# To use on the `main` moduleconsole=consolejs.get_console()####  in module2.py@Conlog.fndefsay_hi(name):console=Conlog.get_console("main")console.debug("args {name=}")print(f"Hi{name}"How it works.console.debugsupportsexpr debugexpressions introduced in Python 3.8.
It dynamically rewrites the function in Python 3.8 and uses a beautiful way to support it in < 3.7See tests/ for samples.LicenseCopyright (c) 2019 Cswl Coldwindconsolejs is distributed under the termsMIT License <https://choosealicense.com/licenses/mit>_
Package: consolekit
Additional utilities for click.DocsTestsPyPIAnacondaActivityQAOtherInstallationconsolekitcan be installed from PyPI or Anaconda.To install withpip:$python-mpipinstallconsolekitTo install withconda:First add the required channels$condaconfig--addchannelshttps://conda.anaconda.org/conda-forge$condaconfig--addchannelshttps://conda.anaconda.org/domdfcodingThen install$condainstallconsolekitAdditionally, for better support in terminals,
installpsutilby specifying theterminalsextra:$python-mpipinstallconsolekit[terminals]or, if you installedconsolekitthrough conda:$condainstall-cconda-forgepsutil
Package: console-log
Copyright (c) 2018 Beto DealmeidaPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, 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 THESOFTWARE.Description: console_log===========This module provides a WSGI middleware that allows you to log to thebrowser console from Python:.. code::import loggingfrom flask import Flaskfrom console_log import ConsoleLogconsole = logging.getLogger('console')console.setLevel(logging.DEBUG)app = Flask(__name__)@app.route('/')def hello():logger.error('Error logged from Python')logger.warning('Warning logged from Python')logger.info('Info logged from Python')logger.debug('Debug logged from Python')logger.debug({'foo': ['bar', 'baz']})return "Hello World!"app.wsgi_app = ConsoleLog(app.wsgi_app, console)The logged messages will then show up in the browser console.How it works============The new WSGI app does two things:1. Creates a websocket backchannel.2. Injects Javascript code into HTML responses, fetching data from thewebsocket channel and logging them to console.Platform: UNKNOWNClassifier: License :: OSI Approved :: MIT LicenseClassifier: Programming Language :: PythonClassifier: Programming Language :: Python :: 2.6Classifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 3.3Classifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5Classifier: Programming Language :: Python :: 3.6Classifier: Programming Language :: Python :: Implementation :: CPythonClassifier: Programming Language :: Python :: Implementation :: PyPyProvides-Extra: devProvides-Extra: examples
Package: console-logger
Inspired by the originalloggingpackage from Python.About this packageConsole loggeris a simple logging package for Python. The main feature of the package is an ability to log messages in different ways.
Log records can be output as follows:console output;output to a file;both console and file output.Supported featureseasy access to logger at module levellogging record can be emitted with specified keywords without logger changingcolored output in consolerotating text files when the current file reaches a certain sizeUsageHow to installpip install console_loggerHow to useImport the package.importconsole_loggerCreate a logger instance...my_logger=console_logger.Logger()... and use it for logging messages.my_logger.info("My message with severity 'INFO'.")Examples>>>importconsole_logger>>>my_logger=console_logger.Logger()>>>my_logger.info('Here we go!')08.09.22 00:01:55.123 [  INFO  ] Here we go!>>>my_logger.debug('This message will not be displayed')>>>my_logger.error('Oops!')08.09.22 00:01:57.456 [ ERROR  ] Oops!
Package: console-logging
Better console logging for Python.Find us on PyPi:https://pypi.python.org/pypi/console-loggingShowcaseGetting StartedDependenciesPython 2.6+ or Python 3.5+termcolorInstallationpip install console-loggingIf building from source:bash pipefrom inside this repo.UsageNew:from console_logging.console import Console
console = Console()

console.log("Hello world!")Old:from console_logging import console

console.log("Hello World!")Exhaustive Referenceconsole.log("This is a log.")
console.error("This is an error.")
console.info("This is some neutral info.")
console.success("This is a success message.")

# If using the new usage:
console.setVerbosity(4) # verbosity from 1 - 5, in order:
'''
[1] Errors
[2] Successes
[3] Logs
[4] Info
[5] Secure
'''
console.mute() # shorthand for setVerbosity(0)ExampleFor an exhaustive example, seetests/example.py.Credittermcolormodule for colors