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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws-hotel-helpers-0.3.1.tar.gz
  • Upload date:
  • Size: 5.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.3.1.tar.gz
Algorithm Hash digest
SHA256 2e124fddb3c473504968553769883f86ed931c43b6d0dad2f056aab24702487e
MD5 d39ba6d010f612947d60838757e7faa2
BLAKE2b-256 1bd6046c46a4cb0c15b0064bcca3ae152032e5720dfa9f360ed47ade315d1d44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_hotel_helpers-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e5c869d8a9c05e5b2184ac8be61352dfca91229b1b6a32c482c31d6c712239d
MD5 4dd22d370986cdca165addff80c57a24
BLAKE2b-256 7f385203c105afedaad720431ea3aa2729d6ce15de87a161f3c4fa2c0b997a76

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