Xerparser

Latest version: v0.11.2

Safety actively analyzes 638430 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

0.9.5

General

Both project specific and global calendars are now included in the `PROJECT` `calendars` attribute. Covers cases where project tasks are assigned to a gobal calendar.

---

0.9.4

Added

* Added `actual_duartion` property to `PROJECT` class.

---

0.9.3

General

Some code cleanup and corrections to the python code in the README file.

---

0.9.2

Added

* Added function `file_reader` which accepts a .xer file and reads it to a string object.
* Accepts str or Path objects for files stored locally or on a server.
* Accepts BinaryIO files from requests, Flask, FastAPI, etc...
* Added classmethods `reader` to the `Xer` class. A .xer file can be passed directly to this method, which will read and decode the file, and return a `Xer` object. Uses the `file_reader` function above.

Changed

* Changed name of function `xer_to_dict` to `parser`.

---

0.9.1

Updated `CorruptXerFile` Exception to receive the list of errors and print them out when the exception is raised. The errors can now be accessed from the Exception when using `try` `except`.

python
try:
xer = Xer(file_contents)
except CorruptXerFile as e:
for error in e.errors:
print(error)


---

0.9.0

General Notes

Remove `error` attribute from `xer` class. If the errors are encoutered during initialization of an `xer` object, then a `CorruptXerFile` Exception is raised.

Added

* `find_xer_errors` function. Error checking for the file is now its own function that that can find errors in an xer file and povide the results in a list.
* Error checking now looks for invalid `rsrc_id` assigned to a `TASKRSRC` object.

Removed

The option for None type on the following items was originally done to avoid Exceptions being thrown if the file is corrupted. This created additional code to handle situations when the attributes equal None.
* Removed option for `calendar` attribute of the `TASK` class to be type `None`; All `TASK` objects must have a `calendar` or the `CorruptXerFile` Exception is raised.
* Removed option for the `resource` attribute of the `TASKRSRC` class to be type `None`; all `TASKRSRC` objects must have a `resource` or the `CorruptXerFile` Exception is raised.

---

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.