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.1.tar.gz (4.2 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.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: weather_utils-2.0.1.tar.gz
  • Upload date:
  • Size: 4.2 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.1.tar.gz
Algorithm Hash digest
SHA256 7d30996a0409a5002ad5379fdd97be835ed35a499f889ccb3fdbdd0e6ad3054a
MD5 bae6de30d9c8cd62516c1c24bd4e2940
BLAKE2b-256 78d280b31e716cc0297f609fd9578186017a0449e5886fc550deb4af992415ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: weather_utils-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9d50185862ab3f612577519a02e09969739650f65213b03b6ed6ab7c98379b8
MD5 c19cd8f56ea3685319b866c2d5cb8ddb
BLAKE2b-256 1782de662583b8d7d3403185c2a7a241730c6560d826d155dd07e3661da086ec

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