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
Release history Release notifications | RSS feed
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.9.tar.gz
(26.1 kB
view details)
Built Distribution
baram-0.4.9-py3-none-any.whl
(31.5 kB
view details)
File details
Details for the file baram-0.4.9.tar.gz
.
File metadata
- Download URL: baram-0.4.9.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.9 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a9a387c38d3badd504b52dd92dfc00abe1a8abb977c2a5e63d1d60ddc648404 |
|
MD5 | 3538383a248c433dfe0513257781c7ba |
|
BLAKE2b-256 | 7e1553dbddba9b66e1492f24e3442209d97bacba24774856851614a5fb0868ea |
File details
Details for the file baram-0.4.9-py3-none-any.whl
.
File metadata
- Download URL: baram-0.4.9-py3-none-any.whl
- Upload date:
- Size: 31.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 765f22834dc3e5cf8f6934e26e8a0f3b3f040d4e14666ada8ad54a2b4d0bdd25 |
|
MD5 | 8ee593d93b8dd30ec6ec7d0e6159c439 |
|
BLAKE2b-256 | 00ef8447e13feec16fb11c14117d07ac9bdd8bf81dbf865b175555732efac158 |