Metadata-Version: 2.4
Name: evmotosentiment
Version: 0.1.0
Summary: Package to analyse Motorcycle EV swap related issues
Author: Ayikwei Richard
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: pandas>=2.3.1
Requires-Dist: pytest>=8.4.1
Requires-Dist: setuptools>=80.9.0
Dynamic: author

# Motoevsentiment 
A package for analysing swap related messages.

## wsentiment subpackage
This subpackage analyses WhatsApp related messages for sentiment.

## Using wsentiment

import by using
```
from motoevsentiment.wsentiment import wsentiment_score
```
wsentiment_score takes only string inputs.

- example

```
wsentiment_score('kofi has lights out')
>> -2
```

## wdataframe
This subpackage changes WhatsApp text export file *(.txt)* into a dataframe

## Using wdataframe

import using
```
from motoevsentiment.wsentiment import wdataframe
```

- example
```
# Suppose you have a text file with data
test_file = "sample.txt"

# Read the text file into a Pandas DataFrame
df = read_text_to_df(test_file)

# Display the DataFrame
print(df)

              datetime       sender     message
0  2023-09-29 07:49:00    John Doe          ok
1  2023-09-29 08:15:00    Jane Doe  swapped battery
```
