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.6.tar.gz (4.9 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.6-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for evmotosentiment-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d413f2c25f0683cae72d1372e7d6e29a42727008275f81e54da790a53756e7cb
MD5 6e27753ddd648d6fbc1bfb995a84754a
BLAKE2b-256 061fa5134a815254bceabd642dfc944b249d55ffd5b16fe97e24d26c4cdc54ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for evmotosentiment-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5992005940b6aa16c22e2dbe97b8a93c6c97c6663e83bb006192d0b5ccc975f5
MD5 82f3dea799630f7dd6f0e99197a3b00c
BLAKE2b-256 eaa32ffc051783983f703fb3e2ef1052745e5c9dcab94f2c1ac456b924025a26

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