DEV Community

Discussion on: March 31st, 2022: What did you learn this week?

Collapse
 
onlyphantom profile image
Samuel Chan

Launched a python package (npm install taskquant) that weighs less than 8kb.

It adds a layer of gamification and scoreboards on top of TaskWarrior, and what I’ve learned was how heavy the dependencies of numpy / pandas are just to be able to do something like group by, aggregation, pivot table, indexing etc. So took a couple of hours out to build out the package with no dependencies — everything in vanilla python.

Yes, pandas alone (numpy being a dependency) sits at 250mb. So stripping away all of that and doing it in vanilla takes it all the way down to 8kb.

The end result is a python library that is extremely lightweight (<10kb), installs in under one second. I created a video to walk through the whole process as a tutorial:
youtu.be/lT2jqmhRkxo

Code is on my GitHub as well! GitHub.com/onlyphantom/taskquant

Collapse
 
nickytonline profile image
Nick Taylor

Prince Harry Saying Boom! while beside his grandmother, the queen