https://github.com/arranf/dailypokedex
A AWS Lambda function to send a 'random' Pokedex entry once per day
https://github.com/arranf/dailypokedex
lambda pokedex pokemon python python3
Last synced: 10 days ago
JSON representation
A AWS Lambda function to send a 'random' Pokedex entry once per day
- Host: GitHub
- URL: https://github.com/arranf/dailypokedex
- Owner: arranf
- Created: 2019-02-21T14:47:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:37:49.000Z (over 3 years ago)
- Last Synced: 2025-12-26T18:47:46.043Z (5 months ago)
- Topics: lambda, pokedex, pokemon, python, python3
- Language: Python
- Size: 5.54 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Daily Pokedex Entry
This is the code for a basic AWS Lambda function written in Python (3.7) which sends a Pokedex entry via SMS and email every day.
## Setup
1. Create a virtual environment to store your Python packages.
```bash
python3 -m v-env
source v-env/bin/activate
pip install
```
2. Create a `.env` file to store your configuration. `cp .env.example .env`
3. Edit the contents of `.env` to include your [Twilio](https://twilio.com) SID, auth token, and from number. Also include your SendGrid API key and the email address and phone number that the Pokedex entry should be sent to.
## Deployment Details
The script must be deployed as a [Python deployment package](https://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html#python-package-dependencies). To do so, whilst in the virtual environment run `package.sh`.