Skip to main content

AWS Framework for python

Project description

Baram

Python based AWS Framework which leverages boto3 and awswrangler.

Baram means "wind" in Korean which makes cloud move conveniently.

Features

  • TBD
  • Convenient S3 Usage(KMS setting, delete directory ...)
  • Athena Iceberg
  • Athena Performance Management(cache, ctas_approach control)
  • Glue Job Management

Quick Start

> pip install awswrangler

For Beginner

S3 Usage

# import S3Manager
from baram.s3_manager import S3Manager

sm = S3Manager("my_bucket_name")

# Upload local file to S3
sm.upload_file(local_file_path="local_file_path",
               s3_file_path="s3_file_path")

# Emphasize Directory Deletion
sm.download_dir(s3_dir_path="s3_directory_path",
                local_dir_path="local_directory_path")

# Copy S3 object
sm.copy_object(from_key="from_s3_key",
               to_key="to_s3_key")

For Data Scientist

S3 Usage

# Read csv from s3

# EDA

# Merging Datasets from S3(https://aws-sdk-pandas.readthedocs.io/en/stable/tutorials/013%20-%20Merging%20Datasets%20on%20S3.html)

# write dataframe to s3

Athena Usage

# Read rows from Athena

# EDA

# write dataframe to Another Athena Table without schema input.

# Batching(Good for restricted memory environments), https://aws-sdk-pandas.readthedocs.io/en/stable/tutorials/006%20-%20Amazon%20Athena.html

# big table dump to s3

For Data Engineer

Manage S3

# check_s3_object_exists

# count_csv_row_count

# rename_file

Read The Docs

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

baram-0.4.6.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

baram-0.4.6-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file baram-0.4.6.tar.gz.

File metadata

  • Download URL: baram-0.4.6.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.9 Darwin/23.6.0

File hashes

Hashes for baram-0.4.6.tar.gz
Algorithm Hash digest
SHA256 ebb2e99947ff6b165757757d08357810590cd5dfb947a152fdad6f127f09ea61
MD5 b47f1c2e3709694ebfdd8652d14197a2
BLAKE2b-256 2a8548333d744596673862c7e563fc4b75f52113025a03b39579af13e44ba093

See more details on using hashes here.

File details

Details for the file baram-0.4.6-py3-none-any.whl.

File metadata

  • Download URL: baram-0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.9 Darwin/23.6.0

File hashes

Hashes for baram-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e870e4dc0f364e1cada89fdf38c76308b10e99e539639d9652aa0dfea3a70f1a
MD5 9dd6acaef27ca62672591b393f1ee60b
BLAKE2b-256 abaf9854fe5bbb1f690b466a48c6cab5aef8b0634e88c1d6f58ee274d479209d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page