Upload files to "/"
This commit is contained in:
		
							
								
								
									
										21
									
								
								client.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								client.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
import xmlrpc.client, argparse
 | 
			
		||||
 | 
			
		||||
parser = argparse.ArgumentParser()
 | 
			
		||||
parser.add_argument(
 | 
			
		||||
    "--enable",
 | 
			
		||||
    action="store_true",
 | 
			
		||||
)
 | 
			
		||||
parser.add_argument(
 | 
			
		||||
    "--disable",
 | 
			
		||||
    action="store_true",
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
args = parser.parse_args()
 | 
			
		||||
proxy = xmlrpc.client.ServerProxy("http://localhost:6767/")
 | 
			
		||||
 | 
			
		||||
if args.enable:
 | 
			
		||||
    result = proxy.enable()
 | 
			
		||||
    print(result)
 | 
			
		||||
elif args.disable:
 | 
			
		||||
    result = proxy.disable()
 | 
			
		||||
    print(result)
 | 
			
		||||
		Reference in New Issue
	
	Block a user