FORUMS

What Are the Best Looking Apps on Android?

As more developers are updating their apps with Material Design elements, we’re … more

Cyngn Explained: Who’s Cyanogen, What’s Cyanogen OS?

While Cyanogen, Inc has been the source of many headlines lately, there … more

Verizon Moto X 2014 Receives Root On Kitkat 4.4.4

The Verizon Moto X 2014 has finally received root, albeit only on Kitkat 4.4.4 … more

Android 5.1.1 Released, Google Cell Service – XDA TV

Android Lollipop 5.1.1 has been released. That and much more news is covered … more
Post Reply Subscribe to Thread Email Thread

d-h.st (Dev-Host) command line tool

13th June 2013, 07:25 PM |#1  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 8,161
 
More
dev-host-cl
dev-host-cl is a python script that allows you to upload and manage files to http://d-h.st (Dev-Host) from a shell. It can be used anonymously or with your account's credentials.

Visit the Github repo for the full README and installation instructions.

Thanks for reporting any bugs you might find. Suggestions are welcome.
Last edited by GermainZ; 21st April 2014 at 07:27 PM.
The Following 35 Users Say Thank You to GermainZ For This Useful Post: [ View ]
 
 
22nd June 2013, 11:52 AM |#2  
Senior Member
Flag Karlsruhe
Thanks Meter: 353
 
Donate to Me
More
I've got serious problems using this tool, doesn't matter if I use python2 or python3
It starts uploading at first, but when it reaches 100% this message comes:
Code:
fabi280@fabiserv ~/dev-host-cl $ ./devhost.py upload -u fabi280 -p password -pb 1 -f mako_pa_nightly ../paranoidandroid/out/target/product/mako/pa_mako-3.60-22JUN2013-000503.zip
Logging in...
Starting...

Method: upload9%
File_info:

Response: Error
Message: File code specified doesn't exist or your don't have permission to update it.
Filename: pa_mako-3.60-22JUN2013-000503.zip
22nd June 2013, 01:03 PM |#3  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 8,161
 
More
Quote:
Originally Posted by fabi280

I've got serious problems using this tool, doesn't matter if I use python2 or python3
It starts uploading at first, but when it reaches 100% this message comes:

Code:
fabi280@fabiserv ~/dev-host-cl $ ./devhost.py upload -u fabi280 -p password -pb 1 -f mako_pa_nightly ../paranoidandroid/out/target/product/mako/pa_mako-3.60-22JUN2013-000503.zip
Logging in...
Starting...

Method: upload9%
File_info:

Response: Error
Message: File code specified doesn't exist or your don't have permission to update it.
Filename: pa_mako-3.60-22JUN2013-000503.zip

You specified a wrong folder ID (that's the exact server's response BTW).
To check the folder's ID, go to that folder and check the URL. For example:
Code:
http://d-h.st/myfiles?fld_id=18780#files
Last edited by GermainZ; 22nd June 2013 at 01:13 PM.
The Following User Says Thank You to GermainZ For This Useful Post: [ View ]
22nd June 2013, 01:22 PM |#4  
Senior Member
Flag Karlsruhe
Thanks Meter: 353
 
Donate to Me
More
Quote:
Originally Posted by GermainZ

You specified a wrong folder ID (that's the exact server's response BTW).
To check the folder's ID, go to that folder and check the URL. For example:

Code:
http://d-h.st/myfiles?fld_id=18780#files

Thanks but this doesn't really work either:
Code:
fabi280@fabiserv ~ $ devhost upload -u fabi280 -p password -pb 1 -f 19084 paranoidandroid/changelog.txt
Logging in...
Starting...

Method: upload
File_info:

Response: Error
Message: File code specified doesn't exist or your don't have permission to update it.
Filename: changelog.txt
But as you can see on my public link - the folder ID is correct: http://d-h.st/users/fabi280/?fld_id=19084#files (its even the same on myfiles: http://d-h.st/myfiles?fld_id=19084#files)

EDIT: Even anonymous uploading doesn't work for me:
Code:
fabi280@fabiserv ~ $ devhost upload /home/fabi280/paranoidandroid/changelog.txt 
Starting...

Method: upload
File_info:

Response: Error
Message: File code specified doesn't exist or your don't have permission to update it.
Filename: changelog.txt
Last edited by fabi280; 22nd June 2013 at 01:38 PM.
The Following User Says Thank You to fabi280 For This Useful Post: [ View ]
22nd June 2013, 04:14 PM |#5  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 8,161
 
More
Quote:
Originally Posted by fabi280

Thanks but this doesn't really work either:
But as you can see on my public link - the folder ID is correct: http://d-h.st/users/fabi280/?fld_id=19084#files (its even the same on myfiles: http://d-h.st/myfiles?fld_id=19084#files)

EDIT: Even anonymous uploading doesn't work for me:

Can you try the latest python3 version, please? If it works, I'll update the py2 version ASAP.
22nd June 2013, 06:38 PM |#6  
Senior Member
Flag Karlsruhe
Thanks Meter: 353
 
Donate to Me
More
Quote:
Originally Posted by GermainZ

Can you try the latest python3 version, please? If it works, I'll update the py2 version ASAP.

This one works:
Code:
fabi280@fabiserv ~ $ python3 dev-host-cl/devhost.py upload -u fabi280 -p password -pb 1 -f 19084 paranoidandroid/changelog.txt
Logging in...
Starting...

Method: upload
File_info:

Response: Success
File_code: Kva
Delete_id: n3XXh0h881
Folder_id: 19084
Server: fs1
Filename: changelog.txt
Description: None
Size: 161
Downloads: None
Virus_status: None
Created: 2013-06-22 13:36:50
Md5sum: 1dd4b3f04dc72f2d287f38da5bb97f19
Public: 1
Download_url: http://d-h.st/Kva
Direct_download_url: http://fs1.d-h.st/download/00XX2/Kva/changelog.txt
22nd June 2013, 06:56 PM |#7  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 8,161
 
More
Quote:
Originally Posted by fabi280

This one works:

Thanks, updated py2 version.
22nd June 2013, 07:48 PM |#8  
varun.chitre15's Avatar
Recognized Contributor / Recognized Developer
Flag Sangli
Thanks Meter: 14,052
 
More
Not much into python scripting but I have below error when I do devhost upload myfile

Code:
Traceback (most recent call last):
  File "./devhost.py", line 24, in 
    from requests import session
ImportError: No module named requests
Last edited by varun.chitre15; 22nd June 2013 at 07:51 PM.
The Following User Says Thank You to varun.chitre15 For This Useful Post: [ View ]
22nd June 2013, 07:51 PM |#9  
varun.chitre15's Avatar
Recognized Contributor / Recognized Developer
Flag Sangli
Thanks Meter: 14,052
 
More
Oops Looks like I am missing python-requests package
22nd June 2013, 07:52 PM |#10  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 8,161
 
More
Quote:
Originally Posted by varun.chitre15

Oops Looks like I am missing python-requests package

I did specify it in the README, but I'll add an error message notifying the user to install it anyway. ^_^
The Following User Says Thank You to GermainZ For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
command line, d-h.st, dev-host, devhost, shell
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes