Skip to main content

A utility package for weather data handling with AWS services

Project description

Environment Variables for weather_utils Library

The weather_utils library relies on environment variables for configuration. Before using the library, ensure the required environment variables are properly set.

Required Environment Variables:

  • DYNAMODB_TABLE_NAME → The name of the DynamoDB table where weather data is stored.
  • SNS_TOPIC_ARN → The ARN of the SNS topic used for sending weather alerts.

Setting Environment Variables:

For Linux/macOS, run:
export DYNAMODB_TABLE_NAME="WeatherDataTable"
export SNS_TOPIC_ARN="arn:aws:sns:us-east-1:123456789012:WeatherAlerts"

For Windows PowerShell, run:
$env:DYNAMODB_TABLE_NAME="WeatherDataTable"
$env:SNS_TOPIC_ARN="arn:aws:sns:us-east-1:123456789012:WeatherAlerts"

For AWS Lambda, set these variables in the Lambda function environment variables section.

Usage in weather_utils:

The library reads these environment variables dynamically:

import os
DYNAMODB_TABLE_NAME = os.environ.get("DYNAMODB_TABLE_NAME", "DefaultWeatherTable")
SNS_TOPIC_ARN = os.environ.get("SNS_TOPIC_ARN", "default_sns_topic")

Ensure these variables are configured before using the library in your application.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weather_utils-2.0.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weather_utils-2.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file weather_utils-2.0.0.tar.gz.

File metadata

  • Download URL: weather_utils-2.0.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for weather_utils-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7e0fe416dce16494bf79098f2a5c9b29c0c25cafae7a3576912a4932f1139e03
MD5 10b59f309e64a8fca6721f0a7b2395da
BLAKE2b-256 7a8d082dc7590151dd1f5cffd55428c2bc151b39e3a0771a8a2e476b6e74ff46

See more details on using hashes here.

File details

Details for the file weather_utils-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: weather_utils-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for weather_utils-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cd32c9249d16dd027a27a2758cecf49155ad061580c360ee5bcf9c1ac2c6364
MD5 a3f5147355bb33199ac66d50a1bca9c4
BLAKE2b-256 12da10440b47bddc7691277fce18e832b3c68aa9fc503c447b913e6bfefe5d0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page