Opened 10 months ago

Closed 9 months ago

#5 closed task (fixed)

Replace pandas by built in csv module

Reported by: Enrico Schwass Owned by: frankl
Priority: minor Milestone: Version 1.0
Component: General Version: 1.0
Keywords: Cc:

Description

To keep dependencies small, do not use external libraries for simple tasks

pandas can be easily replaced by the built-in csv module or even hand-written code

https://docs.python.org/3/library/csv.html

source:flowtimer/scripts/timer.py@99dee0f

Change History (4)

comment:1 by Enrico Schwass, 10 months ago

Component: BuildSystemGeneral

comment:2 by Enrico Schwass, 10 months ago

Milestone: Version 1.0
Version: 1.0

comment:3 by Enrico Schwass, 9 months ago

It is even better to store the configuration as json and build the Python objects (RecurringPhaseSequence) from that.
Do not forget to apply meaningful assertions to ensure safe object creation. All outside data is evil.

{

"phase_list": [

{

"title": "Huddle",
"duration": 10

},
{

"title": "Tasking",
"duration": 5

},
{

"title": "Work",
"duration": 45

},
{

"title": "Break",
"duration": 15

}

],
"repetitions": 3

}

comment:4 by Enrico Schwass, 9 months ago

Resolution: fixed
Status: assignedclosed

csv and pandas replaced by json and class RecurringPhaseSequence

Note: See TracTickets for help on using tickets.