Skip to main content

Custom OOP wrappers for AWS services used in the SplitSmart application.

Project description

SplitSmart AWS Library

This is a custom OOP wrapper for AWS services, extracted from the SplitSmart project. It simplifies interactions with S3, Textract, SNS, Lambda, DynamoDB, and CloudWatch.

Installation

pip install splitsmart-aws

Usage

S3 Service

from splitsmart_aws import S3Service

s3 = S3Service(
    region_name='us-east-1',
    access_key='YOUR_KEY',
    secret_key='YOUR_SECRET',
    bucket_name='your-bucket'
)

result = s3.upload_receipt(open('receipt.jpg', 'rb'), user_id=1, group_id=10)
print(result['url'])

Textract OCR

from splitsmart_aws import TextractService

textract = TextractService(region_name='us-east-1', ...)
ocr_data = textract.extract_receipt('path/to/receipt.jpg')
print(ocr_data['data']['total_amount'])

CloudWatch Logging

from splitsmart_aws import CloudWatchLogger

cw = CloudWatchLogger(log_group='/myapp/logs', log_stream='server-1')
cw.info('user_login', user='john_doe', details={'ip': '1.2.3.4'})

License

MIT

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

splitsmart_aws-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

splitsmart_aws-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file splitsmart_aws-0.1.0.tar.gz.

File metadata

  • Download URL: splitsmart_aws-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for splitsmart_aws-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a87e73abe1b8048f85074357d653dc3ad004cf91b42c73b32bac707eb3f0d6a7
MD5 8b25f086fe34d84897538b2b34dd0236
BLAKE2b-256 e811f43a5d222c28c23e574a76783d4f3d8f489bb889f2407a1125d0ee4f487c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: splitsmart_aws-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for splitsmart_aws-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c9a31a92c8be2aa6021bdf0cda228320eb6a403b02db8d2dd0d3376e1d95ecd
MD5 bbbedde6d5795ae5ea4e5c0d07d9bb1c
BLAKE2b-256 382c608e17b7d5b821f41b6e675e9f131acebf9ea66a7ceca17a2b351a075538

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