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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for evmotosentiment-0.2.0.tar.gz
Algorithm Hash digest
SHA256 59c1ec6a0288e9decc69ebb5f6ec1c2353b399ad56e2e79f7f66edba5bd38b65
MD5 1fd0280f5c2a6a485f6e6d001ddbdfbd
BLAKE2b-256 fe86f648d84c64465a88a07acd8c9090f5072c307052755beaadc5d2ae494a7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for evmotosentiment-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e36446ed9f5e50e3958857e47a601c86807766944b5055986d4894f0f465b2a
MD5 053376eba4adb3fcdd5400a07304cf79
BLAKE2b-256 fa6e677e4253165b3e18ead4832e7eccf3d40010e81f5c4409f4cc37453e0a2c

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