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


Groups > comp.lang.python > #106311

Re: Python program

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Python program
Date Sun, 3 Apr 2016 07:03:13 +1000
Lines 42
Message-ID <mailman.374.1459631002.28225.python-list@python.org> (permalink)
References <e61e5980-7705-4805-bd47-42f11dc811b1@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de yDiNwajfnPcL9VIyJwjsjQiikocS9IVcCgZucTK/3ymw==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'yet.': 0.03; 'subject:Python': 0.05; 'postgresql': 0.07; 'cc:addr:python-list': 0.09; "(i'd": 0.09; 'python': 0.10; 'python.': 0.11; 'user.': 0.15; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'responses.': 0.16; 'sorts': 0.16; 'sqlalchemy': 0.16; 'subject:program': 0.16; 'wrote:': 0.16; 'python?': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'meant': 0.22; 'not,': 0.22; 'browsers': 0.22; 'month,': 0.22; 'recognize': 0.22; 'am,': 0.23; 'bit': 0.23; 'tutorials': 0.23; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'install': 0.25; 'installed': 0.26; 'message-id:@mail.gmail.com': 0.27; 'function': 0.28; 'server.': 0.30; 'that.': 0.30; 'certainly': 0.30; "i'd": 0.31; 'everyone': 0.31; 'another': 0.32; 'knows': 0.32; 'computer.': 0.32; 'run': 0.33; 'point': 0.33; 'hopefully': 0.33; 'add': 0.34; 'server': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'arrange': 0.35; 'easiest': 0.35; 'but': 0.36; 'should': 0.36; 'project': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'basic': 0.36; 'subject:: ': 0.37; 'there,': 0.37; 'received:209.85.213': 0.37; 'list.': 0.37; 'things': 0.38; 'doing': 0.38; 'received:209': 0.38; 'stuff': 0.38; 'building': 0.38; 'end': 0.39; 'enough': 0.39; 'build': 0.40; 'well.': 0.40; 'some': 0.40; 'your': 0.60; 'information,': 0.61; 'real': 0.62; 'different': 0.63; 'information': 0.63; 'our': 0.64; 'week,': 0.64; 'day,': 0.65; 'python-list': 0.66; 'account': 0.66; 'business': 0.69; 'customers': 0.70; 'chrisa': 0.84; 'computers.': 0.84; 'everything,': 0.84; 'to:none': 0.91; 'visits': 0.91; 'fun!': 0.95
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:cc :content-transfer-encoding; bh=O+KgIEqlrKJ6j57+dg8wwncUGANcJYX5jZlRWJblfZo=; b=F7Q8CeL/WkuwsM2FRfUrMKgkp9U7uPzIBnFujO225EtT+dMekx1bEIMwnkBznLydk/ H2sdEAoBP7MKrimjE3mEUcn9YncPnzk4TJEdmr1pSM3OnaC39aG2t0jLEnxhXBZjnoCI RHOZsL+2WyI2C1DRxThpKemETdEiMfdLYP13C2x/O7yGLNhNo0OAej8dGg1uukgsnJy8 G7zUoYp90v94+1d9X/JzuSFjjlY8RPxqd5MqE8qGy8xbTVWFFWlC6WG8m39LErP5cYIy +95JPBJnrbTAABlbfOqvUIHcUK1QI83ByQOXo91aHvQ79TaDpbPlhaj9Dx9c2kjphk2l MDNg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-transfer-encoding; bh=O+KgIEqlrKJ6j57+dg8wwncUGANcJYX5jZlRWJblfZo=; b=mG66QHsR41oBWpzFf/poaLEdEEZTuHZAXvj1SJB7TZfr60qcYcrEC7BZAgfmOX8Jkh J8qHakY2TQW0EspHp7RwpKbiYQKkZ4rB+srxGI/etD3RywJ8/6xasL6khTHBOX1skBG5 LKEiZ2nk2PLH8MiK8E/1Enon6ISOxNHfT9ANBsVKqMzHdI2IFj3hwYRAzefw0Xc6g9Ck gNRysGgrgOXo86q9U94tx9FIX8NzsSu8tmsjVBkrwPGd7oB/s0RYKYICJ/xl9RldNP4n 4LiFIsj74ZleSWvxHteIAbZZS7t0Gx8eHxsTzi6PDn43Wv1WwQFyP37RNhovN8xoIhio NKrw==
X-Gm-Message-State AD7BkJJvam+GCUKvXL6tBmXDUpJjPDkK0UFCzYJJIgA2ul4D2MJylqf9OYaXKfdSTUrO7wxgCcESOBLNWH7wBw==
X-Received by 10.50.23.80 with SMTP id k16mr4878747igf.94.1459630993998; Sat, 02 Apr 2016 14:03:13 -0700 (PDT)
In-Reply-To <e61e5980-7705-4805-bd47-42f11dc811b1@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
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:106311

Show key headers only | View raw


On Sun, Apr 3, 2016 at 5:14 AM, Pythonnoob via Python-list
<python-list@python.org> wrote:
> I have written a program in Python track the number of visits customers make to our business based upon their account numbers. Right now we are doing this via paper. We have 7 computers. Each with a different user. We do have a network and server. I know this program will run on my computer and I can enter the information and update it from my computer. I want all of our associates to have the program on their computer and be able to update it in real time. So at the end of the day, week, month, etc..... the visits can be calculated. I know that I can install Python on each of the computers, but I know this would be local to their computer. I also know I could have our IT guy install the program on the server as well. But in order for the stats to be updated by all associates in real time , would I have to build a database and then get that installed on the server ?
>

Hi! Welcome to the list. (I'd like to be able to greet you by name,
but I don't think "Noob" is a name. Are you Todd? Or perhaps I can
call you Christine, after CookingForNoobs?)

It might not be *necessary* to do it that way, but I would certainly
recommend it. These days, the easiest way to arrange these sorts of
things would be a web server that manages everything, and have your
associates point their web browsers to it. It's a little bit of work
to set up, but everyone knows how to use a web browser these days, and
they don't need to install Python.

Have you any experience with building web sites in Python? If not,
there are lots of tutorials around. Start with Python 3 and Flask, and
put together an HTML form to accept information from one of your
associates, with another function to process the responses. Use a
PostgreSQL database to store the information, and either psycopg2 or
SQLAlchemy to access that from Python.

There are other ways to do things, but this is how I'd recommend it.

That's a very VERY basic roadmap; it's meant to be enough for you to
recognize which parts you don't know yet. From there, you can
hopefully dig into the project a bit, and add some stats and stuff
like that. Should be fun!

ChrisA

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


Thread

Python program Pythonnoob <toddbyrne1046@yahoo.com> - 2016-04-02 12:14 -0700
  Re: Python program Chris Angelico <rosuav@gmail.com> - 2016-04-03 07:03 +1000

csiph-web