π 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. π