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.2.0.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.

aws_hotel_helpers-0.2.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws-hotel-helpers-0.2.0.tar.gz
  • Upload date:
  • Size: 4.2 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.2.0.tar.gz
Algorithm Hash digest
SHA256 58b8dbd1e33aa621f4f1d445e6b832e27f6b0ccfd3d3cfd9e673721c6921b550
MD5 8d310f2b8ab1cea936141a00c4e8c55b
BLAKE2b-256 2ca81e955fff62eed71afaf5c18b7576733f1e3ec2329e5f3d4a1fb9d32a7fc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_hotel_helpers-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3bcf74eed8a048a4470c8c6afeaf612bb78a5767cb1ae22fa3fad86bad578583
MD5 2a22faf785383a942ce783fe24c80b48
BLAKE2b-256 115ccaf6805edb85f884d1e15dd078c255ff3b716858a493ebbbd50878a8f7ae

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