Perl To Python

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.

Skills: Perl, Python

See more: perl script, website development in perl, perl get, define data structure in c, define data structure, data structure define, python logical and, python: get data, python perl, parse cloud, update data python script, python read, google form upload file, display database table python, res image low, python parse text, python webpage, python parse directory, python modules development, parse data file python, python display data, python create file, python file create, mysql update values, parse lines file

About the Employer:
( 45 reviews ) Kolkata, India

Project ID: #4853223

8 freelancers are bidding on average ₹5462 for this job


Please check PM for more details.

₹3000 INR in 3 days
(8 Reviews)

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 ad More

₹5555 INR in 5 days
(9 Reviews)

Can help... I am an expert...

₹20000 INR in 15 days
(2 Reviews)

i can do this

₹5555 INR in 3 days
(0 Reviews)

hello i'd like to apply for this job thank you regards

₹1750 INR in 3 days
(0 Reviews)

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 Pyth More

₹6666 INR in 7 days
(0 Reviews)

I can do it.. Try me

₹2250 INR in 10 days
(0 Reviews)

I can do it. In recent projects I had to work very closely with pictures.

₹2250 INR in 2 days
(0 Reviews)

I can convert script

₹3333 INR in 3 days
(0 Reviews)