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.5.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.5-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: evmotosentiment-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 5cde4d391ccfd059dbaf73e317a71fc42f23f2df52a57674cbe3f897ac7e4292
MD5 a09764305ee19144e90dd08909d497fc
BLAKE2b-256 1a03ee1baa9b5a72e884b8a4ee057cd98b62ce08033a0c47075d063f63bd971e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for evmotosentiment-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 90aba61cea1e2241647b66b950b0a6221a411c02d29149348a105aad0d940e28
MD5 e2682bf918a1d2017771c44c0aaed11a
BLAKE2b-256 3989a0211bd56a2b89810502539ccdde936e83f98dbc138d19c083924edf3d66

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