uploader python module uploads files from a directory to AWS S3 and Google Cloud Storage (GCS). It supports a variety of file types and uses a configuration file for easy customization.
You can install this module using pip:
pip install .from uploader import FileUploader uploader = FileUploader('config.ini') # or 'config.ini', 'config.json', or a dictionary directory_to_upload = '/path/to/your/directory' uploader.upload_files(directory_to_upload)[AWS] s3_bucket = sacumen_bucket_name s3_access_key = sacumen_s3_access_key s3_secret_key = sacumen_s3_secret_key [GCS] gcs_bucket = sacumen_project_id gcs_credentials = sacumen_gcs_credentials_json_file_path [FileTypes] s3_file_types = jpg,png,svg,webp,mp3,mp4,mpeg4,wmv,3gp,webm gcs_file_types = doc,docx,csv,pdfpytestpytest --cov=uploader # With html report pytest --cov=. --cov-report html