Re: Looking for advice

2018-04-20 Thread Chris Angelico
On Sat, Apr 21, 2018 at 3:28 AM, 20/20 Lab wrote: > Going to write my first python program that uses a database. Going to store > 50-100 rows with 5-10 columns. Which database / module would you advise me > to use? It's basically going to be processing order status emails for the > sales staff.

Re: Looking for advice

2018-04-20 Thread Rob Gaddi
On 04/20/2018 10:28 AM, 20/20 Lab wrote: Going to write my first python program that uses a database. Going to store 50-100 rows with 5-10 columns.  Which database / module would you advise me to use?  It's basically going to be processing order status emails for the sales staff.  Producing a w

Re: Looking for advice

2018-04-20 Thread Joel Goldstick
On Fri, Apr 20, 2018 at 1:28 PM, 20/20 Lab wrote: > Going to write my first python program that uses a database. Going to store > 50-100 rows with 5-10 columns. Which database / module would you advise me > to use? It's basically going to be processing order status emails for the > sales staff.

Looking for advice

2018-04-20 Thread 20/20 Lab
Going to write my first python program that uses a database. Going to store 50-100 rows with 5-10 columns.  Which database / module would you advise me to use?  It's basically going to be processing order status emails for the sales staff.  Producing a webpage (2-3 times daily, as updates arriv

Re: Pickle based workflow - looking for advice

2015-04-14 Thread Chris Angelico
On Wed, Apr 15, 2015 at 12:14 AM, Steven D'Aprano wrote: > On Tue, 14 Apr 2015 11:45 pm, Chris Angelico wrote: > >> On Tue, Apr 14, 2015 at 11:08 PM, Steven D'Aprano >> wrote: >>> On Tue, 14 Apr 2015 05:58 pm, Fabien wrote: >>> On 14.04.2015 06:05, Chris Angelico wrote: > Not sure what y

Re: Pickle based workflow - looking for advice

2015-04-14 Thread Steven D'Aprano
On Tue, 14 Apr 2015 11:45 pm, Chris Angelico wrote: > On Tue, Apr 14, 2015 at 11:08 PM, Steven D'Aprano > wrote: >> On Tue, 14 Apr 2015 05:58 pm, Fabien wrote: >> >>> On 14.04.2015 06:05, Chris Angelico wrote: Not sure what you mean, here. Any given file will be written by exactly one p

Re: Pickle based workflow - looking for advice

2015-04-14 Thread Chris Angelico
On Tue, Apr 14, 2015 at 11:08 PM, Steven D'Aprano wrote: > On Tue, 14 Apr 2015 05:58 pm, Fabien wrote: > >> On 14.04.2015 06:05, Chris Angelico wrote: >>> Not sure what you mean, here. Any given file will be written by >>> exactly one process? No possible problem. Multiprocessing within one >>> ap

Re: Pickle based workflow - looking for advice

2015-04-14 Thread Steven D'Aprano
On Tue, 14 Apr 2015 05:58 pm, Fabien wrote: > On 14.04.2015 06:05, Chris Angelico wrote: >> Not sure what you mean, here. Any given file will be written by >> exactly one process? No possible problem. Multiprocessing within one >> application doesn't change that. > > yes that's what I meant. Than

Re: Pickle based workflow - looking for advice

2015-04-14 Thread Fabien
On 14.04.2015 06:05, Chris Angelico wrote: Not sure what you mean, here. Any given file will be written by exactly one process? No possible problem. Multiprocessing within one application doesn't change that. yes that's what I meant. Thanks! -- https://mail.python.org/mailman/listinfo/python-li

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Chris Angelico
On Tue, Apr 14, 2015 at 3:35 AM, Fabien wrote: > With multiprocessing, do I have to care about processes writing > simultaneously in *different* files? I guess the OS takes good care of this > stuff but I'm not an expert. Not sure what you mean, here. Any given file will be written by exactly one

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Fabien
On 13.04.2015 19:08, Peter Otten wrote: How about a file-based workflow? Write distinct scripts, e. g. a2b.py that reads from *.a and writes to *.b and so on. Then use a plain old makefile to define the dependencies. Whether .a uses pickle, .b uses json, and .z uses csv is but an implementatio

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Fabien
On 13.04.2015 17:45, Devin Jeanpierre wrote: On Mon, Apr 13, 2015 at 10:58 AM, Fabien wrote: >Now, to my questions: >1. Does that seem reasonable? A big issue is the use of pickle, which is: * Often suboptimal performance wise (e.g. you can't load only subsets of the data) * Makes forwards/ba

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Fabien
On 13.04.2015 18:25, Dave Angel wrote: On 04/13/2015 10:58 AM, Fabien wrote: Folks, A comment. Pickle is a method of creating persistent data, most commonly used to preserve data between runs. A database is another method. Although either one can also be used with multiprocessing, you seem

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Peter Otten
Fabien wrote: > I am writing a quite extensive piece of scientific software. Its > workflow is quite easy to explain. The tool realizes series of > operations on watersheds (such as mapping data on it, geostatistics and > more). There are thousands of independent watersheds of different size, > an

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Dave Angel
On 04/13/2015 10:58 AM, Fabien wrote: Folks, A comment. Pickle is a method of creating persistent data, most commonly used to preserve data between runs. A database is another method. Although either one can also be used with multiprocessing, you seem to be worrying more about the mechan

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Robin Becker
for what it's worth I believe that marshal is a faster method for storing simple python objects. So if your information can be stored using simple python things eg strings, floats, integers, lists and dicts then storage using marshal is faster than pickle/cpickle. If you want to persist the obje

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Devin Jeanpierre
On Mon, Apr 13, 2015 at 10:58 AM, Fabien wrote: > Now, to my questions: > 1. Does that seem reasonable? A big issue is the use of pickle, which is: * Often suboptimal performance wise (e.g. you can't load only subsets of the data) * Makes forwards/backwards compatibility very difficult * Can mak

Pickle based workflow - looking for advice

2015-04-13 Thread Fabien
Folks, I am writing a quite extensive piece of scientific software. Its workflow is quite easy to explain. The tool realizes series of operations on watersheds (such as mapping data on it, geostatistics and more). There are thousands of independent watersheds of different size, and the size d

Re: Asyncio problem, looking for advice.

2014-11-28 Thread Akira Li
Benjamin Risher writes: > On Friday, November 28, 2014 6:12:20 AM UTC-6, Akira Li wrote: >> Benjamin Risher writes: >> >> > Hello all, >> > >> > I'm working on a project to learn asyncio and network programming. >> > What I'm trying to do is forward a connection from myself to >> > another machi

Re: Asyncio problem, looking for advice.

2014-11-28 Thread Benjamin Risher
On Friday, November 28, 2014 6:12:20 AM UTC-6, Akira Li wrote: > Benjamin Risher writes: > > > Hello all, > > > > I'm working on a project to learn asyncio and network programming. What > > I'm trying to do is forward a connection from myself to another machine. > > Kind of like an asynchronou

Re: Asyncio problem, looking for advice.

2014-11-28 Thread Akira Li
Benjamin Risher writes: > Hello all, > > I'm working on a project to learn asyncio and network programming. What I'm > trying to do is forward a connection from myself to another machine. Kind of > like an asynchronous python implementation of fpipe. > > In a nutshell: > > 1 --> start a serve

Asyncio problem, looking for advice.

2014-11-27 Thread Benjamin Risher
Hello all, I'm working on a project to learn asyncio and network programming. What I'm trying to do is forward a connection from myself to another machine. Kind of like an asynchronous python implementation of fpipe. In a nutshell: 1 --> start a server listening on localhost 2 --> connect

Looking For Advice

2013-10-29 Thread crclemens73
Hey Guys, A group of guys and myself have been working on a project/business plan to develop a Hotel Concierge application for tablets. We have been working on it for over a year and have hotels here in Chicago that are on board and very interested with our concept. We also are in the works wit

Re: looking for advice python

2013-01-28 Thread twiztidtrees
On Sunday, January 27, 2013 1:57:47 PM UTC-5, twizti...@gmail.com wrote: > I am in a class and was just looking for different advice. This is the first > time iv ever tried to do this. That's all that iv taken from two chapters and > wondering how bad I did. I also like to learn. Thanks for ev

Re: looking for advice python

2013-01-27 Thread twiztidtrees
I am in a class and was just looking for different advice. This is the first time iv ever tried to do this. That's all that iv taken from two chapters and wondering how bad I did. I also like to learn. Thanks for everyones input -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for advice python

2013-01-26 Thread Dave Angel
On 01/26/2013 05:26 PM, twiztidtr...@gmail.com wrote: Hey I'm new to programming and I have been working on calculating miles per gallon. iv posted below what I have and constructive criticism would be wonderful. Thanks A good post for the python-tutor mailing list. If you want help with a

Re: looking for advice python

2013-01-26 Thread Chris Angelico
On Sun, Jan 27, 2013 at 9:26 AM, wrote: > miles = int(string_miles) > gas = int(string_gas) > > #used to calculate mpg through division > mpg = miles/gas > > print(float(string_miles)) > print(float(string_gas)) > print('Your miles per gallon is', format(mpg,'.2f')) Welcome aboard! You turn you

looking for advice python

2013-01-26 Thread twiztidtrees
Hey I'm new to programming and I have been working on calculating miles per gallon. iv posted below what I have and constructive criticism would be wonderful. Thanks #This is a program used to calculate miles per gallon #variable used to gather miles driven string_miles = input('How many mile

Looking for Advice: Creation vs Access in OO Models

2008-11-16 Thread Rafe
Hi, I'm going to try and keep this as general as possible. I'm building an object model/API for creating and working with 'things' (I'm actually working with a 3D application through COM, so I guess I'm making a kind of middleware or wrapper interface). I'm looking for some advice on structure and

Re: Newbie to XML-RPC: looking for advice

2006-01-14 Thread Fredrik Lundh
David Hirschfield wrote: > All the above works fine...but I'm finding the following: while the > actual creation and pickling of the objects only takes a millisecond or > so, the actual time before the client call completes is a third of a > second or more. > > So where's the slowdown? It doesn't

Re: Newbie to XML-RPC: looking for advice

2006-01-13 Thread Christian Tismer
David Hirschfield wrote: > All the above works fine...but I'm finding the following: while the > actual creation and pickling of the objects only takes a millisecond or > so, the actual time before the client call completes is a third of a > second or more. > > So where's the slowdown? It do

Newbie to XML-RPC: looking for advice

2006-01-13 Thread David Hirschfield
I've written a server-client system using XML-RPC. The server is using the twisted.web.xmlrpc.XMLRPC class to handle connections and run requests. Clients are just using xmlrpclib.ServerProxy to run remote method calls. I have a few questions about the performance of xmlrpc in general, and spe