Registry / devops / fantasy-hockey-notifier-cdk

fantasy-hockey-notifier-cdk

JSON →
library2.0.68pypypi✓ verified 85d ago

AWS CDK construct that monitors an ESPN Fantasy Hockey league and sends notifications (email/SMS) for adds, drops, and trades. Version 2.0.68, maintained by ftalburt. Requires Python ~=3.10 and uses the AWS CDK.

pip install fantasy-hockey-notifier-cdk
INSTALL
IMPORT
SIG · FANTASY-HOCKEY-NOT
F
fantasy-hockey-notifier-cdk
devopspythonv2.0.68
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FantasyHockeyNotifier
from fantasy_hockey_notifier_cdk import FantasyHockeyNotifier
from fantasy-hockey-notifier-cdk import FantasyHockeyNotifier
Hyphens not allowed in Python imports; use underscores.
FantasyHockeyNotifierProps
from fantasy_hockey_notifier_cdk import FantasyHockeyNotifierProps
Props interface for configuring the construct.

Minimal CDK app that deploys the notifier construct. Set environment variables LEAGUE_ID, ESPN_S2, SWID before deploying.

from aws_cdk import App, Stack from fantasy_hockey_notifier_cdk import FantasyHockeyNotifier, FantasyHockeyNotifierProps import os app = App() stack = Stack(app, 'FantasyHockeyNotifierStack') # Configuration - use environment variables or Secrets Manager props = FantasyHockeyNotifierProps( league_id=int(os.environ.get('LEAGUE_ID', '0')), espn_s2=os.environ.get('ESPN_S2', ''), swid=os.environ.get('SWID', ''), email_notification='user@example.com', sms_notification='+1234567890', ) FantasyHockeyNotifier(stack, 'FantasyHockeyNotifier', props) app.synth()
Debug
Known issues
breakingIn version 2.x, the constructor argument 'email_notification' changed from a list to a string. Use a single string, not a list.
fix
Pass email_notification as a string, e.g., email_notification='user@example.com' instead of ['user@example.com'].
affects: >=2.0.0
breakingIn version 2.x, the props interface 'FantasyHockeyNotifierProps' now requires 'espn_s2' and 'swid' directly instead of a nested 'espn' object.
fix
Set 'espn_s2' and 'swid' as top-level properties, not nested under 'espn'.
affects: >=2.0.0
gotchaThe construct creates AWS resources (Lambda, SNS) that may incur costs. Always review the generated CloudFormation template before deploying.
fix
Use `cdk synth` to inspect resources, and set a budget alarm if needed.
affects: all
deprecatedPython 3.10 is the minimum required. Python 3.9 or earlier will not work.
fix
Ensure your CDK environment uses Python 3.10+ (recommend 3.11 or 3.12).
affects: >=2.0.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'fantasy_hockey_notifier_cdk'
The package is installed with hyphens but imported with underscores; common mistake.
fix
Use correct import: from fantasy_hockey_notifier_cdk import FantasyHockeyNotifier
TypeError: __init__() got an unexpected keyword argument 'espn'
Version 2.x changed the props structure; 'espn' nested object is no longer accepted.
fix
Pass espn_s2 and swid directly as top-level properties.
ValueError: League ID must be an integer
LEAGUE_ID environment variable is missing or not a valid integer.
fix
Set LEAGUE_ID to the numeric league ID from ESPN. Example: export LEAGUE_ID=123456
Upgrade
Version history
2.0.68latest on PyPI · released May 19, 2026
Audit
Dependencies
aws-cdk-librequiredCore CDK library required for constructs
constructsrequiredBase constructs library
boto3requiredAWS SDK for sending notifications via SNS
Agent activity
7 hits · last 30 days
node
6
Resources
fantasy-hockey-notifier-cdk — pip install fantasy-hockey-notifier-cdk · libregistry