Skip to main content

Access Parquet files in S3 via S3 Select

Project description

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.

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

s3access-0.9.0.tar.gz (18.8 kB view hashes)

Uploaded Source

Built Distribution

s3access-0.9.0-py3-none-any.whl (22.1 kB view hashes)

Uploaded Python 3

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