9

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

brian d foy
  • 129,424
  • 31
  • 207
  • 592
Eli Bendersky
  • 263,248
  • 89
  • 350
  • 412

10 Answers10

12

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

cstamas
  • 378
  • 2
  • 13
moritz
  • 12,710
  • 1
  • 41
  • 63
11

Lodgeit is written in Python and is a nice pastebin

brian d foy
  • 129,424
  • 31
  • 207
  • 592
Florian Bösch
  • 27,420
  • 11
  • 48
  • 53
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.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
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.

Daryl Spitzer
  • 143,156
  • 76
  • 154
  • 173
  • 1
    Adding a correction to this this nice old answer -- the core dpaste.com engine is no longer open source. However, on http://dpaste.com/opensource I do link to the original source referenced in this answer, and to a similar open source pastebin app I included in the Django book I co-wrote. – Paul Bissex Dec 07 '17 at 15:12
1

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

Rocco Caputo
  • 104
  • 3
-1

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
  • 3,694
  • 2
  • 35
  • 40
-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).

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

-3

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

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

  • Dead link. Also I don't think there is such a thing as "pastebin.com's open-source application"; if there is, a link to it is needed. – Paul Bissex Dec 07 '17 at 15:08
-3

I've had a pretty good experience with the open-source PHP Stikked: http://code.google.com/p/stikked

Its written in CodeIgniter and installation is relatively painless.

superkelvint
  • 178
  • 1
  • 5