Alex Rivera | Logout

What is a good open source pastebin in Python or Perl?

Asked 2008-10-20T14:54:02.357
10

I'm looking for an open-source pastebin web-application written in either Python or Perl. I need it in order to implement a web-based specialized editor for my own needs, and I want to borrow code / ideas from the pastebin since I don't have much experience in web programming.

Can you point to one (or a few) ?

Thanks in advance

Edit
Report

4 Answers

3

Stickum is written using TurboGears and supports syntax highlighting for a large number of languages thanks to its use of Pygments. You can see it in action at the Fedora Pastebin.

answered 2008-10-20T18:30:44.633
3

http://dpaste.com/ is written in Python with Django. From http://dpaste.com/about/:

This site began as an exercise. It seemed silly that Django coders didn't have a pastebin app written in Django, when writing a pastebin app is just a couple steps above "Hello, World" in complexity. Initially it was all generic views — in other words, it was some configuration info plus a couple templates — and worked great, but as I've added features some actual programming has been needed. The source to the "pure generic" version of the site is still available here. At some point I may release the latest source, but that's contingent on finding time to do the cleanup and enhancements on my list.

The book Python Web Development with Django (co-written by Paul Bissex, the creator of dpaste) contains a chapter on creating a pastebin.

answered 2008-10-22T23:16:43.790
-2

Hpaste is good. comes with pln txt and python highlighting (pygments) but u can add more easily. n if u need help u can contact the author (patx@patx.me). hpaste wiki. also runs in pure python is veyr light wieght and easy to setup (upload to ur site).

answered 2009-10-01T22:12:29.717
-2

Codepad.org is great for smallish examples, because it will compile and run your code. This is invaluable for making sure you and whomever else are on the same page. It is not open-source completely, but some pieces it uses are, and it's a good feature to consider.

answered 2009-11-19T20:17:41.793

Your Answer