473,721 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do *you* use Python in non-GUI work?

Hey all. Just thought I'd ask a general question for my own interest. Every time I think of something I might do in Python, it usually involves creating a GUI interface, so I was wondering what kind of work you all do with Python that does *not* involve any GUI work. This could be any little scripts you write for your own benefit, or what you do at work, if you feel like talking about that! :)

Thanks.
Jun 27 '08 #1
19 2779
On May 18, 5:20�pm, John Salerno <johnj...@NOSPA Mgmail.comwrote :
Hey all. Just thought I'd ask a general question for my own interest. Every time I think of something I might do in Python, it usually involves creating a GUI interface, so I was wondering what kind of work you all do with Python that does *not* involve any GUI work. This could be any little scripts you write for your own benefit, or what you do at work, if you feel like talking about that! :)

Thanks.
Odd, I've been using Python since ver 2.2 and I've
NEVER needed a GUI. I do things like (looking at the
last 6 months of my Python directory):

- how to scrape movie receipt data from IMDB
and insert them into an MS-Access database

- how to scrape .jpgs from a web page (simple
file transfer, no display needed)

- how to do a Cartesian Product in SQLlite3

- how to creat a polynomial from a sequence of
numbers using Newton's Forward Differences method

- how to calculate the date of Easter

- how to construct arbitrary length cycles in the
Collatz Conjecture

- how to find the Ultimate Cycle (also in Collatz
Conjecture)

- efficient cycle detection comparing Brent's and
Sedgewick's cycle detection algorithms

- finding the cycles of 3n+C systems

- partioning W marbles into D ordered bins with
the constraint that each bin contain a minimum of 1

- partioning W marbles into D ordered bins with
the constraint that each bin contain a minimum of 1
and that no bin exceeds M

- a Python Cartesian Product that in addition to
Permutaions with Replacement, also gives the subsets
Permutations without Replacement, Combinations with
Replacement and Combinations without Replacement

- demonstrating the fallacy of Peter Scorer's "proof"
of the Collatz Conjecture

- demonstrating the fallacy of Alan Tyte's "proof" of
the Collatz Conjecture

- demonstrating the fallacy of Ken Conrow's "proof" of
the Collatz Conjecture

- how to identify which members of the infinite solutions
to a given Sequnce Vector of a 3n+C system are located
on the trivial graph component

- developing a novel factoring algorithm based on the
Collatz Conjecture

I see no need for GUI in any of these applications.
Jun 27 '08 #2
Hey all. Just thought I'd ask a general question for my own interest. Every
time I think of something I might do in Python, it usually involves creating
a GUI interface, so I was wondering what kind of work you all do with Python
that does *not* involve any GUI work. This could be any little scripts you
write for your own benefit, or what you do at work, if you feel like talking
about that! :)
web apps
manage/format/write cv
convert jpg to gif
start/stop/manage parallel runs on a PC cluster
etc :)

Actually, I've never written anything with a GUI (unless you count web apps).

Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
Jun 27 '08 #3
On May 19, 12:20 am, John Salerno <johnj...@NOSPA Mgmail.comwrote :
Hey all. Just thought I'd ask a general question for my own interest. Every time I think of something I might do in Python, it usually involves creating a GUI interface, so I was wondering what kind of work you all do with Python that does *not* involve any GUI work. This could be any little scripts you write for your own benefit, or what you do at work, if you feel like talking about that! :)

Back in the 'old days' of Unix, programs tended not to be small, could
only do one thing, and did it well. They had no gui, and all
interaction came from command line options. The programs were invoked
from the command line, and input and output were piped from one
program to another (input on stdin, output on stdout).

Today, it is expected that programs should have a GUI. The majority do
not even know how to use a program that does not have one. As a
result, programs have become poorer at interacting with other, and
become bloated and grown monolithic. Today's programs are monolithic
beasts spanning tens or hundreds of megabytes, where the bulk of the
code duplicates functionality found in every other program.

I prefer that a program has no GUI if it does not need user
interaction beyond what can be easily accomplished from the command
line. Sometimes I think gui becomes overwhelming, and obfuscates the
real functionality in the program. When I write program's for others
people, a GUI is usually expected. But when I get requests for adding
new functionality to such a program, it tends to be for unimportant
GUI stuff rather than real functionality to the program.

To answer your question: I only add GUIs when I have to. But because
it seems that people are becoming computer illiterate, incapable of
using a keyboard, and only comfortable with a certain point-and-click
input device, it tends to be most of the time now.


Jun 27 '08 #4
On Sun, 18 May 2008 16:17:55 -0700 (PDT)
Mensanator <me********@aol .comwrote:

I see no need for GUI in any of these applications.
Yeah, I try to find little projects to write in Python that don't involve a GUI. It's quicker, for one thing, and I also find that there is much more of a focus on the actual problem rather than wasting time trying to get a button positioned just right. :)

Even back when I was using Windows 3.1 and 95, I enjoyed doing stuff in DOS because it made me feel like I was actually getting work done. :)
Jun 27 '08 #5
On May 19, 6:20*am, John Salerno <johnj...@NOSPA Mgmail.comwrote :
Hey all. Just thought I'd ask a general question for my own interest. Every time I think of something I might do in Python, it usually involves creating a GUI interface, so I was wondering what kind of work you all do with Python that does *not* involve any GUI work. This could be any little scripts you write for your own benefit, or what you do at work, if you feel like talking about that! :)

Thanks.
Hi

I work fulltime developing in python and have done so for more than 5
years now, and I would say 99.8% of the time I have not
built anything with a GUI (Unless you consider a web page as a GUI ;-)

Much of my work is web based (zope backend stuff), test frameworks for
windows build environments that need to compare the output of 1000's
of images from rendering pipelines. Lots of data integration and
manipulation utilities as part of processing pipelines. All sorts of
stuff that just doesn't use
a GUI.

T

Jun 27 '08 #6

John Salerno wrote:
Hey all. Just thought I'd ask a general question for my own interest. Every time I
think of something I might do in Python, it usually involves creating a GUI
interface, so I was wondering what kind of work you all do with Python that does
*not* involve any GUI work. This could be any little scripts you write for your own
benefit, or what you do at work, if you feel like talking about that! :)

Thanks.
- web server/blog/wiki. This doesn't have a gui if you don't consider HTML pages a gui
- various scripts to help me during software deployment and testing
(for instance log file analyzers, automated web clients)
- network communications library that tries hard to just get out of your way ;-)
- file processing scripts to do more sophisticated stuff than basic search/replace
- most recent script is a little tool that downloads the latest version of some
World-Of-Warcraft addon, extracts it to the game folder after deleting the old one
first, and then copies a backup to a network drive. I just doubleclick the .py file and
it dumps the results in a console window that closes after a few seconds. Who needs a
gui for that?

Also, I often find myself opening a Python prompt to just execute simple tasks that I
see other people needing big tools or even online services for:
- base-64 encoding/decoding
- md5/sha hashing
- simple string or regular expression operations
- simple math
- unicode decoding/encoding
- etc etc.
--irmen de jong
Jun 27 '08 #7
John Salerno wrote:
Hey all. Just thought I'd ask a general question for my own interest. Every time I think of something I might do in Python, it usually involves creating a GUI interface, so I was wondering what kind of work you all do with Python that does *not* involve any GUI work. This could be any little scripts you write for your own benefit, or what you do at work, if you feel like talking about that! :)

Thanks.
here is some non-text stuff that I have done within the
last two or three years

1. controlling and parsing thousands of label files
several times per day, that are used by the factory to
drive the printers that make product safety labels -
code was easily approved by UL and CSA.
2. real-time control of platform in EMC lab for
radiated emissions testing.
3. hi-speed data acquisition of 3 to 20 parameters
during simulated abnormal operating conditions to
demonstrate product compliance with product safety
standards.
4. monitoring of several server logs, also sends email
to me if it finds something it does not like.
5. parallel monitor/control systems for several
greenhouses.
Jun 27 '08 #8
On Mon, 19 May 2008 08:20:22 +1000, John Salerno
<jo******@NOSPA Mgmail.comwrote :
Hey all. Just thought I'd ask a general question for my own interest.
Every time I think of something I might do in Python, it usually
involves creating a GUI interface, so I was wondering what kind of work
you all do with Python that does *not* involve any GUI work. This could
be any little scripts you write for your own benefit, or what you do at
work, if you feel like talking about that! :)

Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
- Enhancing existing products by scripting new features.
- Interface between databases, Excel and text files.
- Convert data between flat files and XML.
- Manage files for build processes.
- Automating processes (e.g. checkout, builds, FTP).

Wish I had some reasons to make a GUI application in Python.

--
Kam-Hung Soh <a href="http://kamhungsoh.com/blog">Software Salariman</a>

Jun 27 '08 #9
On May 18, 7:25 pm, John Salerno <johnj...@NOSPA Mgmail.comwrote :
On Sun, 18 May 2008 16:17:55 -0700 (PDT)

Mensanator <mensana...@aol .comwrote:
I see no need for GUI in any of these applications.

Yeah, I try to find little projects to write in Python that don't involve a GUI. It's quicker, for one thing, and I also find that there is much more of a focus on the actual problem rather than wasting time trying to get a button positioned just right. :)

Even back when I was using Windows 3.1 and 95, I enjoyed doing stuff in DOS because it made me feel like I was actually getting work done. :)
I do mostly Internet protocol server/proxy-side applications. One of
the fun things about those kinds of programs is that you get away from
the whole "user interface design" concept, because you normally don't
have to do any kind of user interface (neither command-line-based, GUI-
based, web-based, nor anything), since you're not designing something
to serve an end user, but to work as a lonely daemon and serve some
kind of Internet service. So I think that'd be a good alternative for
you.

Every now and then, however, I do build some interface (mostly GUI),
such as a monitor, notification mechanism, etc. But I never feel like
I'm losing focus on the actual problem; maybe because I develop the
core program first and the think about a possible and optional
interface. Maybe a good suggestion is to put the GUI stuff on another
module or package, and make interface functions or methods to handle
the needed GUI controls, so that the GUI stuff shows up as little as
possible in the core part of the program.
Jun 27 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1127
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 235 open ( +0) / 2637 closed ( +4) / 2872 total ( +4) Bugs : 768 open ( +1) / 4480 closed (+17) / 5248 total (+18) RFE : 152 open ( +1) / 131 closed ( +0) / 283 total ( +1) New / Reopened Patches ______________________
29
2459
by: Stephen Ferg | last post by:
I am a very satisfied user of Python and have been for number of years. I would never willing use another language. I wish all good things for Python, and that moves me to express some thoughts about Python's future prospects. I submit that the future expansion of Python usage is constrained by Python's lack of a CPAN-like facility, and I submit that without a CPyAN Python will never even get close to achieving the degree of...
134
6092
by: Joseph Garvin | last post by:
As someone who learned C first, when I came to Python everytime I read about a new feature it was like, "Whoa! I can do that?!" Slicing, dir(), getattr/setattr, the % operator, all of this was very different from C. I'm curious -- what is everyone's favorite trick from a non-python language? And -- why isn't it in Python? Here's my current candidate: So the other day I was looking at the language Lua. In Lua, you make a
0
1516
by: Adam Tomjack | last post by:
I'm trying to embed Python 2.3.5 into a C++ application on Windows XP. When I build my app with debug symbols and link to a debug build of Python, then my program seems to crash most (but not all) of the time. Sometimes it crashes on startup, and sometimes at exit, sometimes not at all. I haven't seen it crash with non-debug builds of my app and Python. The release build runs my Python test code just fine. When the debug build doesn't...
12
1811
by: eduardo.padoan | last post by:
I'm reading about "high order messages" in Ruby by Nat Pryce, and thinking if it could be util and if so, if it could be done in Python. Someone already tried? References: http://lambda-the-ultimate.org/node/view/1047 http://nat.truemesh.com/archives/000535.html http://nat.truemesh.com/archives/000537.html
8
1701
by: Simon Brunning | last post by:
I have a non-programming friend who wants to learn Python. It's been so long since I've been in her shoes that I don't feel qualified to judge the books aimed at people in her situation. I know of two such books: <http://www.freenetpages.co.uk/hp/alan.gauld/> <http://www.ibiblio.org/obp/thinkCSpy/> Any recommendations, or otherwise?
10
2214
by: Larry Hastings | last post by:
I'm an indie shareware Windows game developer. In indie shareware game development, download size is terribly important; conventional wisdom holds that--even today--your download should be 5MB or less. I'd like to use Python in my games. However, python24.dll is 1.86MB, and zips down to 877k. I can't afford to devote 1/6 of my download to just the scripting interpreter; I've got music, and textures, and my own crappy code to ship. ...
158
6399
by: Giovanni Bajo | last post by:
Hello, I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the "PSF infrastracture committee", after weeks of evaluation, recommends using a non open source tracker (called JIRA - never heard before of course) for Python itself. Does this smell "Bitkeeper fiasco" to anyone else than me? --
32
1633
by: Steve Holden | last post by:
I wondered if a straw poll could get some idea of readers' thoughts about when they will be migrating to 3.0 on, so I used the new widget on Blogger to add a poll for that. I'd appreciate if if you would go to http://holdenweb.blogspot.com/ and register your vote on your intended migration timescale.
2
3767
by: emallove | last post by:
I'm running into the below "No modules named _sha256" issue, with a python installed in a non-standard location. $ python Python 2.5.2 (r252:60911, May 20 2008, 09:46:50) on linux2 Type "help", "copyright", "credits" or "license" for more information. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/ws/ompi-tools/lib/python2.5/md5.py", line 6, in <module>
0
8837
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8728
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9130
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6668
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4484
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4751
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3187
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2572
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2129
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.