Skip to content

Latest commit

 

History

History
78 lines (39 loc) · 3.41 KB

CHANGELOG.md

File metadata and controls

78 lines (39 loc) · 3.41 KB

v1.2.1:

  • Support for Python 3.9.x

v1.2.0:

v1.1.0:

  • PFAEngine.fromPmml(pmmlDocument) support is now dropped begining v1.1.0 as its implementation was originally not matured in titus. Only 2/40 examples listed in the DMG PMML website were compatible with PFAEngine.fromPmml(pmmlDocument) in the original titus package.

v1.0.1:

  • Package renamed as titus2

  • Now available in PyPI - pip install titus2

v1.0.0:

  • Continues development on Titus v0.8.4 which was maintained by Open Data Group.

  • Major version change as significant changes were made to the codebase in order to migrate to Python 3.

  • Python's 2to3 tool was used to convert the python files post which other migration activity was undertaken.

  • Listify dict methods - keys(), values(), items().

  • Listify map() function

  • xrange() -> range()

  • unicode, basestring -> str

  • long -> int

  • raw_input() -> input()

  • unichr() -> chr()

  • .next() method replaced by next() in-built function.

  • urllib.urlopen() -> urllib.request.urlopen()

  • init.func_code -> init.code

  • Provide the rich comparison methods for ordering in Python 3, which are lt, gt, le, ge, eq, and ne (PEP 207 -- Rich Comparisons). cmp is no longer used.

  • L postfix is no longer used to denote long datatype number.

  • isinstance(jsonInput, file) -> isinstance(jsonInput, io.IOBase)

  • avro.schema.make_avsc_object() -> avro.schema.SchemaFromJSONData()

  • avro.schema.ArraySchema() & avro.schema.MapSchema() no longer have avro.schema.Names() argument.

  • In Python 3, a new data type is introduced called bytes which is denoted by b'' prefix. As per the PFA specification bytes input and output data are in string form and without any b prefix. To comply with the specification bytesToString() and stringToBytes() are included in titus/utils.py. Also, all inputs to the engine.action() should not contain any string(bytes) prefixed by b'' as per the standard.

  • '/' operator yields a float when operated on integers. Replaced with '//'.

  • sorted( .. , lambda x, y: compare(...)) replaced by sorted(.., functools.cmp_to_key(...))

  • SchemaParseException -> avro.schema.AvroException

  • Post Python 3.3, the value for any Linux version (sys.platform) is linux instead of linux2.

  • Fixed avro-python3 'mappingproxy' is not JSON serializable issue by replacing json.dumps(self.schema.to_json()) with str(self.schema). More details here.

  • Fixed fullName property of AvroCompiled. More details here.

  • Modified testcase to compare string representation of dictionaries using self.assertDictEqual(). More details here

  • Fixed scripts/pfachain

  • Bug fixes.

The CHANGELOG of titus maintained by Open Data ("Open Data" refers to one or more of the following companies: Open Data Partners LLC, Open Data Research LLC, or Open Data Capital LLC.) is provided here.