Python library for working with Amazon Web Services such as Redshift and S3
Project description
Amazonian
Amazonian is a Python library for interacting easily with Amazon S3 and Redshift.
Installation
pip install amazonian
Usage
S3
from amazonian import S3
s3 = S3(key=None, secret=None, iam_role=None, root='s3://', spark=spark)
# get list of files:
s3.ls(path='some_path')
# get a tree representation of folder structure
s3.tree(path='some_path')
# get file size:
s3.get_size(path='some_file')
# save a Spark DataFrame as a Parquet
s3.save_parquet(data=my_data, path='some_path/name.parquet')
# load a Parquet into a Spark DataFrame
my_data = s3.load_parquet(path='some_path/name.parquet')
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
amazonian-2021.6.15.2.tar.gz
(13.0 kB
view hashes)
Built Distribution
Close
Hashes for amazonian-2021.6.15.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6aed47d684668bda474531940dba10230e5318c2b1dc8e3eb0d147d77b2f765 |
|
MD5 | 4725141fe9368f2bf21a26443d84b3dd |
|
BLAKE2b-256 | a01b946134c916f4802ae3dc17d3287e8bf62eeb625455f3fd255aa19f9f989c |