Skip to content

User

Will create the file path inside the Users folder. Your id should be a unique string just for your script.

Parameters

argumentvalue
idThe unique id just for this package. Must match regex: [^a-z._\-0-9]
setupcommandcallback function
pathPath to the user folder. default "C:/Users/NAME/.python/ID"

Example

py
def setup_event(u: User):
    print('Download all required files')
    u.download('https://github.com/legopitstop/UserFolder/archive/refs/tags/v1.0.2.zip', 'temp.zip')
    u.unarchive('temp.zip')

user = User('com.author.example_name', setup_event)
user.show()

Methods

join

uninstall

exists

open

listdir

show

get

download

unarchive

Not associated with or approved by Mojang Studios or Microsoft