Skip to main content

This package will allow an easier interaction with s3 buckets.

Project description

1.2

  • Features
    • Update functions documentations

Example of use:

Upload files

# imports
import s3simplemanager


s3 = S3SimpleManager(ssl_verification=False, bucket="s3_bucket_online", url="http://example.url.com/bucket", key_id="12345678", key_value="87654321")
s3.upload_files("example_path_local_file", "example_path_bucket_file")
for object in s3.list_files("example_path_bucket_file"):
    print(object)

List files when we have a know location

# imports
import s3simplemanager


s3 = S3SimpleManager(ssl_verification=False, bucket="s3_bucket_online", url="http://example.url.com/bucket", key_id="12345678", key_value="87654321")
files = s3.list_files("main_folder/sub_folder")
for file in files:
    print(file)

List files when we don't know the location

# imports
import s3simplemanager


s3 = S3SimpleManager(ssl_verification=False, bucket="s3_bucket_online", url="http://example.url.com/bucket", key_id="12345678", key_value="87654321")
files = s3.list_files()
for file in files:
    print(file)

Delete files

# imports
import s3simplemanager


s3 = S3SimpleManager(ssl_verification=False, bucket="s3_bucket_online", url="http://example.url.com/bucket", key_id="12345678", key_value="87654321")
s3.delete_files(["main_folder_one/sub_folder_one/file_one.txt", "main_folder_two/sub_folder_two/file_two.txt"])

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

s3simplemanager-1.2.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

s3simplemanager-1.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file s3simplemanager-1.2.tar.gz.

File metadata

  • Download URL: s3simplemanager-1.2.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for s3simplemanager-1.2.tar.gz
Algorithm Hash digest
SHA256 daa470973b6e7d50066e9f20addeaf2ad3cc829034517d6e3c91e4121cba3ac1
MD5 78af2753024522098d21144e25947f67
BLAKE2b-256 64da498aa1c4ba5c5b7ad29507f13ff42336c5860ff9e4b3f2f148df460e9e27

See more details on using hashes here.

File details

Details for the file s3simplemanager-1.2-py3-none-any.whl.

File metadata

  • Download URL: s3simplemanager-1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for s3simplemanager-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0d9d5a31833e7e555b1fbd142267d17b3a08a85edb47639734e083ed1083e21a
MD5 143d51ff634fecdf8e50a98f55467673
BLAKE2b-256 78647787b27bb4e44bc2c327edbccc20267af024e93362b578004dcad1e36deb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page