GithubHelp home page GithubHelp logo

pyopen's People

Contributors

timodonnell avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pyopen's Issues

support URLs

You should be able to pass a URL to pyopen and it should download and parse the file

Is there a way to force opening as a tsv?

There's a lot of tsv-formatted data online that has extension .txt. pyopen does not find a matching loader as-is, and with --loader pandas_csv it does not parse the \t's. Is there a way to specify a loader like pandas_tsv?

Error (related to Python3 strings vs. bytes?)

$ pyopen https://gist.githubusercontent.com/armish/bacfda412dc87d0984cb13a8ffa10c8b/raw/98b02625aadf807c13581b214b52a706490081f1/20160715-e6-windowsize8.csv

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.4/bin/pyopen", line 11, in <module>
    sys.exit(run())
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyopen/command.py", line 43, in run
    go(args)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyopen/command.py", line 68, in go
    local_file = web.maybe_download(filename_or_url)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyopen/web.py", line 25, in maybe_download
    return download(url_or_path)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyopen/web.py", line 33, in download
    suffix=url.split("/")[-1])
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyopen/temp_files.py", line 15, in tempfile_path
    fd.write(contents)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tempfile.py", line 399, in func_wrapper
    return func(*args, **kwargs)
TypeError: 'str' does not support the buffer interface

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.