How lianakim12/ds3022-events works
This repository is a set of laptop-based event-driven computing exercises, using boto3 against Moto or AWS. The workflow spans DynamoDB readings and commit data, Kinesis production and checkpointed consumption, then S3 file ingestion through Chalice/Lambda to DynamoDB and HTTP APIs. A separate Project 4 access-events application expands the file-ingestion pattern with validation, indexed event queries, and a kit for generating and uploading data. The shared AWS helper configures boto3 endpoints. Some session scripts and Project 4 kit files were not excerpted; their links are omitted or marked unverified rather than inferred as confirmed calls.
Main entry points: access-events/app.py Access events app · sensor_consumer.py Shard consumer · github_commits.py Commit importer · sensor-files/app.py Sensor file app
Components 27
AWS Access
- AWS helper
_aws.py
DynamoDB Session
- Commit importer
s1_dynamodb/github_commits.py - Sensor table tools
s1_dynamodb/sensor_table.py - Change watcher
s1_dynamodb/watch_changes.py - SensorReadings
- Commit tables
Kinesis Session
- IoT producer
s2_kinesis/iot_producer.py - Stream tools
s2_kinesis/stream.py - Kinesis stream
- Shard consumer
s2_kinesis/sensor_consumer.py - Shard checkpoints
Sensor File Pipeline
- File uploader
s3_lambda/drop_file.py - Local Lambda runner
s3_lambda/local_lambda.py - Sensor file app
s3_lambda/sensor-files/app.py - Reading validation
s3_lambda/sensor-files/chalicelib/validate.py - S3 bucket
- Readings and file log
Access Events
- Access data kit
project4/kit/doors.py - Project 4 helpers
project4/kit/_dp4.py - Access events app
project4/access-events/app.py - Event validation
project4/access-events/chalicelib/validate.py - Event key model
project4/access-events/chalicelib/model.py - Access and file log
- Project checker
project4/kit/check_project.py
Other components
- Learner
- GitHub API
- API client
Connections 33
- Learner → Sensor table tools: runs commands
README.md - Learner → Commit importer: runs commands
README.md - Learner → IoT producer: starts producer
README.md - Learner → Shard consumer: starts consumer
README.md - Learner → File uploader: uploads files
README.md - Commit importer → GitHub API: fetches commits
s1_dynamodb/github_commits.py - Commit importer → Commit tables: loads and queries
s1_dynamodb/github_commits.py - Sensor table tools → SensorReadings: reads and writes
s1_dynamodb/sensor_table.py - Change watcher → SensorReadings: watches changes
README.md - IoT producer → Kinesis stream: produces records
README.md - Stream tools → Kinesis stream: creates stream
README.md - Shard consumer → Kinesis stream: reads shards
s2_kinesis/sensor_consumer.py - Shard consumer → SensorReadings: writes readings
s2_kinesis/sensor_consumer.py - Shard consumer → Shard checkpoints: loads and saves
s2_kinesis/sensor_consumer.py - File uploader → S3 bucket: uploads objects
README.md - S3 bucket → Local Lambda runner: sends event
s3_lambda/local_lambda.py - Local Lambda runner → Sensor file app: invokes handler
s3_lambda/local_lambda.py - Sensor file app → Reading validation: validates readings
s3_lambda/sensor-files/app.py - Sensor file app → Readings and file log: writes and queries
s3_lambda/sensor-files/app.py - API client → Sensor file app: requests API
README.md - Access data kit → Project 4 helpers: uses helpers
project4/kit/doors.py - Project 4 helpers → S3 bucket: uploads files
- S3 bucket → Access events app: triggers handler
project4/access-events/app.py - Access events app → Event validation: validates events
project4/access-events/app.py - Access events app → Event key model: builds keys
project4/access-events/app.py - Access events app → Access and file log: writes and queries
project4/access-events/app.py - API client → Access events app: requests API
project4/access-events/app.py - Project checker → Access events app: checks API
project4/kit/check_project.py - Project checker → S3 bucket: uploads check files
project4/kit/check_project.py - Sensor table tools → AWS helper: uses boto3 setup
s1_dynamodb/sensor_table.py - Commit importer → AWS helper: uses boto3 setup
s1_dynamodb/github_commits.py - Shard consumer → AWS helper: uses boto3 setup
s2_kinesis/sensor_consumer.py - Local Lambda runner → AWS helper: uses boto3 setup
s3_lambda/local_lambda.py