Skip to content

Commit

Permalink
Update version and HISTORY for release
Browse files Browse the repository at this point in the history
  • Loading branch information
eldoo committed Aug 2, 2021
1 parent abfb4d1 commit c84ab21
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 10 deletions.
26 changes: 26 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@

v1.9.1 - 2021-08-02
-------------------

Added:
~~~~~~

- Argument 'save' for saving the JSON response in most cube methods

Changed:
~~~~~~~~

- Default values of 'disable' and 'enable' argument in 'service' method in cube class
- Default value of 'missingvalue' argument in cube class to '-'

Fixed:
~~~~~~

- Slow parsing of large XML response documents in ophsubmit.py `#34 <https://github.com/OphidiaBigData/PyOphidia/issues/34>`_


Removed:
~~~~~~~~

- Deprecated 'subset2' method from cube `#35 <https://github.com/OphidiaBigData/PyOphidia/pull/35>`_


v1.9.0 - 2021-07-21
-------------------

Expand Down
14 changes: 7 additions & 7 deletions PyOphidia/ophsubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ def submit(username, password, server, port, query):
return (None, None, None, 1, statusmessage)

xmltree = ET.fromstring(reply)
response = xmltree.findall('.//oph:ophResponse',namespaces={"oph":"urn:oph"})[0]
response = xmltree.findall(".//oph:ophResponse", namespaces={"oph": "urn:oph"})[0]
res_error, res_response, res_jobid = None, None, None
if len(response.findall('jobid')) > 0 and response.findall('jobid')[0].text is not None:
res_jobid = response.findall('jobid')[0].text
if len(response.findall('error')) > 0 and response.findall('error')[0].text is not None:
res_error = int(response.findall('error')[0].text)
if len(response.findall('response')) > 0 and response.findall('response')[0].text is not None:
res_response = response.findall('response')[0].text
if len(response.findall("jobid")) > 0 and response.findall("jobid")[0].text is not None:
res_jobid = response.findall("jobid")[0].text
if len(response.findall("error")) > 0 and response.findall("error")[0].text is not None:
res_error = int(response.findall("error")[0].text)
if len(response.findall("response")) > 0 and response.findall("response")[0].text is not None:
res_response = response.findall("response")[0].text
except Exception as e:
print(get_linenumber(), "Something went wrong in submitting the request:", e)
return (None, None, None, 1, e)
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PyOphidia: Python bindings for Ophidia

It is an alternative to Oph_Term, the Ophidia no-GUI interpreter component, and a convenient way to submit SOAP HTTPS requests to an Ophidia server or to develop your own application using Python.

It runs on Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8 has no Python dependencies and is pure-Python code. It requires a running Ophidia instance for client-server interactions. The latest PyOphidia version (v1.9) is compatible with Ophidia v1.6.
It runs on Python 2.7, 3.5, 3.6, 3.7, 3.8 and 3.9 has no Python dependencies and is pure-Python code. It requires a running Ophidia instance for client-server interactions. The latest PyOphidia version (v1.9) is compatible with Ophidia v1.6.

It provides 2 main modules:

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def read(*paths):

setup(
name='PyOphidia',
version='1.9.0',
version='1.9.1',
description='Python bindings for the Ophidia Data Analytics Platform',
long_description=(read('README.rst') + '\n\n'),
url='http://ophidia.cmcc.it',
Expand All @@ -48,11 +48,11 @@ def read(*paths):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Scientific/Engineering',
#'Private :: Do Not Upload',
Expand Down

0 comments on commit c84ab21

Please sign in to comment.