Perl To Python

This project received 9 bids from talented freelancers with an average bid price of ₹5595 INR.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
₹1000 - ₹2000 INR
Total Bids
Project Description

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
# add image to database
# 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.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online