lucasrodes / whatstk

WhatsApp chats as dataframes. Python toolkit to analyse and parse WhatsApp chats.
https://whatstk.lcsrg.me/
GNU General Public License v3.0
121 stars 23 forks source link

Release/0.4.0 #106

Closed lucasrodes closed 3 years ago

lucasrodes commented 3 years ago

Major Updates

Support for Python 3.9 (support for Python 3.6 discontinued)

Library dependencies and tests have been updated so as to make whatstk compatible with Python 3.9. This however lead to the discontinuation of Python 3.6 support.

New chat df format

Date field was being used as the index of the chat DataFrame. This does not make sense, as dates may be repeated and we'd ideally have unique identifiers for each row entry. Now, the ids are numeric integers ordered by message date.

Now (>=v0.4.0)

>>> from whatstk import WhatsAppChat
>>> from whatstk.data import whatsapp_urls
>>> chat = WhatsAppChat.from_source(filepath=whatsapp_urls.POKEMON)
>>> chat.df.head(5)
                 date     username                                            message
0 2016-08-06 13:23:00  Ash Ketchum                                          Hey guys!
1 2016-08-06 13:25:00        Brock              Hey Ash, good to have a common group!
2 2016-08-06 13:30:00        Misty  Hey guys! Long time haven't heard anything fro...
3 2016-08-06 13:45:00  Ash Ketchum  Indeed. I think having a whatsapp group nowada...
4 2016-08-06 14:30:00        Misty                                          Definetly

Deprecated (<=v0.3.1)

>>> from whatstk import WhatsAppChat
>>> from whatstk.data import whatsapp_urls
>>> chat = WhatsAppChat.from_source(filepath=whatsapp_urls.POKEMON)
>>> chat.df.head(5)
                        username                                            message
date                                                                               
2016-08-06 13:23:00  Ash Ketchum                                          Hey guys!
2016-08-06 13:25:00        Brock              Hey Ash, good to have a common group!
2016-08-06 13:30:00        Misty  Hey guys! Long time haven't heard anything fro...
2016-08-06 13:45:00  Ash Ketchum  Indeed. I think having a whatsapp group nowada...
2016-08-06 14:30:00        Misty                                          Definetly
codecov[bot] commented 3 years ago

Codecov Report

Merging #106 (9947300) into master (a9f1489) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #106   +/-   ##
=======================================
  Coverage   97.40%   97.40%           
=======================================
  Files          21       21           
  Lines         577      578    +1     
  Branches       86       86           
=======================================
+ Hits          562      563    +1     
  Misses          9        9           
  Partials        6        6           
Impacted Files Coverage Δ
whatstk/whatsapp/generation.py 100.00% <ø> (ø)
whatstk/__init__.py 100.00% <100.00%> (ø)
whatstk/_chat.py 100.00% <100.00%> (ø)
whatstk/analysis/interventions.py 100.00% <100.00%> (ø)
whatstk/utils/chat_merge.py 100.00% <100.00%> (ø)
whatstk/whatsapp/objects.py 100.00% <100.00%> (ø)
whatstk/whatsapp/parser.py 95.50% <100.00%> (-0.05%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a9f1489...9947300. Read the comment docs.