Skip to main content

Package short description.

Project description

Documentation Status https://travis-ci.org/MacHu-GWU/s3iotools-project.svg?branch=master https://codecov.io/gh/MacHu-GWU/s3iotools-project/branch/master/graph/badge.svg https://img.shields.io/pypi/v/s3iotools.svg https://img.shields.io/pypi/l/s3iotools.svg https://img.shields.io/pypi/pyversions/s3iotools.svg https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social
https://img.shields.io/badge/Link-Document-blue.svg https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Source_Code-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to s3iotools Documentation

Usage

import boto3
import pandas as pd
from s3iotools.io.dataframe import S3Dataframe

session = boto3.Session(profile_name="xxx")
s3 = session.resource("s3")
bucket_name = "my-bucket"
s3df = S3Dataframe(s3_resource=s3, bucket_name=bucket_name)
s3df.df = pd.DataFrame(...)

s3df.to_csv(key="data.csv")
s3df.to_csv(key="data.csv.gz", gzip_compressed=True)

s3df_new = S3Dataframe(s3_resource=s3, bucket_name=bucket_name, key="data.csv")
s3df_new.read_csv()
s3df_new.df # access data

s3df_new = S3Dataframe(s3_resource=s3, bucket_name=bucket_name, key="data.csv.gz")
s3df_new.read_csv(gzip_compressed=True)
s3df_new.df # access data

json IO is similar.

Install

s3iotools is released on PyPI, so all you need is:

$ pip install s3iotools

To upgrade to latest version:

$ pip install --upgrade s3iotools

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

s3iotools-0.0.1.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

s3iotools-0.0.1-py2.py3-none-any.whl (38.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file s3iotools-0.0.1.tar.gz.

File metadata

  • Download URL: s3iotools-0.0.1.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.13

File hashes

Hashes for s3iotools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ce75afdd00819df040efe6b3c9be9c5595f337512bcdf0870abb5b0909a521d1
MD5 eb7130da64736d351d161649e6e5fe83
BLAKE2b-256 46ca0de3d18f166e94300ac0305f5361fc3f30e7749808a894184e3ff0f66e8c

See more details on using hashes here.

File details

Details for the file s3iotools-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: s3iotools-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.13

File hashes

Hashes for s3iotools-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0af60c09d406fbe9dd881226ddc4323939ec3ab64d9b1dd863ea3f0105a35894
MD5 68d6f8ab16ed5123db153fe83797c0e2
BLAKE2b-256 d0c5b4bc25e48e7c73deeaff7f48e114b8c5a31605c56722bba013e2f0fe3d6e

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