Skip to main content

An API for getting Optifine VersionsList/Version/Download-URL.

Project description

Optifine-API

An API for getting Optifine VersionsList/Versions/Download-URL.
Download on Github.

Table of contents

Installation

pip install optipy

Get Versions List

This will get list of all Optifine versions.

  • The output might not show all versions in console.
  • Dump the list into file if you want to see all the versions.
from optipy import getversionlist

print(getversionlist())

Get Specify Versions

This will get Optifine versions informations by just specify Minecraft Version.
Arguments:

  • [ Required ] mcversion is for specify minecraft version.
  • [ Optional ] single use to return only one optifine version. (Default: False)
from optipy import getversion

print(getversion(mcversion='1.18', single=True))

Get Optifine Download URL

This will get filename from version info and use different method to download it.
=> Method 2 is faster then Method 1 when it downloading, but request will take a while. Why?

  • Because method 2 use temporary url and method 1 use global url. (It just my guessed. But I already tested it.)

Get Download URL Method 1

Arguments:

  • [ Required ] mcversion is for specify minecraft version.
  • [ Optional ] single use to return only one optifine version url. (Default: False)
from optipy import geturl

print(geturl(mcversion='1.18', single=True))

Get Download URL Method 2

Arguments:

  • [ Required ] mcversion is for specify minecraft version.
  • [ Optional ] single use to return only one optifine version url. (Default: False)
from optipy import geturl2

print(geturl2(mcversion='1.18', single=True))

Change Log

1.0.5 (2/10/2022)

  • First Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

optipy-1.1.0.tar.gz (3.9 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page