Skip to main content

MinecraftAssetsGetterPlus

MinecraftAssetsGetterPlus is a script that parses the XML of http://assets.minecraft.org to find the most recent version of vanilla Minecraft, either the latest stable or prerelease version. It is a fork of https://bitbucket.org/Knoppo/mag.

Usage often looks like this:

from magplus.magplus import MinecraftAssetsGetter

mag = MinecraftAssetsGetter()
print "Latest Prerelease Client: ", mag.getLatestClient(stable=False)
print "Latest Stable Client: ", mag.getLatestClient()
print "Latest Prerelease Server: ", mag.getLatestVanillaServer(stable=False)
print "Latest Stable Server: ", mag.getLatestVanillaServer()
print "Previous Prerelease Server: ", mag.getVanillaServer(stable=False, versions_old=1)
print "Previous Stable Server: ", mag.getVanillaServer(versions_old=1)
print "Latest Bukkit Recommended Server: ", mag.getLatestBukkitServer()
print "Latest Bukkit Beta Server: ", mag.getLatestBukkitServer(stable=False)
print "Previous Bukkit Recommended Server: ", mag.getBukkitServer(versions_old=1)
print "Previous Bukkit Beta Server: ", mag.getBukkitServer(stable=False, versions_old=1)
print "Vanilla Version List: ", mag.getVanillaVersionList(stable=False)
print "Bukkit Stable Version List: ", mag.getBukkitVersionList(stable=True)
print "Bukkit Unstable Version List: ", mag.getBukkitVersionList(stable=False)
print "Newer Unstable Vanilla Version? Yes: ", mag.getNewerVanillaVersion('12w22a', False)
print "Newer Stable Vanilla Version? Yes: ", mag.getNewerVanillaVersion('1_2', True)
print "Newer Stable Vanilla Version? No. ", mag.getNewerVanillaVersion('1_2_5', True)
print "Newer Unstable Bukkit Version? Yes: ", mag.getNewerBukkitVersion('1.2.3-R0.1', False)
print "Newer Stable Bukkit Version? Yes: ", mag.getNewerBukkitVersion('1.1-R1', True)
print "Newer Stable Bukkit Version? No. ", mag.getNewerBukkitVersion('1.2.5-R4.0', True)

Todo

  • Make getBukkitVersionList() less fragile. It works now, but who knows for how long.

Changes

0.2.2, 07/18/2012 – When passing None to getNewerVersion(), a link was returned instead of a build_dict.

0.2.1, 07/17/2012 – Accept None for getNewerBukkitVersion() and getNewerVanillaVersion(), returns latest version.

0.2.0, 07/17/2012 – Standardized the versions API (both vanilla and bukkit return lists of dicts). Added getNewerBukkitVersion() and getNewerVanillaVersion() to assist in updating.

0.1.3, 07/15/2012 – Making tests a real module. Made minor error corrections because of the test suite.

0.1.2, 07/15/2012 – Fixed ordering issues that were returning the wrong versions.

0.1.1, 07/15/2012 – Testing addition of Bukkit version listing. Added new functions for Bukkit. Requires BeautifulSoup4 now.

0.1.0, 07/14/2012 – Fixed minor bugs with packaging. Some files were not being included.

0.0.9, 07/14/2012 – Initial release.

License

This project is released under the GPLv2.

Thanks

Thanks to Knoppo for writing the original version.

Metadata

Release files for MAGPlus 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for MAGPlus 0.2.2
File Size Uploaded Provenance Actions
MAGPlus-0.2.2.tar.gz 16.7 kB Without provenance Details for MAGPlus-0.2.2.tar.gz

Release files / MAGPlus-0.2.2.tar.gz

Download URL MAGPlus-0.2.2.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cefd55301864d9701a6f711e624d35f850ad9a0bab14e13a5e126f8b6506973e
BLAKE2b-256 checksum
How to use checksums
92df255c54a83c651973787d4ec3da92f70af2d096d564404f505fa656dc8749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for MAGPlus 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page