By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,688 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

Any of you make Python Programs for everyday tasks?

tharden3
100+
P: 916
I just want to see what others have made. Any of you make Python Programs that you use for day to day tasks like Calendar keeping or simple calculations? Maybe a conversion tool? Have you written any GUI code for it, or do you just bring it up in an IDE or a command prompt?
Nov 10 '08 #1
Share this Question
Share on Google+
8 Replies


boxfish
Expert 100+
P: 469
Yeah, I made a couple of little conversion boxes with Tkinter and put them in the quick launch bar. I also made a program that prints out all the ASCII codes 0-255 along with the characters they produce. Then I made a much better one in C++. Ugly code with an ugly result:
Expand|Select|Wrap|Line Numbers
  1. import string
  2. text = ""
  3. for i in xrange(16):
  4.     for j in xrange(16):
  5.         if string.hexdigits[i]+string.hexdigits[j] != "00":
  6.             exec "text += \"\\\\x"+string.hexdigits[i]+string.hexdigits[j]+ \
  7.                  "\\x"+string.hexdigits[i]+string.hexdigits[j]+"!\\n\""
  8. print text,
  9.  
Nov 10 '08 #2

Expert 100+
P: 849
Honestly, what I use Python for the most is the interactive shell, generally as a calculator.
Nov 10 '08 #3

tharden3
100+
P: 916
Yeah, I made a couple of little conversion boxes with Tkinter and put them in the quick launch bar. I also made a program that prints out all the ASCII codes 0-255 along with the characters they produce. Then I made a much better one in C++. Ugly code with an ugly result:
Expand|Select|Wrap|Line Numbers
  1. import string
  2. text = ""
  3. for i in xrange(16):
  4.     for j in xrange(16):
  5.         if string.hexdigits[i]+string.hexdigits[j] != "00":
  6.             exec "text += \"\\\\x"+string.hexdigits[i]+string.hexdigits[j]+ \
  7.                  "\\x"+string.hexdigits[i]+string.hexdigits[j]+"!\\n\""
  8. print text,
  9.  
ahh, cool. I'm working on a couple of little things. Mostly just practice at the moment, but hopefully I can start making useful programs soon.
Nov 10 '08 #4

bvdet
Expert Mod 2.5K+
P: 2,851
I wrote many scripts for use in my work, mostly interacting with SDS/2 software for structural steel shop drawings. Examples:

A KISS file is a formatted ascii file containing steel member fabrication data. My script parses the file and organizes the data for reports.

A DXF file is a formatted ascii file containing drawing entity data. My script parses a DXF file and extracts building geometry, summarizes shear connector stud counts, etc.

Calculate roof geometry for hip and valley structures.

Layout building geometry in plan and in 3D.

Parametrically add structural steel members, and connection and miscellaneous materials to members.
Nov 10 '08 #5

YarrOfDoom
Expert 100+
P: 1,247
I wrote a script to download webcomics (if it is has a logical filenamestructure, it's possible).
As for the rest, I was going to make an agenda-like program, but I'm busy with other things these days.
Nov 11 '08 #6

tharden3
100+
P: 916
Nice. I'm working on some scripts, but between learning Python and my School work, I am very busy. Hopefully I can find some time over a holiday or two.
Nov 12 '08 #7

bvdet
Expert Mod 2.5K+
P: 2,851
I forgot to mention that I wrote a script to backup all my music files from the library root directory to a backup disk. I run it from my IDE. I add to or modify the music library occasionally. The script mirrors what was changed or added.
Nov 12 '08 #8

tharden3
100+
P: 916
That's a pretty handy tool. My computer died a few months ago with my entire iTunes library on it (and not backed up to a disc!). I lost some of my files, but was able to recover a good 90% of my library. I can definitely see how your script would be helpful.

I always said to myself "Nah, I'll never back up my music files... I'll just trust that everything will go OK for a long time...."

WHAT WAS I THINKING!
Nov 12 '08 #9

Post your reply

Sign in to post your reply or Sign up for a free account.