setlr 0.2.10__tar.gz → 0.2.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- Users/jimmccusker/opt/ipython/bin/setlr +3 -3
- Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/setlr/__init__.py +7 -4
- Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/setlr/__init__.pyc +0 -0
- Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/{setlr-0.2.10-py2.7.egg-info → setlr-0.2.11-py2.7.egg-info}/PKG-INFO +1 -1
- Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/setlr-0.2.11-py2.7.egg-info/pbr.json +1 -0
- Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/setlr-0.2.10-py2.7.egg-info/pbr.json +0 -1
- /Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/{setlr-0.2.10-py2.7.egg-info → setlr-0.2.11-py2.7.egg-info}/SOURCES.txt +0 -0
- /Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/{setlr-0.2.10-py2.7.egg-info → setlr-0.2.11-py2.7.egg-info}/dependency_links.txt +0 -0
- /Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/{setlr-0.2.10-py2.7.egg-info → setlr-0.2.11-py2.7.egg-info}/entry_points.txt +0 -0
- /Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/{setlr-0.2.10-py2.7.egg-info → setlr-0.2.11-py2.7.egg-info}/requires.txt +0 -0
- /Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/{setlr-0.2.10-py2.7.egg-info → setlr-0.2.11-py2.7.egg-info}/top_level.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/Users/jimmccusker/opt/ipython/bin/python
|
|
2
|
-
# EASY-INSTALL-ENTRY-SCRIPT: 'setlr==0.2.
|
|
3
|
-
__requires__ = 'setlr==0.2.
|
|
2
|
+
# EASY-INSTALL-ENTRY-SCRIPT: 'setlr==0.2.11','console_scripts','setlr'
|
|
3
|
+
__requires__ = 'setlr==0.2.11'
|
|
4
4
|
import sys
|
|
5
5
|
from pkg_resources import load_entry_point
|
|
6
6
|
|
|
7
7
|
if __name__ == '__main__':
|
|
8
8
|
sys.exit(
|
|
9
|
-
load_entry_point('setlr==0.2.
|
|
9
|
+
load_entry_point('setlr==0.2.11', 'console_scripts', 'setlr')()
|
|
10
10
|
)
|
|
@@ -240,7 +240,8 @@ def read_excel(location, result):
|
|
|
240
240
|
)
|
|
241
241
|
if result.value(csvw.header):
|
|
242
242
|
args['header'] = [result.value(csvw.header).value]
|
|
243
|
-
|
|
243
|
+
with get_content(location, result) as f:
|
|
244
|
+
df = pandas.read_excel(f,encoding='utf-8', **args)
|
|
244
245
|
return df
|
|
245
246
|
|
|
246
247
|
def read_xml(location, result):
|
|
@@ -253,8 +254,9 @@ def read_xml(location, result):
|
|
|
253
254
|
f.iter_end("/*")
|
|
254
255
|
for xp in result[setl.xpath]:
|
|
255
256
|
f.iter_end(xp.value)
|
|
256
|
-
|
|
257
|
-
|
|
257
|
+
with get_content(location, result) as fo:
|
|
258
|
+
for (i, (event, ele)) in enumerate(f.iterparse(fo)):
|
|
259
|
+
yield i, ele
|
|
258
260
|
|
|
259
261
|
|
|
260
262
|
def read_json(location, result):
|
|
@@ -263,7 +265,8 @@ def read_json(location, result):
|
|
|
263
265
|
selector = selector.value
|
|
264
266
|
else:
|
|
265
267
|
selector = ""
|
|
266
|
-
|
|
268
|
+
with get_content(location, result) as fo:
|
|
269
|
+
return enumerate(ijson.items(fo, selector))
|
|
267
270
|
|
|
268
271
|
|
|
269
272
|
extractors = {
|
|
Binary file
|
Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/setlr-0.2.11-py2.7.egg-info/pbr.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"is_release": false, "git_version": "bd1ed0e"}
|
Users/jimmccusker/opt/ipython/lib/python2.7/site-packages/setlr-0.2.10-py2.7.egg-info/pbr.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"is_release": false, "git_version": "a559233"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|