Saravanan666/pypi-org huggingface dataset:
Package: minecraft-launcher-lib
minecraft-launcher-libA Python library for creating a custom minecraft launcher. This library containts functions to install and execute minecraft and interacting with mojang accounts.importminecraft_launcher_libimportsubprocessimportsys# Set the data for your Azure Application here. For more information look at the documentation.CLIENT_ID="YOUR CLIENT ID"REDIRECT_URL="YOUR REDIRECT URL"# Get latest versionlatest_version=minecraft_launcher_lib.utils.get_latest_version()["release"]# Get Minecraft directoryminecraft_directory=minecraft_launcher_lib.utils.get_minecraft_directory()# Make sure, the latest version of Minecraft is installedminecraft_launcher_lib.install.install_minecraft_version(latest_version,minecraft_directory)# Loginlogin_url,state,code_verifier=minecraft_launcher_lib.microsoft_account.get_secure_login_data(CLIENT_ID,REDIRECT_URL)print(f"Please open{login_url}in your browser and copy the url you are redirected into the prompt below.")code_url=input()# Get the code from the urltry:auth_code=minecraft_launcher_lib.microsoft_account.parse_auth_code_url(code_url,state)exceptAssertionError:print("States do not match!")sys.exit(1)exceptKeyError:print("Url not valid")sys.exit(1)# Get the login datalogin_data=minecraft_launcher_lib.microsoft_account.complete_login(CLIENT_ID,None,REDIRECT_URL,auth_code,code_verifier)# Get Minecraft commandoptions={"username":login_data["name"],"uuid":login_data["id"],"token":login_data["access_token"]}minecraft_command=minecraft_launcher_lib.command.get_minecraft_command(latest_version,minecraft_directory,options)# Start Minecraftsubprocess.run(minecraft_command)Features:Easy installingGet command to run MinecraftLogin to Microsoft accountSupportsForge,Fabric,Quiltand LiteloaderOld versions like alpha or beta supportedAll functions have type annotations and docstringsOnly depents onrequestsSupportsPyPyFull Documention with tutorial online availableSupports reading and writing profiles of the Vanilla LauncherInstall ofmrpack modpacksAll public APIs are static typedExamples availableOpenSourceView more examplesRead the documentationThanks to tomsik68 who documented how a minecraft launcher worksBuy me a coffe
Package: minecraft-learns
Minecraft_LearnsMinecraft_Learns is an AI Library used to simplify the machine learning process to the basics
ofprocess data, train, predict, evaluate. This simplifies the sklearn implementations of
these models by doing standard data processing automatically.
It is used to act as a sandbox for students to explore AI within Minecraft Education without
any machine learning background, hoping to foster a new interest in AI and ML.InstallationThe easiest way to install theminecraft_learnslibrary, install it via PIP:pipinstallminecraft-learnsDependenciesminecraft-learns requires the following dependencies:pandasnumpysklearnmatplotlibDocumentationSee the markdown filedocumentation.mdfor documentation on how to use MinecraftLearns
Package: minecraftmap
Simple Python 3 editor for Minecraft maps (the item) in NBT format. Allows editing the map image with the Python Image Library or by editing bytes in the color native format.Usage:import minecraftmap
filepath = "/Users/spookymushroom/AppData/Roaming/.minecraft/saves/Test World/data/map_0.dat"

# The False eco value indicates that __init__ should run genimage to update im (the PIL image)
m = minecraftmap.Map(filepath,eco=False)

# The '8' byte in Minecraft's color format is equivalent to (174, 164, 115)
print(m.allcolors[8])

# The allcolorsinversemap dictionary will return the byte value of a color
# when any native Minecraft map color is passed into it
print(m.allcolorsinversemap[(174, 164, 115)])

if m.getbyte(6747) != 8:
   m.setbyte(6747,8)

# Equivalent to getbyte(6747) for a 128x128 map
if m.getpoint((91,52)) != 8:
   m.setpoint((91,52),8)

# Updates Map.im (PIL) to match Map.file (NBT)
m.genimage()

# PIL methods, m.font defaults to Andrew Tyler's Minecraftia
m.draw.rectangle((0,0,30,30),fill=(56,58,89))
m.draw.text((40,40),"testing",font=m.font)

# Save Map.im (The PIL.Image object) to a file
m.saveimagepng("map_0.png") #front-end for m.im.save
m.saveimagejpg("map_0.jpg") #front-end for m.im.save

# PIL.Image.save method
m.im.save("map_0_customqual.jpg","JPEG",quality=80)

# Updates Map.file (NBT data) to match Map.im (PIL image)
# Versions before 0.2 require that the image contains only native colors
m.imagetonbt()

# Saves Map.file to an NBT file
# If filename argument is left blank, it saves data to
# the original file as identified by m.file.filename
print(m.file.filename)
m.savenbt()Requires:Thomas Woolford’s NBT libraryRequires:Python Image Library (Pillow)Includes:Andrew Tyler’s Minecraftia font
Package: minecraft-monitoring-api
Python Minecraft-Monitoring APIThis is a reverse engineered API wrapper forMinecraft-Monitroing.ru, which allow you automate the process.Features:Log in with token (authautologin cookie)Add new serverRemove exist serverEdit exist serverDisplay server listSupport markdownHelpful paramsDocumentation:Examples can be found in the /examples directory. To run these examples, replceauth_tokenin your token.client=Client('your_auth_token_here')Finding Your Token:Log intoMinecraft-Monitroing.ruon any browser, then open your browser's developer tools (also known as "inspect") and look for the value of theauthautologincookie in the following menus:Chromium: Devtools > Application > Cookies > monitoringminecraft.ruFirefox: Devtools > Storage > CookiesSafari: Devtools > Storage > CookiesUsing the Client:To use this library, simply import minecraftmonitoring and create a minecraftmonitoring.Client instance. The Client class accepts the following arguments:authautologin - The token to use.

user_agent - The user agent.Regular Example:fromminecraftmonitoringimportClientclient=Client('auth_token',user_agent='Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1')Copyright:This program is licensed under the MIT.Copyright Notice:MIT License

Copyright (c) 2023 Xpos587

Permission 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: minecraft-object-utils
Minecraft Object UtilsA python library for creating objects that represent blocks, items, and entities from Minecraft Java Edition.FeaturesSupport for multiple versions of vanilla MinecraftSupport for modded Minecraft by importing from custom toml filesEnsure that block states are validBasic UsageVanilla MinecraftThe default constructor will reflect objects from the latest version of minecraft. The minecraft namespace is assumed if one is not supplied in the block name.Basic Example: create a dirt block.fromminecraft_object_utilsimportMinecraftObjectFactorymcof=MinecraftObjectFactory()block1=mcof.block.create("dirt")# same result as "minecraft:dirt"item1=mcof.item.create("minecraft:egg")# same result as "egg"entity1=mcof.entity.create("chicken")Example: create blocks and set some properties.block2=mcof.block.create("dispenser")print(block2.get_state("facing"))# default is "north"block2.set_state("facing","east")print(block2.get_state("facing"))block2.set_state("triggered","very")# will error, invalid stateblock2.set_state("color","red")# will error, invalid property# You can also specify initial block state values with keyword argumentsblock3=mcof.block.create("repeater",facing="south",delay=4)Modded MinecraftYou can create and import toml files to represent objects from mods.Example: for Create mod v0.5.0i, make "/your/configs/dir/create-0.5.0i-block.toml" and import:fromminecraft_object_utilsimportMinecraftObjectFactory,ModInfomods=[ModInfo("minecraft","1.19"),ModInfo("create","0.5.0i","/your/configs/dir"),]mcof_mods=MinecraftObjectFactory(mods)block3=mcof_mods.block.create("stone")# assumes "minecraft:stone"block4=mcof_mods.block.create("create:chute")You can also register info to a factory manually.
Example:fromminecraft_object_utilsimportBlockProperty,BlockTraits,MinecraftObjectFactorycust_f=MinecraftObjectFactory([])bt1=BlockTraits("yourmod:yourblock")# block with no statebt2=BlockTraits("othermod:otherblock",props=[BlockProperty("awesome",False,[True,False]),BlockProperty("fakename","foo",["foo","bar","baz"]),],)cust_f.block.register(bt1)cust_f.block.register(bt2)block5=cust_f.block.create("yourmod:yourblock")block6=cust_f.block.create("othermod:otherblock")block6.set_state("awesome",True)Generating toml filesI generated the toml by running Minecraft out of IntelliJ. I'd like to make a fabric/forge mod that can output these files. For now, some rough code is here:minecraft-registry-dumper
Package: minecraft-python
Minecraft: Python EditionMinecraft: Python Editionis a project that strives to recreate each and every old Minecraft version in Python using thePygletmultimedia library andCythonfor performance.This project is currently recreating thePreclassicversions of Minecraft. The latest version isPreclassic rd-161348as released onMay 16, 2009.Learn more about this versionhere.General UsagePygletandCythonare required dependencies and can easily be installed withpip. Use the versions specified inrequirements.txt.To easily install this version ofMinecraft: Python Edition, just runpython -m pip install minecraft-python==161348.Alternatively, for a manual Cython build, runpython setup.py build_ext --inplace.Runpython -m mc.net.minecraft.Minecraftto launch the game.Minecraft: Python Editionshould be compatible with any modern platform that supports OpenGL and Cython.GameplayBasic terrain, early block picking and placing, and human mobs are featured in this version. There are five different blocks you can place.PressEscto exit the game. PressReturnto save,Rto reset your position,Gto spawn a mob, and numbers1-4(6for saplings) to switch blocks.Additional NotesThe resources directory contains all of the textures that this version uses. However,
they are only there for convenience, as all of the texture buffers are already preloaded
in thenet.Resourcesmodule.This would have been much more challenging to work on without the great tools provided byRetroMCP-Java.
Package: minecraft_remapper
Minecraft RemapperA Minecraft remapper for already deobfuscated source code.RequirementsPython >=3.9Installationpipinstallminecraft-remapperUsagepython-mminecraft_remapper--i<text>--o<text>--m<text>Examplepython-mminecraft_remapper--iinput_folder--ooutput_folder--mmappings_file.tsrgParameters--i: Path to deobfuscated and decompiled mod source code.--o: Path to an existing directory where the script will save the source code remapped in a zip file namedsources.zip.--m: Path to mappings file (<filename>.tsrg)LicenseDistributed under the MIT license. SeeLICENSEfor details.
Package: minecraft-render
minecraft-renderTODO: Update docs for minecraft-render-py.Renders minecraft block models usingTHREE.js.
Default output format is PNG1000x1000.Pre-rendered assetsYou can find pre-rendered assets on Github Actions artifacts. By clicking the badge down below, you can access action list.Headless render and CIIf you are automating generation process on github or similar CI environments, make sure you configured display server.xvfbcan be used for this purpose.sudoapt-getinstallxvfb
xvfb-run--auto-servernumminecraft-render...Noteshttps://minecraft.fandom.com/wiki/Tutorials/Models#Block_statesRework systemDetach Jar from data reading (interface to provide info, allow for directory sources, or prioritized stacks)Incorporate blockstates to configure properlyRotate as needed (see: stairs etc)
Package: minecraft-runner
ftb-mcA python script for working with servers.DescriptionThis package is designed to provide the functionality necessary to more easily interact with FTB minecraft servers that are running in containers. It essentially functions as a wrapper around much more complexpodmancommands, with some awareness of how the containers should be built and structured, because it is codeveloped and colocated with those containers.NoticeThis project is wholely unaffiliated with FeedTheBeast, Minecraft, Mojang, and Microsoft. It is an independent release to make management of local servers simpler.
Package: minecraftschematics
Minecraft Schematics - Minecraft Schematic LibraryMinecraft Schematics is a Python library for working with Minecraft schematic files. It provides a simple and convenient way to read and process schematic files used in Minecraft.The library is based on the Minecraft Schematic format version 2.FeaturesLoad Minecraft schematic files (.schematic) and read their contents.Access schematic size and dimensions (width, height, length).Get block data as a 3D numpy array representing the blocks in the schematic.Access individual blocks' information, including type and properties.InstallationTo install Minecraft Schematics, you can use pip:pipinstallminecraftschematicsUsageHere's a quick guide on how to use theminecraftschematicslibrary:Schematic ClassTheSchematicclass is the main class of the library. It is used to load schematic files with theloadmethod and access the schematic's data.fromminecraftschematicsimportSchematicschematic=Schematic.load('path/to/your/schematic_file.schematic')print(schematic.size)# Output: (3, 4, 5)print(schematic.width)# Output: 3print(schematic.height)# Output: 4print(schematic.length)# Output: 5# Get block data as a 3D numpy arrayblocks=schematic.blocksprint(blocks.shape)# Output: (3, 4, 5)print(blocks[0,0,0])# Output: Block(minecraft:redstone_wire[east=none,north=side,power=0,south=side,west=none])# Get the positions of each block as their schematic id in a 1D numpy arrayblock_data=schematic.block_dataprint(block_data)# Output: [1, 2, 1, 1, 1, 3...]# Get the offset of the schematicoffset=schematic.offsetprint(offset)# Output: (15, 3, 4)# Or for the WorldEdit offsetwe_offset=schematic.worldedit_offsetprint(we_offset)# Output: (15, 3, 4)# Get additional metadata (if available)metadata=schematic.metadataprint(metadata)# Output: { 'Metadata_key_1': 'Metadata_value_1', ... }Note: The schematic loading process will verify the schematic's version and raise an exception if it is not compatible with version 2. To force loading the schematic (not recommended), you can passforce=Trueto theloadmethod.RequirementsPython 3.10+numpynbtlibContributingIf you have any suggestions, bug reports, or feature requests, please feel free to open an issue or submit a pull request onGitHub.LicenseThis project is licensed under theMIT License.This project is based on the Minecraft Schematic format version 2.Author: Gabriel Werneck PaivaEmail:gwerneckpaiva@gmail.comGitHub:Your GitHub Profile
Package: minecraft-script
Minecraft ScriptMinecraft script is primarily a tool to make Minecraft Datapack creation easier.Minecraft Script is an interpreted programming language which goes through the Python interpreter for output.However, interpretation is not its main feature, and is rather more of a debugging tool, as its solepurpose is to allow you to validate your code before building it into a full datapack.Be sure to check out thedocumentationand the providedexamples!InstallationMCS can be installed usingPython's pip module.pip install minecraft-scriptorpython -m pip install minecraft-script_Note: The package's name in pip is written with a hyphen-,whilst the actual Python package is written with an underscore_._UsageFor a list of all shell commands, you can use the following command:python -m minecraft_script helpIf you want to simplify the usage of shell commands, you can check outthe installations page in the documentation.GitHubLink to GitHub RepositorySource code, documentation, and examples, can all be found on the GitHub.
Package: minecraft-server-installer
Made byhttps://github.com/yaflayThis is create server on new version minecraft.
if u dont use Python 3, dont use this. urllib dont working in Python2
if u seek some bug, write me in Telegram: @YaFlay
if u dont have C:/ disk, dont use this Python code, this crashed the code
Version: 1.5.4!
for free using with write link for my github.com
if u dont want to write my link, send project in my Telegram: @bebra_YaFlay
if u want using my code, try import minecraft_server_installer as minecraft
or from minecraft_server_installer import (def), minecraft
Package: minecraftstatus
An async API wrapper aroundapi.iapetus.meGet started ||Documentationto get started, type this in your terminalpip install -U minecraftstatusor to install the main branchpip install -U git+https://github.com/Infernum1/minecraftstatus(make sure you havegitinstalled)ExamplesFor examples, checkout theexamples directoryIf you plan to use the lib in a discord botimportdiscordimportminecraftstatusclient=minecraftstatus.MCStatus()bot=discord.ext.commands.Bot()@bot.command()asyncdefachievement(achievement:str):image=awaitclient.achievement(achievement)file=discord.File(image,"achievement.png")awaitctx.send(file=file)these are just examples! it's upto you how you want to use this lib.AddInfernum#7041on discord for help
Package: minecraft-text-components
minecraft-text-componentsA Python library for manipulating Minecraft's raw JSON text componentsminifybeetpluginThis library comes bundled with an optional beet plugin to automatically minify all text components inside commands. To use, install the optional dependency as described below:pipinstallminecraft-text-components[beet]Then, you can require the plugin inside your beet configuration file:require:-minecraft_text_components.contrib.beet_minifypipeline:-mecha
Package: minecraftVersions
MinecraftVersions.pyA library for getting Minecraft versionsInstallingPython 3.8 or higher is requiredTo install the stable version:For linux/MacOSpython3-mpipinstall-U"minecraftVersions"For Windowspip install -U minecraftVersionsTo install the development version:For linux/MacOSpython3-mpipinstall-Ugit+https://github.com/tungdo0602/MinecraftVersions.pyFor Windowspip install -U git+https://github.com/tungdo0602/MinecraftVersions.pyExampleGet the latest release minecraft server software:importminecraftVersionsfromminecraftVersionsimportMCVersionmc=MCVersion()mc.latest().server().download("server.jar")Get the specific minecraft version:importminecraftVersionsfromminecraftVersionsimportMCVersionmc=MCVersion()mc.getVersion("1.18.2")##Do something with it
Package: minecrypto
minecryptoA W.I.P python module that allows you to mine crypto in your programs.DocsThese docs are W.I.PDuino-Coinminecrypto.duinocoin(username, UseLowerDiff)
This allows you to mine Duino-Coinminecrypto.duinocoinwithxxhash(username)
This allows you to mine Duino-Coin with XXHASHUpcoming featuresFaucet'sMore crypto's like bitcoin and dogecoinAPI'sMore cryptosAnything else you want
Package: minedatabase
MINE DatabasesThe MINE Database contains code for generating (through Pickaxe) and storing and retrieving compounds from a database.
Pickaxe applies reaction rules, representing reaction transformation patterns, to a list of user-specified compounds in order to predict reactions.DocumentationFor general information on MINE Databases, please consultJJeffryes et al. 2015..Documentation is hosted athttps://mine-database.readthedocs.io/en/latest/. It gives more detailed descriptions and example uses of the software.InstallationIf a conda environment is desired to be used:conda create -n mineconda activate mineThen, use pip (with or without conda) to install minedatabase:pip install minedatabaseRunning PickaxeRunning Pickaxe through a python file (recommended)An example file,pickaxe_run_template.py, provides a framework for running pickaxe through a python file. Feel free to download it and change it to your needs. The starting compounds, rules and cofactors, optional database information, and Pickaxe run options are specified. After running the results are stored in a specified database or written to .tsv files.This is all explained in more detail in thedocumentation.Pickaxe command-line usage (not recommended - see above section)Pickaxe.py can be called independently to generate predictions with or
without database storage. To list all options callpython -m minedatabase.pickaxe -h. Note that due to relative imports, it needs to be run as a module (-m flag) from the MINE-Database directory. To predict metacyc reactions for one generation on compounds in the iML1515 model one would callpython pickaxe.py -C ./data/metacyc_generalized_rules.tsv -r ./data metacyc_coreactants.tsv -g 1 -c ../example_data/iML1515_ecoli_GEM.csv