Skip to main content

Package to analyse Motorcycle EV swap related issues

Project description

Motoevsentiment

A package for extracting and analyzing sentiment from EV motorcycle feedback provided by customers and employees.

Source Code

The full source code for this project is available on GitHub.

wsentiment subpackage

This subpackage analyses WhatsApp related messages for sentiment.

Using wsentiment

import by using

from evmotosentiment.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 evmotosentiment.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 = wdataframe(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

Running using pytest

To run tests in your current Python environment:

pytest

Running Tests with Tox

This project uses Tox to automate testing across multiple Python versions.

Test Environments

The tox.ini is configured to run tests with:

  • Python 3.9
  • Python 3.10
  • Python 3.11

Each environment installs:

  • pytest (for running tests)
  • pandas (project dependency)

Prerequisites

  • Python 3.9, 3.10, and 3.11 installed on your system
  • uv for faster installs (optional but recommended)
  • Install tox with uv:
uv pip install tox tox-uv

License: CC BY 4.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evmotosentiment-0.1.4.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evmotosentiment-0.1.4-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file evmotosentiment-0.1.4.tar.gz.

File metadata

  • Download URL: evmotosentiment-0.1.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for evmotosentiment-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ea69e93b3c65a142e63f36c12076dd6a8e5b9087f7f64ad370303d25ac7f492f
MD5 3a01938bea9b50552b4a1eaa08274026
BLAKE2b-256 f67fe522d1b33c3902b8facc2cc3e78bb027af401505bdbf3b2b82972bc90065

See more details on using hashes here.

File details

Details for the file evmotosentiment-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for evmotosentiment-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c8e2232e905a99bf97b2f949c73ff676612236e95865042ba472b591557bb4e1
MD5 6310a4afc11e3a5ed70dbd2ff15884e3
BLAKE2b-256 5ab9e508a94f9cb1ab525b4e8e0678af67b15d0bc44ed0146b2bde831f72dc30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page