Skip to main content

Library and utilities for interfacing wtih S3

Project description

S3Lib

Python library and collection of command line programs for interfacing with S3. Uses buffering and fixed memory usage, where possible, so that operations on large buckets and objects are safe and easy.

Installation

pip install s3lib

Configuration

Reads configuration file at ~/.s3

Config file contents:

<AWS ACCESS TOKEN>
<AWS SECRET KEY>

Utilities

s3ls
usage: Program lists all the objects in an s3 bucket. Works on really big buckets
       [-h] [--host HOST] [--port PORT] [--output OUTPUT] [--creds CREDS]
       [--mark MARK] [--prefix PREFIX] [--batch BATCH]
       [bucket]
s3get
usage: Program lists all the objects in an s3 bucket. Works on really big buckets
       [-h] [--host HOST] [--port PORT] [--output OUTPUT] [--creds CREDS]
       [--mark MARK] [--prefix PREFIX] [--batch BATCH]
       bucket key
s3cp
usage: Program copies an object from one location to another
       [-h] [--host HOST] [--port PORT] [--creds CREDS]
       [--header [HEADERS [HEADERS ...]]]
       src_bucket src_object dst_bucket dst_object
s3head
usage: Program lists all the objects in an s3 bucket. Works on really big buckets
       [-h] [--host HOST] [--port PORT] [--json] [--creds CREDS]
       bucket objects [objects ...]
s3put
usage: Program puts an object into s3 
       [-h] [--host HOST] [--port PORT]
       [--creds CREDS]
       [--header [HEADERS [HEADERS ...]]]
       bucket object file
s3rm
usage: Program deletes s3 keys.
       [-h] [--host HOST] [--port PORT]
       [--creds CREDS] [-v] [--batch BATCH]
       bucket objects [objects ...]
s3sign
usage: Sign an S3 form.
       [-h] [--creds CREDS] file

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

S3Lib-1.4.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

S3Lib-1.4.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file S3Lib-1.4.0.tar.gz.

File metadata

  • Download URL: S3Lib-1.4.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.3

File hashes

Hashes for S3Lib-1.4.0.tar.gz
Algorithm Hash digest
SHA256 4a56f1063af0f5abf20d6bb9e07cf5a86449a4bc96e1919d901b6d36f79e4d4d
MD5 d43b0f5d57ea830e531f6532e02fcc57
BLAKE2b-256 6d98ba59a70419cddfc514568307e03af5a84af9250a14c3a7d01e0fa4a4dea9

See more details on using hashes here.

File details

Details for the file S3Lib-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: S3Lib-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.3

File hashes

Hashes for S3Lib-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f49391b6635829c42793f1747ced51eddc755c737e2869ad5a5e0b56e0148fb1
MD5 27dc2a400bd152e8edcb7d01988fb33a
BLAKE2b-256 c759c05e0fa749c73015729dd8e1e98968d2540d8ff306ae858259e92984cb6d

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