Git Product home page Git Product logo

filebutler-upload's People

Contributors

dalpil avatar jhaals avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

filebutler-upload's Issues

Does not support multiple parameters without the upload flag.

Fails:

$ filebutler simian-2.0.3.tar.gz -p foobar -1
usage: filebutler [-h] {upload,list,delete} ...
filebutler: error: invalid choice: 'simian-2.0.3.tar.gz' (choose from 'upload', 'list', 'delete')

Works:

$filebutler upload simian-2.0.3.tar.gz --p foobar -1
simian-2.0.3.tar.gz 100.0% 0.0 mbps
https://example.com/cc11cdfaf0fbd453613288da95a21a91ce90416d

User guide

Make first run easier by creating the config file via tutorial.

Shorter URLs

Shortest unique match should resolve the full hash; think git.

Privacy issues with guessable hashes?

Better error handding

Add exceptions for ValueError in json.decode and when server is down.

This is ugly:

~ filebutler com.testing.plist 
Traceback (most recent call last):
  File "/usr/local/share/python/filebutler", line 9, in <module>
    load_entry_point('filebutler-upload==0.0.1', 'console_scripts', 'filebutler')()
  File "/Users/jhaals/src/filebutler-upload/filebutler_upload/main.py", line 10, in main
    sys.exit(instance.run())
  File "/Users/jhaals/src/filebutler-upload/filebutler_upload/application.py", line 198, in run
    return self.options.command(fm)
  File "/Users/jhaals/src/filebutler-upload/filebutler_upload/application.py", line 135, in do_upload
    self.options.lifetime
  File "/Users/jhaals/src/filebutler-upload/filebutler_upload/filehandler.py", line 52, in upload
    status, response = post(self.url, data, self.headers, callback=pb)
  File "/Users/jhaals/src/filebutler-upload/filebutler_upload/httputils.py", line 18, in request
    request.connect()
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/httplib.py", line 1157, in connect
    self.timeout, self.source_address)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/socket.py", line 571, in create_connection
    raise err
socket.error: [Errno 61] Connection refused

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.