Latest Python Code Snippets

Popular / Snippets

OrFeAsGr created a Page  -  Jun 23, 2016
1 368 

Hi again! After some months i corrected some mistakes in this code and added a few things to make it act like a typical IRC Client. It will now use an alternate nick when the nick is already in use. It will now attempt to join the channel correctly and not attempt before successfull registration. It will now send a small adv message when it successfully joins the channel! Change INPUT_CHAN_HERE with..

Sorasyn created a Page  -  Jan 07, 2016

How long it's been since I've made a submission here. Just about two years, in fact.

gt.salles created a Page  -  Jun 07, 2013
151 

PUG-PI it's the Python User Group from the Brazilian State Piauí. Together, we did a Dojo to solve this problem: http://dojopuzzles.com/problemas/exibe/diamantes/ The problem consists in given an input (a char), the program print all the letters from the alphabet until we find the given letter and then all the way back, doing this like a diamond. Something like this:

aboutscript created a Page  -  Jan 05, 2013
1 317 

Find out if a number is prime. If it isn't, you'll get a list of factors. It's useful for finding GCM and other miscellaneous things about numbers.

berend created a Page  -  Nov 15, 2012

EDIT: Changed te code to a better version

Dot created a Page  -  Sep 12, 2012
324 

The infamous "Hello World!" Python code. It's really just a joke. I wanted to see how this site worked, how to post snippets, etc. etc. I'll be trying to upload more Python Code Snippets (that actually do stuff) as I learn them in school and at home.

Maximus1983 created a Page  -  Jun 27, 2012
493 

Capture Web Screenshots easily with the GrabzIt Python API. You will need the free GrabzIt Python Code Library to get started.

 Respond   Python  
brbcoding created a Page  -  Jun 13, 2012

Python functions that will find the divisor, number of divisors, sum of divisors, totatives, and totient... I'm new to python, this snippet is my reponse to the problem posted HERE: http://www.reddit.com/r/dailyprogrammer/comments/uzx8b/6132012_challenge_64_easy/

 Respond   Python  
TheImrac created a Page  -  Jan 08, 2012
818 

Python script I made for our clans Knife and pistol server we ran for BF3.

 Respond   Python  
Sonny created a Page  -  Jul 21, 2011
263 
theholder created a Page  -  Jun 09, 2011
768 

a simple number guessing game

Firstmate created a Page  -  Mar 19, 2011
473 

The script just let's you have colored nicks.

sunslayer created a Page  -  Feb 02, 2011
1 937 

started to learn python yesterday and found http://www.daniweb.com/forums/post161212-13.html so i figured I'd give it a try

Back2Life created a Page  -  Dec 28, 2010
349 

So, this was basically a test I did for some new functions in Python 3.1. It has really NO purpose, and is just something I worked on when I was bored.

R0K created a Page  -  Dec 24, 2010
836 

I'm starting a new bot on IRC and I've finished the framework for it, so I decided to post it. It only has the IRC protocol's that I'm going to use, so some are excluded.

AnaBotNowYourGone created a Page  -  Jun 06, 2010
951 

I'm kind of new to scripting Xchat with python. But this is a simple "On Join" script for Xchat.

 Respond   Python  
AnaBotNowYourGone created a Page  -  Jun 05, 2010

A very simple thing I created. Just copy and paste the code and you're good to go!

AnaBotNowYourGone created a Page  -  May 02, 2010
968 

READ BEFORE USING This is a simple Pounds To Ounces and Ounces To Pounds converter! Type oz2lb() for ounces to pounds. Type lb2oz() for pounds to ounces. ALL NUMBERS YOU ENTER MUST HAVE A DECIMAL IN THEM! DO NOT TYPE 15, TYPE 15.0! NOT ADDING A DECIMAL MAY LEAD TO A WRONG ANSWER! ;) Have fun!

 Respond   Python  
AnaBotNowYourGone created a Page  -  May 02, 2010
3,216 

Okaay... this is how this one works. You simply type something, press enter, and then it will respond to you! You can have your own conversation with a... err... O.o

armagidon created a Page  -  Mar 27, 2010
2,947 

Skype Bot :)) need a Skype4Py API and python 2.6

armagidon created a Page  -  Mar 20, 2010
523 

This script search md5 =) Download Python : http://python.org/ftp/python/2.6.4/python-2.6.4.msi

 Respond   Python  
armagidon created a Page  -  Mar 17, 2010
684 

The Lockerz Check script written in python 2.6 , this check lockerz ptzplace and when open market play winsound Download Python : http://python.org/ftp/python/2.6.4/python-2.6.4.msi

RJosh created a Page  -  Dec 02, 2009
546 

I had an idea of making a lyrics GUI for iTunes and the current track. I got as far as making the object to retrieve the info and get the lyrics, and then stopped.

RJosh created a Page  -  Dec 02, 2009
970 

I started working on a PyBot for IRC and needed a way to filter some things and needed a masking function that i couldn't find for USERS and HOSTS.

Lord-Harlot created a Page  -  Oct 16, 2009

Decided to play around with python for a bit. I saw anish's 8ball in perl and I thought I would do one in python.

PATX created a Page  -  Aug 06, 2009
151 

phile. is a bare bones security system. it uses one global password. and is run using python and cgi. making it usable on all web servers that have python. you can use this three different ways... one to just protect one page. two to protect many pages of the same site with one global pass... three to protect one page then have other security on different pages.

PATX created a Page  -  Jul 18, 2009
1 493 

to install (via wget) and use:http://www.riverbankcomputing.co.uk/software/pyqt/download $ python p-edit.py

PATX created a Page  -  Jul 15, 2009
574 

fastpatx version codename fawn new features by patx & azazel

PATX created a Page  -  Jun 01, 2009
1 566 

a small gui in python and pyqt4 to update your status to twitter. to run u need:

supafreky created a Page  -  Jan 24, 2009
1,903 

Connects to an IRC server you specify and idles. Basically this is a frame for an IRC bot.

 Respond   Python  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.