Skip to main content

Autocomplete s3 URIs in IPython.

Project description

s3ac

A small IPython extension that auto-completes S3 URIS.

To install: pip install s3ac

$ ipython
Python 3.9.13 (main, Jun  9 2022, 00:00:00) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.4.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: %load_ext s3ac

In [2]: from s3ac import s3

In [3]: s3("<hit tab>

To use, start an expression with s3(", hit tab, see buckets. After selecting a bucket and hitting tab, s3 ("my_bucket/ will complete prefixes up to the next slash and objects with that prefix.

For example, tabbing after s3("my_bucket1/d might suggest:

my_bucket1/diary.txt
my_bucket1/dir1/
my_bucket1/dir2/
my_bucket1/dungeons_and_dragons.csv

The s3 function will return a URI (for example, "s3://my_bucket/dir1/dir2/file.txt").

Depends only on boto3 and requires an AWS credentials file in ~/.aws.

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

s3ac-0.0.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

s3ac-0.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file s3ac-0.0.3.tar.gz.

File metadata

  • Download URL: s3ac-0.0.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for s3ac-0.0.3.tar.gz
Algorithm Hash digest
SHA256 20269ce7f24f10916190f6d030bac7e08038ef6cad6f2ad5016f1bf3c5c5b0dd
MD5 9101b6b8493342295a6c9b6281866825
BLAKE2b-256 6342c576e16c6b0e488528f664fbe3b7d9dc618a751c03507768713c0dacb20b

See more details on using hashes here.

File details

Details for the file s3ac-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: s3ac-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for s3ac-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d69537a8000a24a5ae23857ccd26375cb6070e5f11c03a5aa17af721c4ab8388
MD5 833487b7069ab0b2b97fbba2fff36839
BLAKE2b-256 16dce2708c608e33bf2768b341f3b2068e7477e94ea167c80662347f5aca633b

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