Saravanan666/pypi-org huggingface dataset:
Package: poke-env
The pokemon showdown Python environmentA Python interface to create battling pokemon agents.poke-envoffers an easy-to-use interface for creating rule-based or training Reinforcement Learning bots to battle onpokemon showdown.Getting startedAgents are instance of python classes inheriting fromPlayer. Here is what your first agent could look like:classYourFirstAgent(Player):defchoose_move(self,battle):formoveinbattle.available_moves:ifmove.base_power>90:# A powerful move! Let's use itreturnself.create_order(move)# No available move? Let's switch then!forswitchinbattle.available_switches:ifswitch.current_hp_fraction>battle.active_pokemon.current_hp_fraction:# This other pokemon has more HP left... Let's switch it in?returnself.create_order(switch)# Not sure what to do?returnself.choose_random_move(battle)To get started, take a look atour documentation!Documentation and examplesDocumentation, detailed examples and starting code can be foundon readthedocs.InstallationThis project requires python >= 3.8 and aPokemon Showdownserver.pip install poke-envYou can usesmogon's serverto try out your agents against humans, but having a development server is strongly recommended. In particular, it is recommended to use the--no-securityflag to run a local server with most rate limiting and throttling turned off. Please refer tothe docsfor detailed setup instructions.git clone https://github.com/smogon/pokemon-showdown.git
cd pokemon-showdown
npm install
cp config/config-example.js config/config.js
node pokemon-showdown start --no-securityDevelopment versionYou can also clone the latest master version with:git clone https://github.com/hsahovic/poke-env.gitDependencies and development dependencies can then be installed with:pip install -r requirements.txt
pip install -r requirements-dev.txtAcknowledgementsThis project is a follow-up of a group project from an artifical intelligence class atEcole Polytechnique.You can find the original repositoryhere. It is partially inspired by theshowdown-battle-bot project. Of course, none of these would have been possible withoutPokemon Showdown.Team data comes fromSmogon forums' RMT section.DataData files are adapted version of thejsdata files ofPokemon Showdown.LicenseCitingpoke-env@misc{poke_env,author={Haris Sahovic},title={Poke-env: pokemon AI in python},url={https://github.com/hsahovic/poke-env}}
Package: pokejdr
PokejdrThis package provides functionality for our pokemon role playing game.InstallingTheomc3package isPython 3.6+compatible, but not yet deployed to PyPI.
The best way to install is though pip and VCS:gitclonehttps://github.com/TRobine/Pkmn_Rmstrd.gitcdPkmn_Rmstrd
pipinstall.Or simply from the online master branch, which is stable:pipinstallgit+https://github.com/TRobine/Pkmn_Rmstrd.git#egg=pokejdrRunningFunctionality is provided through a single high level object, namedPokemon.
You can be set up with a single line:frompokejdrimportPokemonA demo jupyter notebook to walk through most of the implemented functionality can be found in thenotebooksfolder.LicenseThis project is licensed under theMIT License- see theLICENSEfile for details.
Package: poke-jenkins
Thepoke-jenkinsis a Mercurial extension that for the heads of an incoming changeset starts a Jenkins job.Installationpipinstallpoke-jenkinsConfigurationAn example of .hg/hgrc of your remote repository:[extensions]poke_jenkins=[poke_jenkins]# Jenkins urljenkins_base_url=http://ci.example.com# List the jobs you want to startjobs=Project_Tests_Dev Project_Coverage_Dev# Feel free to change this parametertag=foo# The url which Jenkins will use to clone the repositoryrepo_url=ssh://code.example.com//example# Timeout in secondstimeout=10# Jenkins user idusername=foo# Jenkins API Tokenpassword=bar# Branch regular expression filterbranch_regex=^c\d{4}UsageWith given configuration above, it will call jenkins jobs to start builds:http://ci.example.com/job/Project_Tests_Dev?TAG=foo&NODE_ID=<mercurial commit hash>&BRANCH=<branch name>&REPO_URL=ssh://code.example.com//examplehttp://ci.example.com/job/Project_Coverage_Dev?TAG=foo&NODE_ID=<mercurial commit hash>&BRANCH=<branch name>&REPO_URL=ssh://code.example.com//exampleIt will add basic auth headers to authenticate the calls if username and password settings are set.Python3 supportPackage itself supports python3 out of the box, but not mercurial ATM.ContactIf you have questions, bug reports, suggestions, etc. please create an issue on
theGitHub project page.LicenseThis software is licensed under theMIT licenseSeeLicense© 2013 Paylogic International.
Package: pokelance
PokeLanceA flexible, statically typed and easy to use pokeapi wrapper for python 🚀Features:Modern and pythonic API asynchronously built on top of aiohttpFlexible and easy to useStatically typed with mypyLinted with ruffWell documentedOptimized for speed and performanceAutomatically caches data for faster accessCaches endpoints for user convenienceInstallation$python-mpipinstallPokeLanceUsageimportasynciofrompokelanceimportPokeLanceclient=PokeLance()# Create a client instanceasyncdefmain()->None:print(awaitclient.ping())# Ping the pokeapiprint(awaitclient.berry.fetch_berry("cheri"))# Fetch a berry from the pokeapiprint(awaitclient.berry.fetch_berry_flavor("spicy"))print(awaitclient.berry.fetch_berry_firmness("very-soft"))print(client.berry.get_berry("cheri"))# Get a cached berry it will return None if it doesn't existprint(client.berry.get_berry_flavor("spicy"))print(client.berry.get_berry_firmness("very-soft"))awaitclient.close()# Close the clientreturnNoneasyncio.run(main())With Async Context ManagerimportasyncioimportaiohttpfrompokelanceimportPokeLanceasyncdefmain()->None:# Use an async context manager to create a client instanceasyncwithaiohttp.ClientSession()assession,PokeLance(session=session)asclient:print(awaitclient.ping())# Ping the pokeapiprint(awaitclient.berry.fetch_berry("cheri"))# Fetch a berry from the pokeapiprint(awaitclient.berry.fetch_berry_flavor("spicy"))print(awaitclient.berry.fetch_berry_firmness("very-soft"))print(client.berry.get_berry("cheri"))# Get a cached berry it will return None if it doesn't existprint(client.berry.get_berry_flavor("spicy"))print(client.berry.get_berry_firmness("very-soft"))# The client will be closed automatically when the async context manager exitsreturnNoneasyncio.run(main())ExamplesExamplesFollowing examples are available open an issue if you want more examples or more details on certain examples.Basic UsageAdvanced cache usageDiscord bot exampleFastAPI exampleImportant LinksPokeAPIPokeAPI DocumentationPokeLance DocumentationPokeLance ReadTheDocsPokeLance GitHubPokeLance PyPIPokeLance Discord
Package: pokeman
Pokeman is a RabbitMQ (AMQP 0-9-1) service choreography library for Python, implementing
various instantly deployable service resources like producers and consumers.The service resources are inspired by theEnterprise Integration Patterns.IntroductionPokeman is a service choreography library for Python, currently built on top ofPika.Manage RabbitMQ resources like Connections, Channels, Exchanges and Queues with OOP style objects.Deploy multiple producers and consumers with just a few lines of code.Use Pokeman at multiple Python-based (micro-)services to implement easy service choreography.# Connection structureSync resources share the blocking connection of the Pokeman and the connection is closed on Pokeman levelAsync resources are assigned unique select connections and the connection is closed on the resource level# Run testsdocker run -it –rm –name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management
Package: pokemaster
pokemaster- Get Real, Living™ Pokémon in PythonIntroductionpokemasterlets you create Pokémon
that is native to the core series Pokémon games
developed by Game Freak & Nintendo.Inpokemaster,
everything you get is
what you would expect in the games:
a Pokémon has a bunch of attributes,
knows up to four moves,
can be evolved to another species,
can learn, forget, and remember certain moves,
can use moves to do stuff
(such as attacking another Pokémon),
can consume certain items,
and much, much more.Installationpokemastercan be installed viapip, but you have to havepokedexinstalled first:pipinstallgit+https://github.com/kipyin/pokedex
pipinstallpokemasterOr, if you have poetry, run:poetryaddpokemaster-EpokedexBasic UsageTo summon a Real, Living™ Pokémon:frompokemasterimportPokemonbulbasaur=Pokemon(national_id=1,level=5)eevee=Pokemon('eevee',level=10,gender='female')DevelopmentInstallingTo make contribution,
you need to clone the repo first, of course:gitclonehttps://github.com/kipyin/pokemaster.gitcdpokemasterIf you havepoetryinstalled,
you can install the dependencies directly:poetryinstall-v-EpokedexThis will equip everything you need for the development.LintingWe useblackto format the code,
andisortto sort the imports.The best way to ensure all files are in the right format
is usingtox:tox-elintTestingAfter making commits,
make sure all tests are passed.
To run tests against all environments,
simply do:$toxIf you want to run tests against specific Python version,
usetox -e {env}.For example,
if you want to run tests against Python 3.7,
run the following command:$tox-epy37LICENSEMIT LicenseCopyright (c) 2019 Kip YinPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: pokemaster2
Pokemaster2Get Real, Living™ Pokémon in PythonGitHub repo:https://github.com/kipyin/pokemaster2.gitDocumentation:https://pokemaster2.readthedocs.ioFree software: MITFeaturesCurrently, there is not much you can do withpokemaster, but more features are actively being added!Load pokemon data from csv to a sqlite database.QuickstartTODOCreditsThis package was created withCookiecutterand thefedejaure/cookiecutter-modern-pypackageproject template.
Package: pokemon-formats
Pokémon Set FormatsThis is a package for interacting with the format used byPokémon ShowdownandPokéPaste.
It's specific features are:Parsing Pokémon Showdown and PokéPaste formats into a dictionaryConverting a dictionary into a Pokémon Showdown formatUploading a text team to PokéPaste and returning the linkRetrieve a JSON team from PokéPasteInstallation$pipinstallpokemon_formatsUsageUploading a team to PokéPastefrompokemon_formatsimportPokePasteteam="""Axew @ Aguav BerryAbility: RivalryEVs: 248 HP / 252 Atk / 8 SpANaughty Nature- Aqua Tail- Crunch- Dragon Claw- Draco MeteorBagon @ Choice BandAbility: Sheer ForceEVs: 252 Atk / 4 SpD / 252 SpeAdamant Nature- Body Slam- Double-Edge- Dragon Claw- Dragon DanceBulbasaur @ EvioliteAbility: ChlorophyllEVs: 252 Atk / 4 SpA / 252 SpeLonely Nature- Body Slam- Curse- Double-Edge- Energy Ball"""url=PokePaste.createPokePaste(team)print(url)Retrieving a team from PokéPastefrompokemon_formatsimportPokePasteurl="https://pokepast.es/0840194f9282db1a"pokepaste_json=PokePaste.retrieve_pokepaste(url)print(pokepaste_json)Convert a dictionary to a Pokémon Showdown formatfrompokemon_formatsimportPokePastefrompokemon_formatsimportShowdownteam=PokePaste.retrieve_pokepaste("https://pokepast.es/0840194f9282db1a")showdown_format=Showdown.jsonToShowdown(team)print(showdown_format)Convert a Pokémon Showdown format to a dictionaryfrompokemon_formatsimportPokePasteteam="""Axew @ Aguav BerryAbility: RivalryEVs: 248 HP / 252 Atk / 8 SpANaughty Nature- Aqua Tail- Crunch- Dragon Claw- Draco MeteorBagon @ Choice BandAbility: Sheer ForceEVs: 252 Atk / 4 SpD / 252 SpeAdamant Nature- Body Slam- Double-Edge- Dragon Claw- Dragon DanceBulbasaur @ EvioliteAbility: ChlorophyllEVs: 252 Atk / 4 SpA / 252 SpeLonely Nature- Body Slam- Curse- Double-Edge- Energy Ball"""json_team=PokePaste.pokemon_from_paste(team)print(json_team)
Package: pokemon-go-video-analysis
Pokémon Go Video AnalysisTools for analyzing Pokémon Go Player vs. Player (PvP) Videos.from battle_logger.pipeline import BattleLoggerPipeline

pogo_pipeline = BattleLoggerPipeline()
output = pogo_pipeline.exec('path/to/video')
pogo_pipeline.save_output(out_path="test_output", basename="battle_logger_output")Extract battles from videos and analyze what Pokémon appear in which battles:Log your battles and analyze your Pokémon's performance:Installation:make conda_dev
conda activate pogo_video_analysis_env
pip install pokemon-go-video-analysis
Package: pokemon-images
pokemon_images.pyA small library with no dependencies to get a random image of a Pokémon.Usage is simple:import pokemon_images, thenpokemon_images.get_random_url.Some notesThere are no accentedés in this library to aid typing on keyboards that do not have this key. In all cases,éshould be replaced byeexcept in documentation.This library is fully typed and fully documented with Python docstrings.Contributions are welcome, but this library is considered feature-complete.
Package: pokemonlib
Pokemonlib for pythonWARNING:I Am not and don't claim to be affiliated with Pokemon or the Pokemon Company or Nintendo.
I do not own and don't claim to own Pokemon, the battle logic of the algorithm, the sprites,
the idea and the code of any official pokemon game. But I do own The code that is written by myself
and the way it was implemented.This is a library containing a WIP (Work In Progress) implementation of the pokemon battle algorithm and
other features of the pokemon games.Present features:Automatically get base pokemon data from the PokeApiWIP featuresI mean what I'm actively working on (Checked if ready for release soon and currently in test)Pokemon ClassInventory/Player classPokemon attacksAutomatically get other pokemon data like sprites from the PokeApiBasic Battle UI (Very slow progress)Automatic game buildPlanned Features:(Checked means I'm starting to develop it as soon as I complete a WIP feature)Plugin System that permits to create your own pokemons/attacks/itemsItems (Needs Inventory first)Battle Logic (A class that handles the whole battle but without any UI)Overworld UITrainers battlePossibility to catch pokemonsInteraction system in OverworldAnd possibly more ;-) you can always make a feature request in the issues tab.Python CompatibilityFor now only python 3 is supported and python 2 support is not planned.
Anyways, if you're still using python 2, you should upgrade!Helping or contributing to the projectI have no problem with people helping me. If someone makes many good pull request I will consider to add them
as contributors of this repo. If someone contributes to the project by more than a few lines of code or do
something really useful (like some english teacher who fixes all the typos) I will add them to a credit section
and a file credits.txt.What this project is meant to becomeThis project is for now pieces of code on which you can use to make a simple pokemon game.
I want it to become a piece of software that you extend with your own script(s) and plugins, a bit like renpy.
If I manage to finish all the core and Engine part maybe a visual editor will be made.
Package: pokemonNames
Generate random pokemon names.Free software: GPL licenseInstallationThe script isavailable on PyPI.  To install with pip:pip install pokemonNamesFeaturesTODOUsage>> from pokemonNames.pokemonNames import PokemonNames
>> p = PokemonNames()
>> p.get_random_name()
'Flareon'
>> p.get_name(4)
'Charmander'
>> p.append_to_list(['myNewPokemon1', 'myNewPokemon2'])
>> p.get_name(720)
'myNewPokemon1'
>> p.get_name(721)
'myNewPokemon2'
>> p.append_to_list(['anotherNewPokemon1', 'anotherNewPokemon2'], start=900)
>> p.get_name(900)
'anotherNewPokemon1'Let a file be newNames.txt with contentPikasaur
Charfairy
PonidogImport the above list as:...
>> p.append_to_list('newNames.txt')
>> p.get_name(722)
'Pikasaur'
...An indexed file:...
1000 Flanyx
1005 Catmeow
...Import indexed file as:...
>> p.append_to_list('indexedFileName', hasIndex=True)
>> p.get_name(1000)
'Flanyx'
>> p.get_name(1005)
'Catmeow'DocsFor detailed docs of the package use python’s help utility.History0.1.0 (2014-09-11)First release on PyPI.
Package: pokemonPalette
pokemonPaletteThe pokePalette is a python library generate a color palette based on the colors of a chosen pokemon.Requeriments:numpyopencvpokebasesklearnUsage:get_pokemon_palette("pokemon name", numcolors=x)>>>frompokemonPaletteimportpokePalette>>>palette=pokePalette.get_pokemon_palette("charizard")>>>print(palette)['#bd4831','#0f4F64','#ef8826','#edD079']Examplesimportseabornassnsimportmatplotlib.pyplotaspltfrompokemonPaletteimportpokePalettetitanic=sns.load_dataset("titanic")palette=pokePalette.get_pokemon_palette('gengar',numcolors=2)g=sns.factorplot("class","survived","sex",data=titanic,kind="bar",palette=palette,legend=False)plt.show()importseabornassnsimportmatplotlib.pyplotaspltfrompokemonPaletteimportpokePalettesns.set_style('white')index=['HP','Attack','Defense','Sp. Atk','Sp. Def','Speed']bulbasaur=[45,49,49,65,65,45]charmander=[39,52,43,60,50,65]squirtle=[44,48,65,50,64,43]palette_b=pokePalette.get_pokemon_palette('bulbasaur')palette_c=pokePalette.get_pokemon_palette('charmander')palette_s=pokePalette.get_pokemon_palette('squirtle')fig,axes=plt.subplots(1,3)fig.suptitle('Initial Pokemons - 1st Generantion')sns.barplot(ax=axes[0],x=index,y=bulbasaur,palette=palette_b)axes[0].set_title("bulbasaur")sns.barplot(ax=axes[1],x=index,y=charmander,palette=palette_c)axes[0].set_title("charmander")sns.barplot(ax=axes[2],x=index,y=squirtle,palette=palette_s)axes[0].set_title("squirtle")Plans for next updatesAdd the option to get shiny Pokemon palette.Remove repeated colors.
Package: pokemons
Pokémon Name GeneratorGet Awesome Random pokemon names!ScreenshotInspired bySindresorhus's pokemonInstall$ pip install pokemonsUsageimportpokemonsasnamesprint(names.gen())#=> Nidoran♂print(names.genarr(3))#=> ['Noivern', 'Misdreavus', 'Cryogonal']Get HelpThere are few ways to get help:Pleasepost questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.For bug reports and feature requests, open issues.For direct and quick help, you canemail me.How to contributeHave an idea? Found a bug? Seehow to contribute.Thanks!LicenseMIT
Package: pokemonscli
Pokémon Name Generator CLIGet Awesome Random pokemon names in CLI!Install$ pip install pokemonscliUsage$ pokemonGet HelpThere are few ways to get help:Pleasepost questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.For bug reports and feature requests, open issues.For direct and quick help, you canemail me.How to contributeHave an idea? Found a bug? Seehow to contribute.Thanks!LicenseMIT
Package: pokemon-showdown-replays
Pokémon Showdown! ReplaysUsageTo create a replay you will need a log file produced by aPokémon Showdown!server.Installationpipinstallpokemon_showdown_replaysCreatingreplay.pokemonshowdown.comreplaysfrompokemon_showdown_replaysimportReplay,Uploadreplay_object=Replay.create_replay_object(log,show_full_damage=False,client_location="https://play.pokemonshowdown.com)html=Upload.create_replay(replay_object)Creatingplay.pokemonshowdown.comdownload replaysfrompokemon_showdown_replaysimportReplay,Downloadreplay_object=Replay.create_replay_object(log,show_full_damage=False,replay_embed_location="https://play.pokemonshowdown.com/js/replay-embed.js")html=Download.create_replay(replay_object)Theshow_full_damageparameter is optional and defaults toFalse. When it isTrueand the log produced by the Pokémon Showdown! server has health shown in
full (ie. 347/550 and not 64/100), the replay will show the exact damage dealt by a move and the exact percentage of health a pokemon has left.
For example:
347 / 550 will be shown as 63.1% hp when it is enabled and 64% hp when it is disabled. It will also be 64/100 in the replay's log.replay_embed_locationcan be used to show pokemon that do not exist on play.pokemonshowdown.com in a replay. This works by using the replay embed from the customclientin which the pokemon has a sprite, allowing it to be shown in the replay.client_locationworks in the same way but uses the whole client instead of just the replay embed.
Package: pokemonStreamTools
Pokemon Stream ToolsTo install:pip install pokemonStreamToolsCurrent ProgramsShiny OddsThis program will produce plot and text files for OBS that show the current odds* to have encountered a shiny mon.To run:usage: shinyOdds [-h] [--nShinies [NSHINIES]] Encounters.txt Odds

Time to shiny Hunt.

positional arguments:
  Encounters.txt        The file location for the number of encounters
  Odds                  The odds to find a shiny (i.e. 1/4096)

optional arguments:
  -h, --help            show this help message and exit
  --nShinies [NSHINIES]
                        The number of shinies you're hunting forThis will produce 3 files: a plot of your current shiny odds, a text file that has your current odds, and a text file that has the number of encounters until you reach your next percentage milestone.
These files are located in the same directory as Encounters.txt.The Encounters.txt file will be processed with regex to get the first numeric sequence.*The proper phrasing is x% of people at N encounters have gotten a shiny.Steam EnderThis program will auto end stream if Encounters.txt has not been updated in a certain time.
Useful for when using automatic hunters and you do not want your stream to run hours after it is found.To run:usage: streamEnder [-h] [--password [PASSWORD]] [--timeout [TIMEOUT]] [--EndStreamTime [ENDSTREAMTIME]]
                   [--EndStreamName ENDSTREAMNAME]
                   Encounters.txt OBS_IP PORT

Stream Ender.

positional arguments:
  Encounters.txt        The file location for the number of encounters
  OBS_IP                The IP of the OBS instance
  PORT                  The port for the OBS instance

optional arguments:
  -h, --help            show this help message and exit
  --password [PASSWORD]
                        The password for the OBS instance
  --timeout [TIMEOUT]   The time (in seconds) to start the "End Stream" screen
  --EndStreamTime [ENDSTREAMTIME]
                        The time (in seconds) to wait on the end screen
  --EndStreamName ENDSTREAMNAME
                        The name for the end stream sceneYou must set up OBS in the way describedhere.Twitch BotA twitch bot for chat commands.
Look at the README in the twitch bot folder for more details.