Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Aaron Christensen Newsgroups: comp.lang.python Subject: Python and multiple user access via super cool fancy website Date: Thu, 24 Dec 2015 14:39:41 -0500 Lines: 37 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de tSmhP+xrJo38Ne7HDP31sQOLE2nA9B7WhFZdpvwrlO8A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'mysql.': 0.09; 'received:209.85.218': 0.10; 'python': 0.10; 'python.': 0.11; 'output': 0.13; 'question.': 0.13; 'do,': 0.15; 'backend': 0.15; '(via': 0.16; 'fancy': 0.16; 'language)': 0.16; 'magic': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'script?': 0.16; 'scripts.': 0.16; 'subject:access': 0.16; 'subject:user': 0.16; '\xc2\xa0i': 0.16; 'case.': 0.18; 'programmer': 0.18; 'input': 0.18; 'all,': 0.20; 'handles': 0.20; 'mysql,': 0.22; 'sends': 0.22; '(or': 0.23; 'transfers': 0.23; 'tried': 0.24; 'requests': 0.25; 'script': 0.25; "i've": 0.25; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; 'pieces': 0.27; 'correct': 0.28; 'this.': 0.28; '50,': 0.29; 'question:': 0.29; 'subject:website': 0.29; 'handled': 0.29; 'code': 0.30; 'venue': 0.30; "i'd": 0.31; 'getting': 0.33; 'point': 0.33; 'curious': 0.33; 'except': 0.34; 'this?': 0.34; 'received:google.com': 0.35; 'question,': 0.35; 'something': 0.35; "isn't": 0.35; 'supports': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'skip:& 10': 0.37; 'say': 0.37; 'received:209': 0.38; 'thank': 0.38; 'files': 0.38; 'data': 0.39; 'sure': 0.39; 'does': 0.39; 'submit': 0.39; 'to:addr:python.org': 0.40; 'called': 0.40; 'some': 0.40; 'waiting': 0.60; 'your': 0.60; 'hope': 0.61; 'skip:u 10': 0.61; 'personal': 0.63; 'information': 0.63; 'interest': 0.64; 'developed': 0.66; '20,': 0.66; 'webpage': 0.66; 'manner': 0.69; 'incredible': 0.72; 'lack': 0.76; 'subject:via': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=QFfx+47O1a36VhkhUD5VPgNe3ln2W3vzz6WNnBNcG5E=; b=EbCt35eokrZEJmRRAvBaNu/YecDTWQEVGoCdg1BJXvcLKhIz3BVTKmYArKYkVyQaQf bLUPmL6EUuG0xS7AyNbgrXxucZz19uqjfmLqBcIj9ralJbUtZA0l+IKX3ZeUlm+69w7o tL0zqsSRJb5obyXUy9Z9ASSwbi00IZbWYy30n1fHpvYX8Ks2UVSnJGcPOSicHLHpOJee 0PxtTP3yd6N+sk58GRTvmQW/DDXthH9V15OUfdD9bJryJbpJ6emSQyqCusRwrvIdTM1L K8Z2SYp9puQTYeFJoDL3JTpZc9F3Y+aClaqgj1eUdCBBCgRhZMTOH8jeoor3hcfnd/FX uJvA== X-Received: by 10.202.169.207 with SMTP id s198mr19150096oie.28.1450985981692; Thu, 24 Dec 2015 11:39:41 -0800 (PST) X-Content-Filtered-By: Mailman/MimeDel 2.1.20+ X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100828 Hi all, I am not sure if this is the correct venue for my question, but I'd like to submit my question just in case. I am not a programmer but I do have an incredible interest in it, so please excuse my lack of understanding if my question isn't very thorough. As an example, a website backend is developed using Python. Users can submit their input through the website and PHP (or some other language) transfers the user input from the website fields to a database such as MySQL. There is a main script called main_script.py which extracts the user data from MySQL, processes it, stores output in MySQL and sends output to the user (via webpage and email). About main_script.py # main_script.py extracts user input from MySQL, processes it, stores output in MySQL and send output to user (via webpage and email). # Inputs: User personal information such as age, dob, nationality, hobbies, and 20 or 30 other fields # Output: main_script.py is going to do something with it such as access the database and some shelve files or other py scripts. I have no clue what it's going to do, but my point is that the processing of the input to output will take longer than simply a print('Hello, %r!' %user_name). My question: I am curious to know how Python handles something like this. Let's say that there are 10, 20, 50, or even 1000 users accessing the website. They all put in their 20 to 30 pieces of input and are waiting on some fancy magic output. How exactly does that work? Can multiple users access the same script? Does the Python programmer need to code in a manner that supports this? Are requests to the script handled serially or in parallel? I've tried some searches, but not getting much except for "appending to the same file", etc. I hope my question is a good question. Thank you for your time! Aaron