This project means to be an AWS library, providing access to several AWS objects. For now, only the upload function is provided.
In order to setup the virtual environment, we can follow the next statements.
For pipenv installation:
$> pip install --upgrade pip && pip install pipenv
Then, you have to install the required packages.
$> pipenv install
To activate the virtual environment, exceute the following command:
$> pipenv shell
A main.py file is provided in the root folder. The main program defines the following parameters by default:
- -v / --verbose [optional]: flag to let know the application to show debug messages. By default, logging is configured in the INFO level. So, debug messages won't be shown.
- -c / --console-logging [optional]: flag to let know the application to show logging messages in to the standard output. By default, logging is performed to a log file.
- -d / --directory [optional]: Folder with files to upload.
- -f / --file [optional]: File to upload.
- -r / --remote [optional]: Remote folder to where upload the file or files.
- -b / --bucket: The S3 bucket name.
NOTA: At least a directory or a file has to be provided.
AWS id and secret token pair values are stored in your local machine. Follow this link for more information on AWS credentials
$> python3 upload.py -b my-bucket -f my-file.txt
$> python3 upload.py -b my-bucket -d my-folder
$> python3 upload.py -b my-bucket -f my-file.txt -r folder1/subfolder3
Say hello!