RandoNandoz / tacostats

Periodically grab comments from the r/neoliberal DT and gather some basic statistics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tacostats

Periodically grab comments from the r/neoliberal DT and gather some basic statistics

Requirements

  • Python 3.8+
  • MySQL Development libraries
  • GCC and friends

Development

This was developed on Windows and designed to run on Amazon Linux. It should be completely cross-platform.

yum install -y make glibc-devel gcc patch mysql-devel
pip install wheel nltk  # installing these first will make the next install go faster
pip install -r requirements.txt

Run a Lambda Function Locally

docker build -t 676444348764.dkr.ecr.us-west-2.amazonaws.com/tacostats -f .\lambda.Dockerfile .   
& 'C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd' local invoke -t .\lambda.template.yaml StatsRecap

Deploy Lambda Functions

bump2version [major|minor|patch]
.\deploy.ps1

About

Periodically grab comments from the r/neoliberal DT and gather some basic statistics


Languages

Language:Python 85.3%Language:Jinja 13.0%Language:PowerShell 0.8%Language:Dockerfile 0.7%Language:Shell 0.2%