Download: SnipplrPy-0.4.tar.gz


SnipplrPy is a class written in Python to support all the functionalities offered by the great service through xml-rpc.

It covers all functions in snipplr api, plus other usefull features such as posting file contents and retrieving plain source code.


This class works on any system running Python 2.4 or newer. A snipplr api key is needed if you want use user functionalities like posting or deleting snippets.


SnipplrPy ScreenShot 1 screenshoot2 screenshoot3


Download the file, uncompress it and:

sudo python install



[code]from SnipplrPy import *
snipplr = SnipplrPy()
snipplr.setup(“your api key code”)[/code]

Getting some plugins by tag

[code]snippets = snipplr.list(“python”)

for snippet in snippets:

print snippet[“id”]

print snippet[“title”]

print snippet[“source”][/code]

Posting and deleting a snippet

[code]src=”””print “Hello World!\n””””“Hello world python”, src, “python programming simple”)

snipplr.delete(1273) [/code]

Posting a whole file and getting plain source code

[code]snipplr.post_file(“/usr/local/src/”,”Simple python snippet”,”python simple”)

src = snipplr.get_source_plain_text(1273)[/code]

License: — Snipplr Python Wrapper

Copyright (C) 2007 – Francisco Jesús Jordano Jiménez <>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place – Suite 330, Boston, MA 02111-1307, USA.

Some ideas and code taken from Avinash Vora ( and
his tool SnipplrCLI (

5 thoughts on “SnipplrPy

  1. ross

    It’s so cool the new look of your blog!! i like it so much. Congratulations!!There’s a good idea the plugin. Carry on creating! 😀 Love u!

  2. Oto Brglez ml.


    Can I please use you’r API for my new project? I want to make simple and fast cross-platform python based (GTK/Glade) GUI for Snipplr.

    Please contact me!
    Oto Brglez

  3. arcturus

    Hi Oto

    Please feel free to use, reuse, rewrite, learn or whatever you want to do with this piece of shared knowledge 😀


  4. Blossom Fencil

    “Awesome blog, it’s just like a sport for me! It Can Be so infomative and usefull, many thanks a lot! If you publish more of this great stuff, I’ll pay a visit to your website again!”

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.