Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP GermainZ

13th June 2013, 08:25 PM   |  #1  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 7,337
 
5,911 posts
Join Date:Joined: Aug 2012
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 08:27 PM.
The Following 34 Users Say Thank You to GermainZ For This Useful Post: [ View ]
22nd June 2013, 12:52 PM   |  #2  
Senior Member
Flag Karlsruhe
Thanks Meter: 351
 
313 posts
Join Date:Joined: Oct 2010
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, 02:03 PM   |  #3  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 7,337
 
5,911 posts
Join Date:Joined: Aug 2012
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 02:13 PM.
The Following User Says Thank You to GermainZ For This Useful Post: [ View ]
22nd June 2013, 02:22 PM   |  #4  
Senior Member
Flag Karlsruhe
Thanks Meter: 351
 
313 posts
Join Date:Joined: Oct 2010
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 02:38 PM.
The Following User Says Thank You to fabi280 For This Useful Post: [ View ]
22nd June 2013, 05:14 PM   |  #5  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 7,337
 
5,911 posts
Join Date:Joined: Aug 2012
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, 07:38 PM   |  #6  
Senior Member
Flag Karlsruhe
Thanks Meter: 351
 
313 posts
Join Date:Joined: Oct 2010
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, 07:56 PM   |  #7  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 7,337
 
5,911 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by fabi280

This one works:

Thanks, updated py2 version.
22nd June 2013, 08:48 PM   |  #8  
varun.chitre15's Avatar
Recognized Contributor / Recognized Developer
Flag Sangli
Thanks Meter: 12,266
 
2,949 posts
Join Date:Joined: Oct 2011
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 08:51 PM.
22nd June 2013, 08:51 PM   |  #9  
varun.chitre15's Avatar
Recognized Contributor / Recognized Developer
Flag Sangli
Thanks Meter: 12,266
 
2,949 posts
Join Date:Joined: Oct 2011
More
Oops Looks like I am missing python-requests package
22nd June 2013, 08:52 PM   |  #10  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 7,337
 
5,911 posts
Join Date:Joined: Aug 2012
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