Wupclient code is pretty much self explanatory. If you are good at python, don't be afraid to read it, if not, I suggest you wait for a more end user friendly tool.
I never said you were good at python, I said "if", If you think this is elitism, elitism it is. this is the last explanation I'll write on this topic: wupclient.py is not a application, it's a library for other applications like wupclientgui.py, a library's targeting user group is programmers.I never said I was good at Python, I said I was good at using Python scripts. I'm very quick to learn how to use them as long as I have proper documentation.
Please don't use that elitist statement on me. I know how to prevent getting bricked. If I was worried I'd screw something up, I wouldn't ask about documentation for the script at all.
I know that. I'm perfectly capable of implementing libraries in the python command line. IF I HAVE THE PROPER DOCUMENTATION.I never said you were good at python, I said "if", If you think this is elitism, elitism it is. this is the last explanation I'll write on this topic: wupclient.py is not a application, it's a library for other applications like wupclientgui.py, a library's targeting user group is programmers.
Now you're just making fun of yourself.I'm perfectly capable of implementing libraries in the python command line.
I fail to understand why you think that. I may not be using the proper terminology, but my meaning is still completely valid.Now you're just making fun of yourself.
Pretty happy, I said I've done explaining, now I'm just having fun so I won't tell you that's not called "implementing" but "using" a library. learning python is fun you should do it, and I'm pretty sure you get that "from wupclient import wupclient" from another post of me in another thread.By implementing libraries, I mean importing the classes. In the case of WUPClient, I'd input "from wupclient import wupclient" into python.
Happy now?
I'm pretty sure you get that "from wupclient import wupclient" from another post of me in another thread.
Just continue reading and you'll be fine.You can think that if you want, but I actually used common knowledge.
For example, WUPClient uses "from time import sleep". Knowing that time is a library, and sleep is a class, I can conclude that using WUPClient would mean typing "from wupclient import wupclient", as that's the only class made available by wupclient.
I may be stupid when it comes to reading Python code, but atleast I know that much.
holy shit this is stupid.
python -i wupclient.py to start a prompt
w.<command>(<args>)
if you don't know this you don't know shit about python
I guess I'm not as lucky as you then, to be able to wrap my head around it that quickly.literally just read it, i don't know a lick of python and i know only very basic C and asm
What if I tell you programming is an acquired skill?I guess I'm not as lucky as you then, to be able to wrap my head around it that quickly.
You're trying. That's better than a lot of people.I guess I'm not as lucky as you then, to be able to wrap my head around it that quickly.
Linux-like
def cd(self, path):
def pwd(self):
def ls(self, path = None, return_data = False):
def cp(self, filename_in, filename_out):
def rm(self, filename):
def mkdir(self, path, flags):
def rmdir(self, path):
def chmod(self, filename, flags):
def stat(self, filename):
def cpdir(self, srcpath, dstpath):
Copies a directory/tree on the WiiU itself
def dl(self, filename, directorypath = None, local_filename = None):
Download a file from WiiU to pc. If you don't give directorypath, the file comes from the current directory.
def dldir(self, path):
Download a directory tree. This one doesn't let you specify where to put it on the pc,
but it seems to end up in ../ (Haven't looked closely, but that's where I found it.)
def up(self, local_filename, filename = None):
Uploads a file from the pc to the WiiU. At its simplest, it'll go from the current directory on the pc to the same named file on the WiiU.
def dump_syslog(self):
Probably dumps the syslog
def fr(self, filename, offset, size):
File read
def df(self, filename_out, src, size):
Looks like a memory dump to a file (on the WiiU)
def askyesno(self):
You might use this in a script for confirmation like the rmdir does.
def mkdir_p(path):
def mount_sd():
def unmount_sd():
def mount_odd_content():
def unmount_odd_content():
def mount_odd_update():
def unmount_odd_update():
def mount_odd_tickets():
def unmount_odd_tickets():
def install_title(path, installToUsb = 0):
def get_nim_status():
def read_and_print(adr, size):
please, teaching like this will only help them hurting themselves.You're trying. That's better than a lot of people.
I'm not aware of any documentation, but I'll get you started. Here are the defs that appear to be for our use rather than the script's:
Methods, i.e. w.something()Code:Linux-like def cd(self, path): def pwd(self): def ls(self, path = None, return_data = False): def cp(self, filename_in, filename_out): def rm(self, filename): def mkdir(self, path, flags): def rmdir(self, path): def chmod(self, filename, flags): def stat(self, filename): def cpdir(self, srcpath, dstpath): Copies a directory/tree on the WiiU itself def dl(self, filename, directorypath = None, local_filename = None): Download a file from WiiU to pc. If you don't give directorypath, the file comes from the current directory. def dldir(self, path): Download a directory tree. This one doesn't let you specify where to put it on the pc, but it seems to end up in ../ (Haven't looked closely, but that's where I found it.) def up(self, local_filename, filename = None): Uploads a file from the pc to the WiiU. At its simplest, it'll go from the current directory on the pc to the same named file on the WiiU. def dump_syslog(self): Probably dumps the syslog def fr(self, filename, offset, size): File read def df(self, filename_out, src, size): Looks like a memory dump to a file (on the WiiU) def askyesno(self): You might use this in a script for confirmation like the rmdir does.
Functions, which don't take the wupclient instance (but use it anyway)
(Sorry, I'm out of time, so someone else will have to help you out from here if you can't tell what they do.)Code:def mkdir_p(path): def mount_sd(): def unmount_sd(): def mount_odd_content(): def unmount_odd_content(): def mount_odd_update(): def unmount_odd_update(): def mount_odd_tickets(): def unmount_odd_tickets(): def install_title(path, installToUsb = 0): def get_nim_status(): def read_and_print(adr, size):
If you're not into python, self isn't a parameter you give on the command line, so when you use w., skip self. Parameters with = None will default to None.
You're trying. That's better than a lot of people.
I'm not aware of any documentation, but I'll get you started. Here are the defs that appear to be for our use rather than the script's:
Methods, i.e. w.something()Code:Linux-like def cd(self, path): def pwd(self): def ls(self, path = None, return_data = False): def cp(self, filename_in, filename_out): def rm(self, filename): def mkdir(self, path, flags): def rmdir(self, path): def chmod(self, filename, flags): def stat(self, filename): def cpdir(self, srcpath, dstpath): Copies a directory/tree on the WiiU itself def dl(self, filename, directorypath = None, local_filename = None): Download a file from WiiU to pc. If you don't give directorypath, the file comes from the current directory. def dldir(self, path): Download a directory tree. This one doesn't let you specify where to put it on the pc, but it seems to end up in ../ (Haven't looked closely, but that's where I found it.) def up(self, local_filename, filename = None): Uploads a file from the pc to the WiiU. At its simplest, it'll go from the current directory on the pc to the same named file on the WiiU. def dump_syslog(self): Probably dumps the syslog def fr(self, filename, offset, size): File read def df(self, filename_out, src, size): Looks like a memory dump to a file (on the WiiU) def askyesno(self): You might use this in a script for confirmation like the rmdir does.
Functions, which don't take the wupclient instance (but use it anyway)
(Sorry, I'm out of time, so someone else will have to help you out from here if you can't tell what they do.)Code:def mkdir_p(path): def mount_sd(): def unmount_sd(): def mount_odd_content(): def unmount_odd_content(): def mount_odd_update(): def unmount_odd_update(): def mount_odd_tickets(): def unmount_odd_tickets(): def install_title(path, installToUsb = 0): def get_nim_status(): def read_and_print(adr, size):
If you're not into python, self isn't a parameter you give on the command line, so when you use w., skip self. Parameters with = None will default to None.
please, teaching like this will only help them hurting themselves.
How's it gonna hurt me? I'm still gonna keep trying to read through the script, but at least now I have some sort of baseline info.
This is good advice, but try to keep in mind that a person doesn't need to be able to code a grep command in order to be able to leverage the command to find the data they need. Although I understand that the code practically provides its own documentation, that doesn't make it obvious to everyone. Sometimes people just need a little push.If you're gonna start learning programming, better start from the basics, take your time. trust me I've seen enough shotgun programming.