views:

2158

answers:

10

Hello,

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

+9  A: 

I like pastebot, which powers http://sial.org/pbot/paste (for example). It's Perl and uses POE.

moritz
your link to sial.org doesn't work anymore
fudgey
+8  A: 

Lodgeit is written in Python and is a nice pastebin

Florian Bösch
Ah, great. I was aware of Lodgeit but didn't know how to get its code. 10x
Eli Bendersky
Yeh, LodgdIt is great. I was actually going to post this, but I couldn't find the link. Thanks for this!
Jeremy Cantrell
+3  A: 

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.

Ignacio Vazquez-Abrams
+1  A: 

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.

Daryl Spitzer
+2  A: 

Sean O'Connor recently released sPaste|source: "a secure, open source, pastebin", based on Django.

Daryl Spitzer
A: 

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 ([email protected]). hpaste wiki. also runs in pure python is veyr light wieght and easy to setup (upload to ur site).

patx
A: 

http://pastebin.im has the capability to debug over 50 programming languages.

It is running on pastebin.com's open-source application.

John
A: 

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.

Roger Pate
+1  A: 

Pastebot may be one of the original pastebins and is distributed on CPAN and developed in github and/or gitorious these days.

Rocco Caputo
+1  A: 

Have you considered Gist from the github?

http://gist.github.com/

Gist is a simple way to share snippets and pastes with others. All gists are git repositories, so they are automatically versioned, forkable and usable as a git repository.

mikelong