Converting a perl script to python so it can run on Google Cloud.
The perl script is 770 lines long and handles the uploading of low res images from a a user\\\'s browser to a website, and the inserting of related info to a MySql database.
Here is a script summary:
----------------------------------------------------------------------------
# the script performs the following actions:
#
# 1. define perl modules to use
# 2. make database connection
# 3. declare variables
# 4. ensure correct working directory structure
# 5. get general form data from calling webpage
# 6. update sources table if any of the flags have been changed
# 7. read through each file form data (up to $max_num_files)
# 7.1 read form data for a file
# 7.2 update variables according to logical flags from form or specific source id\\\'s
# 7.3 update sources original format if needed
# 7.4 process each filename that has been passed in the form
# 7.4.1 parse filename and check for invalid characters
# 7.4.2 upload file to image server
# 7.4.3 get IPTC data if required
# 7.4.4 get values for uploaded image (height, width, size, format)
# 7.4.5 evaluate ratio for database and update keywords
# 7.4.6 remove extraneous text from title and keywords
# 7.4.7 check if image is already in the database
# 7.4.7.1 add image to database
# 7.4.7.2 OR update image in database
# 7.4.8 if in reply to a request, add to images_requests table
# 8. disconnect database
# 9. call script to create watermarks and thumbnails
# 10. display upload results as a webpage
----------------------------------------------------------------------------
If we are happy with the resulting work, there will be quite a few more perl to python script conversions required, and also likely to be ongoing new development work available as well.
Hi, I have a large experience with both Perl and Python, you can check my previous jobs. Also, have a good experience with Google App Engine, I can help you setting things up. Seems a really simple task, not much to add.
Hello! I have a Master's degree in Computer Science, as well as over four years of professional programming experience, much of which involved both Perl and Python. I will have no problem converting your script to Python. In addition, since I am a new freelancer, I am focusing on building my reputation; therefore, I am willing to work for less than I normally would.