Any of you make Python Programs for everyday tasks?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tharden3
    Contributor
    • Jul 2008
    • 916

    #1

    Any of you make Python Programs for everyday tasks?

    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?
  • boxfish
    Recognized Expert Contributor
    • Mar 2008
    • 469

    #2
    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:
    Code:
    import string
    text = ""
    for i in xrange(16):
        for j in xrange(16):
            if string.hexdigits[i]+string.hexdigits[j] != "00":
                exec "text += \"\\\\x"+string.hexdigits[i]+string.hexdigits[j]+ \
                     "\\x"+string.hexdigits[i]+string.hexdigits[j]+"!\\n\""
    print text,

    Comment

    • Laharl
      Recognized Expert Contributor
      • Sep 2007
      • 849

      #3
      Honestly, what I use Python for the most is the interactive shell, generally as a calculator.

      Comment

      • tharden3
        Contributor
        • Jul 2008
        • 916

        #4
        Originally posted by boxfish
        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:
        Code:
        import string
        text = ""
        for i in xrange(16):
            for j in xrange(16):
                if string.hexdigits[i]+string.hexdigits[j] != "00":
                    exec "text += \"\\\\x"+string.hexdigits[i]+string.hexdigits[j]+ \
                         "\\x"+string.hexdigits[i]+string.hexdigits[j]+"!\\n\""
        print text,
        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.

        Comment

        • bvdet
          Recognized Expert Specialist
          • Oct 2006
          • 2851

          #5
          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.

          Comment

          • YarrOfDoom
            Recognized Expert Top Contributor
            • Aug 2007
            • 1243

            #6
            I wrote a script to download webcomics (if it is has a logical filenamestructu re, 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.

            Comment

            • tharden3
              Contributor
              • Jul 2008
              • 916

              #7
              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.

              Comment

              • bvdet
                Recognized Expert Specialist
                • Oct 2006
                • 2851

                #8
                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.

                Comment

                • tharden3
                  Contributor
                  • Jul 2008
                  • 916

                  #9
                  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!

                  Comment

                  Working...