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.2.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distributions

S3Lib-1.2.0-py3.7.egg (17.5 kB view details)

Uploaded Source

S3Lib-1.2.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: S3Lib-1.2.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3

File hashes

Hashes for S3Lib-1.2.0.tar.gz
Algorithm Hash digest
SHA256 1fbb6452631785c4bd5fc7190581b36790b60fb3237ed1a3735d4980952b6726
MD5 11beac583b92103c3ca054956771776b
BLAKE2b-256 48be3674e78e511e654d0dc2532287f42f1b371cf031af0ac9caf35b0022bd17

See more details on using hashes here.

File details

Details for the file S3Lib-1.2.0-py3.7.egg.

File metadata

  • Download URL: S3Lib-1.2.0-py3.7.egg
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3

File hashes

Hashes for S3Lib-1.2.0-py3.7.egg
Algorithm Hash digest
SHA256 704b4fbf1c3d0e1835d06499c57fa79755ae9df883dcc29c5376dfaaff3a9606
MD5 d8314d63db78e3e1bb39878115947163
BLAKE2b-256 2ad56691eda7e5912dc5552ebd9bcd87e1c9dc157a8b18682b7cae09ca709818

See more details on using hashes here.

File details

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

File metadata

  • Download URL: S3Lib-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3

File hashes

Hashes for S3Lib-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5df6124a2ed859283fe0a95d227834c5230aaa85d545ce80b7f4110463a63ff
MD5 c513865690439595fcb440b2ef9bb027
BLAKE2b-256 d517eefb9a2c8cdc2daf949eaad98da564274472d6e43c2e5c2fbabe6262a1fd

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