Skip to main content

AWS helper utilities for hotel management systems

Project description

AWS Hotel Helpers

A Python library that simplifies AWS operations for hotel management systems. This package provides easy-to-use helpers for S3 file storage, SNS notifications, and other AWS services commonly used in hotel management applications.

Installation

Install the package using pip:

pip install aws-hotel-helpers

Quick Start

Here's a simple example of how to use the package:

from aws_hotel_helpers import AWSHelper

# Initialize the helper
aws_helper = AWSHelper(region_name='us-east-1')

# Upload an image to S3
try:
    image_url = aws_helper.upload_image(
        image_file,
        bucket_name='my-hotel-images'
    )
    print(f"Image uploaded successfully: {image_url}")
except Exception as e:
    print(f"Error uploading image: {str(e)}")

# Send a booking notification
booking_data = {
    'booking_id': '12345',
    'user_email': 'guest@example.com',
    'hotel_name': 'Luxury Hotel',
    'check_in': '2024-04-01',
    'check_out': '2024-04-05',
    'total_price': '500.00'
}

aws_helper.send_booking_notification(
    'arn:aws:sns:us-east-1:123456789012:BookingNotifications',
    booking_data
)

Features

  • Simple S3 file upload with automatic content type detection
  • SNS notification sending for booking confirmations
  • Automatic credential management
  • Comprehensive error handling

Documentation

For more detailed documentation and examples, visit our GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

aws-hotel-helpers-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

aws_hotel_helpers-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file aws-hotel-helpers-0.1.0.tar.gz.

File metadata

  • Download URL: aws-hotel-helpers-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.16

File hashes

Hashes for aws-hotel-helpers-0.1.0.tar.gz
Algorithm Hash digest
SHA256 250e280e149ed0a494b9dcaeaa1ecdd8cb112f82f830a325233f10cf40b9ccb3
MD5 dacb6267a7ec315937c087e50885ebd7
BLAKE2b-256 85aca8dcb046ce854f08be84ede4911a81db64c92a41c4f275e99958966305c4

See more details on using hashes here.

File details

Details for the file aws_hotel_helpers-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_hotel_helpers-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73e29bb15c83ef0e755956a25e01b269e7c8f17f5936eec359d0432f1f872e71
MD5 e06403573d753de766aade508fcb417f
BLAKE2b-256 17aa1894256645e2ab95ef293bd8cf24ee1bbefec0665dc0f8425ed01a0a13df

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