Saravanan666/pypi-org huggingface dataset:
Package: gameoflife-ndimage
Cellular Automata SimulatorUsesnumpyandscipy.ndimageto quickly simulate arbitrary rulesets for nearest-neighbours cellular automata. Can
generate videos and images of the results viaffmpeg-pythonandpillow.Usage example:importgameoflife_ndimage.simulationassimfromgameoflife_ndimage.videoimportRecorderif__name__=='__main__':rules=sim.Rules2D.classic()size=(256,256)draw_params=sim.DrawParams(dead_color=[0,0,0],alive_color=[255,255,255],resize_factor=4)state=sim.State2D.random(rules,size)input_wh=tuple(a*draw_params.resize_factorforainstate.wh)recorder=Recorder(framerate=5,input_wh=input_wh,output_path="output/gol_classic_{}x{}_from_random.mp4".format(*size),)state.run_and_record(100,draw_params,recorder)recorder.close()
Package: game-of-life-nodeps
Conway's Game of LifeJust a simple project implements the famousGame of Lifewith nothing but Python's builtin libraries. The interface is inspired
bythis website. This is also a practice
of designing a GUI application that follows the MVP architecture.RequirementsPython3 (withTkconfigured)Install$ pip install game-of-life-nodepsRun$ game-of-lifeOr$ python3 -m game_of_lifeTest$ python3 -m unittest
Package: game-of-life-pyfection
=======================An OO implementation of Conway's Game of life with a apocalyptic twist.. image:: resources/worksonmymachine.png:width: 150ptMain Features-------------* Free software: MIT license* Dependency free* Winner of the "Works on my machine" certificate* Game functions as supposed to* Most likely all cells will die if enough generations are provided* Some cells might come back as zombiesUsage-----Download from pip::pip install -U game_of_life_pyfectionRun from source1) Fetch repo::git pull https://github.com/Michaelliv/game_of_life_pyfection.git2) Move to game directory::cd game_of_life_pyfection3) run tests::python -m unittest discover -s tests -p "test_*"4) run game::python main.py [width] [height] [infect_after] [max_generations] [seed...]-w width              width of the board-h height             height of the board-i infect_after       generation after which cells are infected-m max_generations    maximal amount of generations-s seed               initial seed of the boardexample:python main.py 2 3 3 6 1 0 0 1 1 1Home-page: https://github.com/Michaelliv/game_of_life_pyfectionAuthor: Michael LivshitsAuthor-email: livsmichael@gmail.comLicense: MITDescription: Game of life: Pyfection=======================An OO implementation of Conway's Game of life with a apocalyptic twist.. image:: resources/worksonmymachine.png:width: 150ptMain Features-------------* Free software: MIT license* Dependency free* Winner of the "Works on my machine" certificate* Game functions as supposed to* Most likely all cells will die if enough generations are provided* Some cells might come back as zombiesUsage-----Download from pip::pip install -U game_of_life_pyfectionRun from source1) Fetch repo::git pull https://github.com/Michaelliv/game_of_life_pyfection.git2) Move to game directory::cd game_of_life_pyfection3) run tests::python -m unittest discover -s tests -p "test_*"4) run game::python main.py [width] [height] [infect_after] [max_generations] [seed...]-w width              width of the board-h height             height of the board-i infect_after       generation after which cells are infected-m max_generations    maximal amount of generations-s seed               initial seed of the boardexample:python main.py 2 3 3 6 1 0 0 1 1 1History-------0.1.0 (2018-09-18)---------------------* First release on PyPI.Keywords: game_of_life_pyfectionPlatform: UNKNOWNClassifier: Development Status :: 2 - Pre-AlphaClassifier: Intended Audience :: DevelopersClassifier: License :: OSI Approved :: MIT LicenseClassifier: Natural Language :: EnglishClassifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5Classifier: Programming Language :: Python :: 3.6Classifier: Programming Language :: Python :: 3.7Description-Content-Type: text/markdown
Package: gameoflife-test
GAME_OF_LIFE
This is course project for Advanced Scientific Programming in Python - Uppsala UniversityThe python scripts for the game is under game_of_life/init.pyThe game_of_life package is on the PYPI page:https://pypi.org/project/gameoflife-lam/To install the package: >>>pip install gameoflife-lamTo run the game in python:
>>>import game_of_life
>>>game_of_life.run()User can choose the grid size, number of genarations, and the initial pattern (a cross-shaped pattern or a random pattern)
Package: game-of-life-uc
Game of LifeConway's Game of life in pythonThis program has been coded to test how thecursespython module works.Run and see the Game play updating every 0.1 seconds. Press <q> to exit, or <CTRL+C> to kill the program.In edit mode, press <SPACE> to toggle the cell state. Press <q> to start resume the game.Installationpipx install game-of-life-ucRun withgame-of-lifeDependenciescursestimerandomcopyargparseTo-DoAdd a How-To window (curses.newwin())
Package: game-of-life-YetiYetYet
Conway's Game of Life in PythonThis project is a Python implementation of Conway's Game of Life,
a cellular automaton devised by the British mathematician John Horton Conway in 1970.
The game is a zero-player game, meaning that its evolution is determined by its initial
state, requiring no further input. One interacts with the Game of Life by creating an
initial configuration and observing how it evolves.IntroductionThe Game of Life is not your typical computer game.
It consists of a grid of cells which, based on a few mathematical rules,
can live, die or multiply. Depending on the initial conditions,
the cells form various patterns throughout the course of the game.The packages is available on PyPI:https://pypi.org/project/game-of-life-YETIYETYET/Rules of the GameThe universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, alive or dead. Every cell interacts with its eight neighbours, which are the cells that are horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur:Underpopulation: A live cell with fewer than two live neighbours dies.Stasis: A live cell with two or three live neighbours lives on to the next generation.Overpopulation: A live cell with more than three live neighbours dies.Reproduction: A dead cell with exactly three live neighbours becomes a live cell.The initial pattern constitutes the seed of the system. The first generation is created by applying the above rules simultaneously to every cell in the seed, live or dead; births and deaths occur simultaneously.Sample of the output projectGetting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.PrerequisitesBefore running this project, you need to have Python installed on your system (Python 3.12 is recommended).
You can download Python from the official website:https://www.python.org/downloads/InstallingClone the repository to your local machine:
git clonehttps://github.com/YetiYetYet/game-of-life-python.gitInstall the required dependencies :pip install -r requirements.txtRunning the GameTo run the game, execute the following command in the terminal:python main.pyUsageRun the main script.Follow the instructions in the terminal. It will ask to enter a size for the grid, a starting alive probability.
By default, if you enter nothing, the size will be 10x40 and the starting alive probability will be 0.5.Watch the game evolve in your terminal.AuthorsYetiYetYet-YetiYetYetQuestions/ContactIf you have any questions or concerns, please reach out to me atalexisbehier22@gmail.com.
Package: game-of-thrones
Command line tool to generate words that sound like characters from Game of Thrones. Useful for
unique project names, host names and the occasional stray cat.InstallationYou can install theGame of Thrones Namerusing pip:$pipinstallgame-of-thronesUsageYou can use thegame-of-thronescommand from the shell to run the Game of Thrones Namer:$ game-of-thrones --help

Generate words that sound like characters from Game of Thrones.

Usage:
  game-of-thrones [--quantity=<number>] [--min=<length>] [--max=<length>] [--json]
  game-of-thrones (-h | --help | --version)

Options:
  --version                show program's version number and exit.
  -h, --help               show this help message and exit.
  -q, --quantity=<number>  the quantity of words to generate [default: 10].
  --min=<length>           the minimum length of each word [default: 4].
  --max=<length>           the maximum length of each word [default: 10].
  -j, --json               output the names in JSON format.LicenseCopyright © 2014Matt Deacalion Stevens, released under TheMIT License.
Package: gamepad
Python Gamepad APIAn asynchronous (threaded) API for interfacing with gamepads.Free software: MIT licenseDocumentation:https://pygamepad.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-03-21)First release on PyPI.
Package: gamepadinfo
gamepadinfoThis is a Python script that detects gamepads and shows their state on
Linux.Dependenciespython3urwidpyudevevdevsdl2Dependencies can be installed on Ubuntu manually:$ sudo apt-get install python-urwid python-pyudev python-evdev
python-sdl2Ifgamepadinfois being installed via pip then dependencies will be installed automatically.Installing and RunningLet’s install and run.From source repositoryInstalling and running from source code repository goes as follows:$ git clone https://github.com/godfryd/gamepadinfo
$ cd gamepadinfo/
$ ./gamepadinfo.pyVia pipInstalling and running using pip goes as follows:$ pip install gamepadinfo
$ gamepadinfoVideo & ScreenshotShort video presentation:https://asciinema.org/a/5b5h1d850xk8wflv7v9db9qgbScreenshot:
Package: gamer3514
Gamer3514A small package that does stuffInstallationpipinstallgamer3514UsageApifromgamer3514importapi#NSFW Detectionapi.detectnsfw(imageurl,apikey)#Profanity Checkapi.profanitycheck(text,apikey)#Text To Brailleapi.texttobraille(text)#Random Numberapi.randomnumber(length)#Random Topicapi.randomtopic()#Random Cat Imageapi.cat(filepath,apikey)#Random Cat Gifapi.catgif(filepath,apikey)#Random Dog Imageapi.dog(filepath,apikey)#Donald Tweetapi.donaldtweet(filepath,text)Utilsfromgamer3514importutils#Get Random Numberutils.randomnumber()#Generate Random Passwordutils.genpassword(length)Random Stuff (No Category)fromgamer3514importrandomstuff#Huricane Speed To Categoryrandomstuff.hurricanecategory(speed)#Random Number (Yes Again)randomstuff.randomnumber()#Screen Time Percentagerandomstuff.screentime(hours)#Get Percentagerandomstuff.getpercentage(number,percentage)#File Spamrandomstuff.filespam(filepath,sentence,amount)#Print Spamrandomstuff.printspam(sentence,amount)#Nice Printrandomstuff.niceprint(sentence)ResourcesDiscord serverFree hostingContact me:gamer@sillydev.co.uk
Package: gamercon-async
gamercon-asyncgamercon-asyncis an asynchronous Python client designed for games like Minecraft, Ark and Path of Titans.FeaturesList the key features of your package.Explain what makes your package stand out.InstallationInstallgamercon-asyncusing pip:pipinstallgamercon-asyncRequirementsPython 3.10+asyncioUsageQuick example on how to use source games.importasynciofromgamercon_asyncimportGameRCONasyncdefmain():client=GameRCON('host','port','password')asyncwithclientaspot_client:response=awaitpot_client.send('your_command')print(response)asyncio.run(main())Replacehost,port, andpasswordwith your actual credentials and 'your_command' with the command you want to send.Example with The Isle: Evrimaimportasynciofromgamercon_asyncimportEvrimaRCONasyncdefmain():rcon=EvrimaRCON('host',port,'password')awaitrcon.connect()save_response=awaitrcon.send_command(bytes('\x02','utf-8')+bytes('\x50','utf-8')+bytes('\x00','utf-8'))print(f"Save Server Response:{save_response}")announcement="Hello, world!"announce_response=awaitrcon.send_command(bytes('\x02','utf-8')+bytes('\x10','utf-8')+announcement.encode()+bytes('\x00','utf-8'))print(f"Announcement Response:{announce_response}")asyncio.run(main())Special ThanksBarneygale: Made the original MCRcon which inspired me to release a new protocol.
Package: gamere
Gamere is a third-party library of python games based on pygame.
It’s suitable for writing grid games.
Please use python 3.8 or above.
You need to install pygame, cv2(opencv-python), PIL(pillow), matplotlib.
You can go to the source folder and use “pip install -r requirement.txt” command to install all third party libraries.
Version 2.1.1Home-page: UNKNOWN
Author: stripe-python
Author-email:13513519246@139.comLicense: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
Package: gamerec
**gamerec** is Python package intended to help process game recordings for 2 payers' games.File with game records can be loaded to Python collection object, be manipulated by user Python code,and then be saved back to file. Current very limited version of package only supports Chess gameand only .pgn file meta-data.Below is an example of package use to save games from .pgn file to SQLite database:```pythonfrom gamerec.storage.pgnfile.chess import ChessGameCollection as PGNChessGCfrom gamerec.storage.sqlite.chess import ChessGameCollection as SQLiteChessGCPGNFile = sys.argv[1]SQLFile = sys.argv[2]pgngc = PGNChessGC()pgngc.load(PGNFile)sqlgc = SQLiteChessGC()sqlgc.data = pgngc.datasqlgc.coding = "utf_8"sqlgc.save(SQLFile)```Consider installing [normalizePGN](https://pypi.python.org/pypi/normalizePGN) which is an example ofhow this package may be used.For more information see files README.md and Changelog.md included in source-ball orin typical installation using pip deployed to folders:- /usr/local/share/doc/gamerec (Linux)- C:\Python35\doc\gamerec (Windows) or- <USER>\AppData\Local\Programs\Python\Python35-32\Doc\gamerec
Package: game-resolver
game_resolverThis library is internal library for nishino-lab(The University of Tokyo)http://www.css.t.u-tokyo.ac.jpRun Sample GameThis library has three type sample games(prisoner, battle of sex, cournot).fromgame_resolver.games.custom_gameimportPrisonerfromgame_resolver.nash_equilibriumimportNashEquilibriumprisoner=Prisoner()ne=NashEquilibrium()eq=e.get_equilibrium(g)foriineq:print(i)Run your own gameA Nash equilibrium can be solved by representing the problem to be solved in the Game class.fromgame_resolver.games.custom_gameimportCustomGamefromgame_resolver.nash_equilibriumimportNashEquilibriumplayer_num=2action_list=["Cooperate","Defect"]all_player_action_list=[("Cooperate","Cooperate"),("Cooperate","Defect"),("Defect","Cooperate"),("Defect","Defect")]payoff_list=[[3,0,5,1],[3,5,0,1]]your_own_game=CustomGame("volunteer_dilenma",player_num,action_list,all_player_action_list,payoff_list)e=NashEquilibrium()eq=e.get_equilibrium(your_own_game)foriineq:print(i)
Package: gamesaver
Game SaverFind the best deals on pc games from the terminalTable of ContentsAbout The ProjectBuilt WithInstallationUsageRoadmapContributingLicenseContactAcknowledgementsAbout The ProjectInstead of spending hours, browsing different sites for the best deals on video games, use Game Saver.
Game Saver is an easy CLI tool to find the best deals on pc games from various sites like Steam, Gamestop, and more.Built WithPythonClickRichCheapShark APIInstallationUsing PippipinstallgamesaverManualgitclonegit@github.com:michaelnavs/gamesaver.gitcdgamesaverpythonsetup.pyinstallUsageSearch for all dealsgamesaversearchSearch deals for specific game titlegamesaversearch'<game_title>'gamesaversearch-t'<game_title>'gamesaversearch--title'<game_title>'Search deals from a specific storegamesaversearch-s'<store_name>'gamesaversearch--store'<store_name>'RoadmapSee theopen issuesfor a list of proposed features (and known issues).ContributingContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make aregreatly appreciated.Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseDistributed under the MIT License. SeeLICENSEfor more information.ContactMichael Navarro -@michaeljnavsAcknowledgements
Package: games-box
Games BoxBuild and InstallStandalone Executablepip install -r requirements-dev.txt
pyinstaller game_box.py --onefileBuild & Install Library Locallypython setup.py sdist
pip install /dist/games-box-VERSION.tar.gzInstall Library via pippip install games-boxUsageStandalone ExecutableDiceA simple interface for rolling dice. Each die is given a random, human-readable name. You may also give your own names to improve readability with large dice pools.Roll a single die giving the number of sides and an optional name.game_box.exe roll-die --sides=6
>> d6-PINK-FOX: 3Roll multiple dice giving a semi-colon separated list of dice.game_box.exe roll-dice --dice="4;6"
>> d4-WHITE-MOUSE: 3
>> d6-BLUE-RABBIT: 1
>> Total: 4Optionally, include your own name with each die.game_box.exe roll-dice --dice="4-My d4;6-My d6"
>> My d4: 1
>> My d6: 2
>> Total: 3Libraryfromgames_box.diceimportDie,DicePoolmy_d4=Die(4,"My d4")my_d6=Die(6,"My d6")my_dice_pool=DicePool([my_d4,my_d6])print(my_dice_pool.roll())
Package: gamesense
gamesenseA Python library for use with SteelSeries GameSense 3.8.X+InstallationThere are two different versions of this package. One supports normal synchronous function calls and the other support python's asynchronous functionality.To install the sync version run:pip install gamesense[sync]To install the async version run:pip install gamesense[async]Or both:pip install gamesense[sync,async]UsageRelatively simple to use.For synchronous usage:importgamesense# Create a GameSense object instance to usegs=gamesense.GameSense("SYNC_GAME","Sync Game")# Before you can register or send events, you must register your gamegs.register_game(icon_color_id=gamesense.GS_ICON_GOLD)# Register an event (different than binding an event, see more info in the SteelSeries docs)gs.register_event("DID_STUFF")# Test out the event by sending the eventgs.send_event("DID_STUFF",{"value":22})For asynchronous usage:importasyncioimportgamesense# For example purposes, need an event loop# Inside normal async functions, you'd just use await on the functions provided on AioGameSenseloop=asyncio.get_event_loop()# Create a GameSense object instance to usegs=gamesense.AioGameSense("ASYNC_GAME","Async Game")# Before you can register or send events, you must register your gameloop.run_until_complete(gs.register_game())# Register an event (different than binding an event, see more info in the SteelSeries docs)loop.run_until_complete(gs.register_event('DID_STUFF'))# Test out the event by sending the eventloop.run_until_complete(gs.send_event("DID_STUFF",{"value":23}))The two examples do relatively the same thing. For more information about the SteelSeries GameSense API, see:https://github.com/SteelSeries/gamesense-sdk/tree/master/doc/apifor more information. Things like binding handlers and such should be possible, but can be a bit complex. Commits are welcome for making such functionality easier.
Package: gameServerBackend
gameServerBackendA WebSocket based server for web games. Requires at least Python3.7The objective is to make one websocket server than can track many users and games and know which users is playing what game.
The goal is to make it so that it can be easily used to make a new game without having to worry about the issues of managing a
websocket server or identifying players, so that the game code can be given just a player and the action the player would like to perform.Docshttp://www.jonathanrotter.com/gameServerBackend/Noteslets have player id be the nameHow to run the example:go the the example directoryrunpython3 game.pyopen theindex.htmlpageenter a name and connectNote: Little to no effort has been put into the frontend of the example because it is just for testing purposes
Package: game-sir-fixer
Long story short:I bought this controller on Amazon because it was cheap.https://www.amazon.com/dp/B088GQY8FHTurns out it is not great for Windows 10.
The forums I read said that this controller mis-reports its capabilites and some programs like Dolphin Emulator will not recognize some buttons.This python program creates a virtual controller (you must have vJoystick SDK installed)http://vjoystick.sourceforge.net/site/index.php/download-a-install/78-download-a-install?layout=blogThis program grabs the controller input using pygame and then emulates a press on the vJoy virtual controller.I wrote this in a single day, so no guarentees, but me and my kids have been using it successfully all weekend.Hope it can help someone else :-)
Package: gameslib
# GamesLib
This Library for making Console Games.## What it includes
- Datatypes
- Filesystem-Builtins
- Console Text Positioning
- Spinner for loadingscreens
- Float to String conversion## Installation
Installation Commandpip install gamesliborpython -m pip install gameslib## Have fun making games (;# Changelog
Newest Version Release:NoneNewest Version:0.1.00.1.0 (11/30/2022) ALPHA PUBLIC RELEASE
Package: gamest
GamestGamest is a tool for keeping a record of time spent playing video games.InstallationUse pip to install gamest:pip install gamestGamest may be launched by callinggamestfrom the command line. The executablegamest.exeis located in python'sScriptsfolder, so a shortcut may be
placed wherever is convenient.ConfigurationOut of the box, gamest will track runtime of desired apps. To add an app to be
tracked, start the app, then click 'Pick Game`, choose the app from the list,
and click 'Pick Game' to select it. In most cases, no advanced settings will be
required, so click 'Add Game' to finish adding the app to the database. In the
future, the app will be automatically detected whenever it is running.Gamest may be configured by clicking the 'Settings' button on the program
window. Any installed plugins may be configured in the same way.LicenseCopyright (C) 2018  Tracy PoffThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This 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 General Public License for more details.CreditsIcon: clipboard by Naveen from the Noun Project
Package: gamestart
gamestart - a pygame wrapper for beginners and game jammersThis is a high level api wrapper for pygame, for making games with Python easier and quicker.Heavily inspired by pygame-zero, Scratch, bitsbox, and game engines such as unity,I think there is an opportunity to design a set of API both satisfy the need of beginnersand game makers who wish a quick result.Some features:some built-in assets for quick starting and code learning scenariosdraw loops are managed, so users can focus on actor and scene buildingQuick minimal examplefromgamestartimport*actor('monster')start()This draws a monster on the screen...Why another pygame wrapper?Why not pygame-zeroGamestart takes over draw loop management. This makes user code shorter and allowingfuture scene management features.Gamestart also comes with some built-in asset, for starters and prototypers.Gamestart games are run with just Python - it is an option for pygame-zero, but a default in gamestartWhy not processing.pyGamestart is driven by Python, instead a Python-Java middle layer.Gamestart manages the draw loop.Some more examplesLook at the root folder - files like 1_quickstart.py are examples.