Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100849

Re: Python and multiple user access via super cool fancy website

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Jason Friedman <jsf80238@gmail.com>
Newsgroups comp.lang.python
Subject Re: Python and multiple user access via super cool fancy website
Date Thu, 24 Dec 2015 22:23:58 -0700
Lines 38
Message-ID <mailman.0.1451021040.11925.python-list@python.org> (permalink)
References <CAOA=+NuwvqV0aHHYed4CQLKExi1dZm89JUfdpYMpmyazG_nBbw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 13yiDfktuMGELPtNArHYVAwuE542/iYx75ctykBrFJQA==
Return-Path <jsf80238@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'performs': 0.07; 'cc:addr:python-list': 0.09; 'mysql.': 0.09; 'python': 0.10; 'python.': 0.11; 'output': 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; 'case.': 0.18; 'programmer': 0.18; 'input': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'handles': 0.20; 'mysql,': 0.22; 'sends': 0.22; '(or': 0.23; 'performing': 0.23; 'transfers': 0.23; 'header:In-Reply-To:1': 0.24; 'requests': 0.25; 'script': 0.25; 'question': 0.27; 'message- id:@mail.gmail.com': 0.27; 'pieces': 0.27; 'correct': 0.28; 'idea': 0.28; 'this.': 0.28; '50,': 0.29; 'question:': 0.29; 'subject:website': 0.29; 'handled': 0.29; 'program,': 0.29; 'code': 0.30; 'venue': 0.30; "i'd": 0.31; 'point': 0.33; 'curious': 0.33; 'this?': 0.34; 'received:google.com': 0.35; 'question,': 0.35; 'something': 0.35; 'received:74.125.82': 0.35; 'asking': 0.35; "isn't": 0.35; 'supports': 0.35; 'but': 0.36; 'there': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'files': 0.38; 'data': 0.39; 'sure': 0.39; 'does': 0.39; 'submit': 0.39; 'called': 0.40; 'some': 0.40; 'waiting': 0.60; 'skip:u 10': 0.61; 'more': 0.63; 'personal': 0.63; 'information': 0.63; 'interest': 0.64; 'developed': 0.66; '20,': 0.66; 'webpage': 0.66; 'manner': 0.69; 'incredible': 0.72; 'yourself,': 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:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=F7Y4ezij7DvINzkdiP0HdDLWTE3ZbWz0lIFT4059h+E=; b=tnc/Iyqbe/V5FfXrgDmLOPSEIszQGb8hNFzOplD2Bn7TS6nBG77DD7XCQqePM0w6s/ Kzc9BIOpJW4dntfttxeeFTqzHFHN9cqojcBDx1Zkr/LG0o+VBiCPUCvgw2+GW1DMMntJ ssnFEigqQOwzTswZ9ytswiCVk/W09d0f2fwbsXogmmBJ4XrWOv0FLDzO9jrsx+el8BNV mX0rbxC+PhpKuiRCRdvWm9S2ors2DV8Na7vT7oq4rs0ufwWxUgqf5WmVDLydGcAl1jBZ gTjmCWbwSh4Ng2ae9nOBYM714kBHZyLOeRxFt9WaRtEN/hX4XgD00PwI3kAl6rNMqX+3 3fVg==
X-Received by 10.194.113.102 with SMTP id ix6mr28427043wjb.143.1451021038570; Thu, 24 Dec 2015 21:23:58 -0800 (PST)
In-Reply-To <CAOA=+NuwvqV0aHHYed4CQLKExi1dZm89JUfdpYMpmyazG_nBbw@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:100849

Show key headers only | View raw


> 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 have a hunch that you do not want to write the program, nor do you
want to see exactly how a programmer would write it?

The question is more like asking a heart surgeon how she performs
heart surgery:  you don't plan to do it yourself, but you want a
general idea of how it is done?  How do you keep the patient from
bleeding to death?  Does the heart stop while performing the surgery,
and if yes, how does the patient stay alive?

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python and multiple user access via super cool fancy website Jason Friedman <jsf80238@gmail.com> - 2015-12-24 22:23 -0700

csiph-web