Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@ap-dev-github ap-dev-github released this 10 Mar 16:01
· 1 commit to main since this release
68c9be6

πŸš€ Sentiment Analyzer API – Release Note

πŸ“ Overview

v1.0.0 marks the first stable release of the Sentiment Analyzer API.

The Sentiment Analyzer API efficiently processes text input via NLTK’s SentimentIntensityAnalyzer, extracting positive, negative, and neutral scores in real-time. It determines the dominant sentiment and classifies text accordingly, making it ideal for automated feedback analysis.

Built with Flask, AWS Lambda, and Serverless Framework, this API is highly scalable and cost-efficient, utilizing AWS API Gateway for auto-scaling while keeping operational costs near zero when idle.

🎯 Key Features

βœ… Real-Time Sentiment Analysis – Classifies text as Positive, Negative, or Neutral
βœ… Fully Serverless – Automatically scales with demand, reducing costs by up to 98%
βœ… CI/CD Automation – GitHub Actions handle automated testing, deployment, and security checks
βœ… Optimized for Performance – Cold start prevention & dependency pruning for faster execution

πŸ“‘ API Endpoint

1. Analyze Sentiment

GET /analyze/<text>

Response Example:

{
  "positive": 0.8,
  "neutral": 0.1,
  "negative": 0.1,
  "dominant_sentiment": "Positive"
}

βš™οΈ Deployment & Security
πŸ”Ή CI/CD with GitHub Actions – Auto-deploys updates to AWS Lambda
πŸ”Ή Security Checks – Runs pytest, flake8, mypy, isort, bandit before deployment
πŸ”Ή Cost Optimization – Scales down to zero cost for up to 1M requests/month

πŸ— Built With
Flask | AWS Lambda | Serverless Framework
GitHub Actions | NLTK | Python

πŸ“§ Developer and Maintainer

Ayush Pandey

πŸ“§ [email protected] | πŸ”— LinkedIn

πŸ”₯ A lightweight, scalable, and serverless sentiment analysis APIβ€”optimized for cost, speed, and real-world applications. πŸš€