-
-
Notifications
You must be signed in to change notification settings - Fork 0
User
Legopitstop edited this page Apr 20, 2023
·
4 revisions
Read and write to files in the user folder with no limitations.
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()| argument | value |
|---|---|
| id | The unique id just for this package. Must match regex: [^a-z._\-0-9]
|
| setupcommand | callback function |
| path | Path to the user folder. default "C:/Users/NAME/.python/ID" |
User.join(*paths)
User.uninstall()
User.exists(*paths)
User.open(file=new_file, mode='w')
User.listdir(*paths)
User.show(*paths)
User.get(*paths)
User.download(package=new_package, filename=new_filename)
User.unarchive(src=new_src, dst=new_dst)UserFolder by Legopitstop (c) 2022