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.3.0.tar.gz (5.0 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.3.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws-hotel-helpers-0.3.0.tar.gz
  • Upload date:
  • Size: 5.0 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.3.0.tar.gz
Algorithm Hash digest
SHA256 dd6e03f0a5343651fd875d54e61d1dd99049247509deb8b73b5eb24f62d2cf0e
MD5 91db3de6087335dc8614fa7fd9bd4280
BLAKE2b-256 e4d0c6f419a7acdbf5cb5738b2c6f7aebd5ae9c923477639a14fcc6cb172c03e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_hotel_helpers-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f93bc9e429f7c6632e98febeb4e0c29560468fda34c63b19ca0771d299ae4a8
MD5 0153900e928d86360ee008eaba40ff18
BLAKE2b-256 f6dfc91cce62bf8ff91174a8bcd06fcd9dfa7bad56decd2e85ded221bfb6ea4d

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