scravy / s3access

Access Parquet files in S3 using S3 Select

Home Page:https://pypi.org/project/s3access/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API

S3Access: s3 = S3Access()

s3.select

Exposes S3 Select in a usable manner.

s3.ls

s3.ls_path

S3Path: p = S3Path("s3://bucket/key/part=value")

p.with_params(foo=7, bar=29)

πŸ‘‰ s3://other/key/part=value/foo=7/bar=29

Appends or replaces the key/value pairs in order as given.

p.with_params(foo=7, part='else', bar=29)

πŸ‘‰ s3://other/key/part=else/foo=7/bar=29

If a partition is already mentioned in the path, it is replaced with the value.

p.with_bucket('other')

πŸ‘‰ s3://other/key/part=value

Replaces the bucket name of the S3 url.

p.with_key('path')

πŸ‘‰ s3://bucket/path

Replaces the prefix/key/path component of this S3 url.

About

Access Parquet files in S3 using S3 Select

https://pypi.org/project/s3access/

License:MIT License


Languages

Language:Python 99.2%Language:Makefile 0.8%