Skip to content

Commit

Permalink
added feature to write files from local disk
Browse files Browse the repository at this point in the history
  • Loading branch information
xweichu committed Dec 21, 2019
1 parent fc1716f commit 66830f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
setup(
name = 'skyhookdmpy', # How you named your package folder (MyLib)
packages = ['skyhookdmpy'], # Chose the same as "name"
version = '0.2', # Start with a small number and increase it with every change you make
version = '0.2.2', # Start with a small number and increase it with every change you make
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
description = 'Python client of Skyhook for Ceph', # Give a short description about your library
author = 'Xiaowei Chu', # Type in your name
author_email = 'xweichu@hotmail.com', # Type in your E-Mail
url = 'https://github.com/uccross/skyhookdm-pythonclient', # Provide either the link to your github or to your website
download_url = 'https://github.com/uccross/skyhookdm-pythonclient/archive/v0.2.tar.gz', # I explain this later on
download_url = 'https://github.com/uccross/skyhookdm-pythonclient/archive/v0.2.1.tar.gz', # I explain this later on
keywords = ['SkyhookDM', 'Skyhook', 'Skyhook-pythonclient'], # Keywords that define your package best
install_requires=[ # I get to this in a second
'pyarrow',
Expand All @@ -18,7 +18,6 @@
'wget',
'backports.lzma',
'dask[complete]',
'rados',
],
classifiers=[
'Development Status :: 3 - Alpha', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
Expand Down
6 changes: 5 additions & 1 deletion skyhookdmpy/skyhook_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ def tree_traversal(root):

def process_file(url):
import wget
filename = wget.download(url)
if 'http' in url:
filename = wget.download(url)
else:
filename = url

root_dir = uproot.open(filename)

stat_res = os.stat(filename)
Expand Down

0 comments on commit 66830f7

Please sign in to comment.