Xerparser

Latest version: v0.12.0

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

Scan your dependencies

Page 4 of 6

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.

---

0.8.2

Added

* Added `actual_total_cost` property to `TASKFIN` class
* Added `late_start` property to `PROJECT` class

Changes

* `TASK` method `rem_hours_per_day` can now accept a `late` flag (bool) to calculate late dates rather than early dates.

---

0.8.1

General Notes

Refactor / cleanup code.
Working on functionality to generate cost loading projections.

Added

* Added `rem_hours_per_day` method to `TASK` class. This return a dict with date: workhour key value pairs. This function was originally contained within the `calendar.py` module, but was not being used. Makes more sense to have it as a `TASK` method.
* Added `base_calendar` attribute to `CALENDAR` class. The `is_workday` function will now search the `base_calendar` for holidays when determining if a date is a workday.

Changed

* `remain_drtn_hr_cnt` attribute of `TASK` no longer allows `None` type.
* `finish` property of `TASK` will now check for `reend_date` and return it before it returns `early_end_date`

---

0.8.0

General Notes

Added parsing of User Defined Fields (UDF). [Issue 4](https://github.com/jjCode01/xerparser/issues/4)
Expanded testing for more coverage.
Refactor / clean up code for initialization of `XER` class.

Added

* Added class `UDFTYPE` which represents a User Defined Field.
* Added attribute `user_defined_fields` to `PROJECT`, `PROJWBS`, `RSRC`, and `TASK` classes, which hold a dictionary of `UDFTYPE`: `UDF Value` key value pairs.

---

0.7.0

General Notes

Added parsing of Project Codes. [Issue 3](https://github.com/jjCode01/xerparser/issues/3).

Added

* Added class `PCATTYPE` which represents a Project Code Type.
* Added class `PCATVAL` which represents a Project Code Value.
* Added attribute `project_code_types` to `Xer` class, which holds a dictionary of `PCATTYPE` objects.
* Added attribute `project_code_values` to `Xer` class, which holds a dictionary of `PCATVAL` objects.
* Added attribute `project_codes` to `PROJECT` class, which holds a dictionary of `PCATTYPE`: `PCATVAL` key value pairs assigned to a project.

---

0.6.0

General Notes

The `ScheduleWarnings` class will no longer be developed under this project. This is a breaking change if you were using the `ScheduleWarnings` class.

Added

* Added `__len__` method to `CALENDAR` class. Returns number of workdays in a week.

Removed

* Removed `warnings.py` from project. This may become a seperate project.

---

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.