Python 3.10 or higher is required.
To install the library, you can run the following command:
python -m pip install git+https://github.com/Enegg/supermechs.gitpython should be replaced with your python executable.
There's currently no PyPI release available.
The library is in its alpha stage. The API is immature and may substantially change as development progresses.
import requests # pip install requests
from serial import to_item_pack
with requests.get("https://raw.githubusercontent.com/Enegg/Item-packs/master/items.json") as resp:
resp.raise_for_status()
pack = to_item_pack(resp.json())
print(pack.data)
# do stuff with pack