timodonnell / pyopen Goto Github PK
View Code? Open in Web Editor NEWload csv, excel, json, hdf5, and pickle files into an ipython session
License: Apache License 2.0
load csv, excel, json, hdf5, and pickle files into an ipython session
License: Apache License 2.0
You should be able to pass a URL to pyopen and it should download and parse the file
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
?
$ 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
Possibly use gspread: https://github.com/burnash/gspread
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.