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.

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. Arguments:
  • [ Optional ] timeout use for how long can request take before it cancel. (Default: 30)
from optipy import getVersionList

while True:
    data = getVersionList(timeout=15)
    if "408" not in data:
        print(data)
        break

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)
  • [ Optional ] timeout use for how long can request take before it cancel. (Default: 30)
from optipy import getVersion

while True:
    data = getVersion(mcversion="1.18", single=True, timeout=15)
    if "408" not in data:
        print(data)
        break

Get Optifine Download URL

This will get filename from version info and use different method to download it.
Arguments:

  • [ Required ] mcversion is for specify minecraft version.
  • [ Optional ] single use to return only one optifine version url. (Default: False)
  • [ Optional ] timeout use for how long can request take before it cancel. (Default: 30)
from optipy import getUrl

while True:
    data = getUrl(mcversion="1.18", single=True, timeout=15)
    if "408" not in data:
        print(data)
        break

Change Log

1.0.5 (10/2/2022)

  • First Release

1.0.5 (7/2/2022)

  • Fixed Request Time-out return None
  • Added hint arguments
  • Renamed functions

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.2.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

optipy-1.2.2-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page