• Home
  • About
  • Blog Archives
  • Contact Me
  • FAQ
  • The Big 101
Subscribe: Posts | Comments | E-mail

jonobacon@home

Posted on February 26, 2010 - by jono

Acire 0.3 Released

Acire Desktop Opportunistic Developers Ubuntu

Everyone’s favorite tool to browse Python snippets, run them, learn from them and incorporate them into your programs has been released! This new release has the following new features:

  • Translated – Acire has now got support for multiple languages, but this is very new so it needs your translations! Want to help make Acire rocking in your language? Easy. Go and contribute here!
  • Edit Snippets – Acire now allows you to edit the code inside a snippet and execute it within Acire itself.
  • Save Snippets – You can now save the snippets, even if they have been edited, into a specific file on your system.
  • Look and Feel Polish – a little bit of spit and shine has been applied to respect your chosen monospace font, use a scalable icon for docky and a few other little changes.

As I have mentioned before, I the snippets that Acire shows and the Acire itself are in two separate packages (this means that others can write viewers to view the snippets on other environments).

Installing Acire and it’s snippets is simple. First install the daily snippets PPA (this will deliver new snippets to your system on a daily bases):

sudo add-apt-repository ppa:python-snippets-drivers/python-snippets-daily
sudo apt-get update
sudo apt-get install python-snippets

Now install the Acire PPA:

sudo add-apt-repository ppa:acire-team/acire-releases
sudo apt-get update
sudo apt-get install acire

Right now packages are available for Ubuntu 10.04 Lucid Lynx and Ubuntu 9.10 Karmic Koala packages should be available soon.

We need your snippets!

The fuel that makes Acire rock is the library of snippets. To really get the most out of Acire and it’s library of snippets, we need you to contribute snippets that demonstrate something in Python. These snippets are really helpful in showing us all how a given Python modules works, and really helpful in lowering the bar to development. Here is how you can contribute a snippet!

Step 1: Grab the library

Just run:

bzr branch lp:python-snippets

Step 2: Create your snippet

A snippet should demonstrate a specific feature in a given module or in the Python language. This could include showing how to use a specific widget, a feature of that widget, or another function.

python-snippets is divided into sub-directories which outlines the theme of the snippets. You should pick the most appropriate directory to put your snippet it, and add it there. If a suitable directory does not exist already, create it and add it there.

Step 3: Add metadata

The way Acire pulls out the snippets is by detecting some specific metadata additions to comments at the top of the file You should now add the following meta data as comments to the top of the file:

# [SNIPPET_NAME: A Short Name For The Snippet]
# [SNIPPET_CATEGORIES: Category]  <-- see CATEGORIES file for existing categories
# [SNIPPET_DESCRIPTION: A single line description of the snippet]
# [SNIPPET_AUTHOR: Your Name <your@emailaddress.com>]
# [SNIPPET_LICENSE: An Open Source license (from the LICENSES file)]

Here is an example:

# [SNIPPET_NAME: Playing a Pipeline]
# [SNIPPET_CATEGORIES: GStreamer]
# [SNIPPET_DESCRIPTION: Construct and play a pipeline]
# [SNIPPET_AUTHOR: Jono Bacon <jono@ubuntu.com>]
# [SNIPPET_LICENSE: GPL]

You now need to add your file to your branch with:

bzr add your-snippet.py

Step 4: Propose it for merging

With your new snippet ready, it is time to propose it for inclusion in the main python-snippets library.

First, commit your changes to your local branch with:

bzr commit

Now push it to your own branch on Launchpad:

bzr push lp:~<your launchpad username>/python-snippets/<name of your branch>

As an example:

bzr push lp:~jonobacon/python-snippets/gstreamer-snippets

Now go to https://code.launchpad.net/python-snippets and you should see your branch listed there. Click on it and when the branch page information page loads click on the Propose for merging link. Add a short description of what you examples do in the Initial Comment box and then click the Propose Merge button.

We will then review the merge and if it looks good, add it to python-snippets and it will be delivered to Acire users in the next daily package upload. :-)



This entry was posted on Friday, February 26th, 2010 at 11:56 pm and is filed under Acire, Desktop, Opportunistic Developers, Ubuntu. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

18 Comments

We'd love to hear yours!



  1. Visit My Website

    February 27, 2010

    Permalink

    Bruno Girin said:

    Jono, when I start Acire, I have only 3 categories in the top drop-down: PyGTKSourceView, PyGTK and Cairo. However, when I download a branch of python-snippets, I have a lot more categories (pythoncore, pythonvte, pattern, notify-osd, etc). Shouldn’t those other categories be available in Acire too?

    Reply


    • Visit My Website

      February 27, 2010

      Permalink

      jono said:

      Did you install the daily PPA of Python Snippets?

      Reply


      • Visit My Website

        February 27, 2010

        Permalink

        Bruno Girin said:

        Yes I have python-snippets daily installed but it looks like the karmic version only includes pygtk and pygtksourceview. I removed and re-installed it just to make sure but it doesn’t make any difference.

        Reply


        • Visit My Website

          February 27, 2010

          Permalink

          jono said:

          There is a problem with the package it seems, Bruno. Hang tight while I try and figure out what is going on. Sorry about this!

          Fortunately because you are subscribed to the daily PPA, you should just get a brand new working package automatically soon.

          Reply


  2. Visit My Website

    February 27, 2010

    Permalink

    Jochen Skulj said:

    Great tool to improve your python knowledge. Just tried to translate it (German), but I think not all strings are translatable yet. Or am I wrong? I didn’t find the strings »Execute« or »Copy« in Launchpad to translate.

    Reply


    • Visit My Website

      February 27, 2010

      Permalink

      DeeJay1 said:

      These strings come from GTK, soe they must me translated there not in Acire

      Reply


      • Visit My Website

        February 27, 2010

        Permalink

        DeeJay1 said:

        s/soe/so/ s/me/be/

        (never type with the left hand while eating breakfast…)

        Reply


        • Visit My Website

          February 27, 2010

          Permalink

          Jochen Skulj said:

          Ok, thanks for this information. I translated acire while having breakfast, but I hope the translations are ok though.

          Reply


  3. Visit My Website

    February 27, 2010

    Permalink

    Shingi said:

    Great tool Jono. when should we expect packages for 9.10? Apologies for not so being patient.

    Reply


    • Visit My Website

      March 5, 2010

      Permalink

      Tim said:

      I’m also curious as to whether we can hope to see new packages released for 9.10.

      thanks

      Reply


  4. Visit My Website

    February 27, 2010

    Permalink

    mattmole said:

    Hi Jono,

    When Lucid is released, will you provide instructions for adding the Python snippets using groundcontrol? This would help out none command line users.

    Matt :)

    Reply


  5. Visit My Website

    February 27, 2010

    Permalink

    mattmole said:

    Great app by the way!

    Reply


  6. Visit My Website

    February 27, 2010

    Permalink

    jef Spaleta said:

    As a followup to our sidebar discussion elsewhere.

    You might want to consider requiring all snippets submitted for inclusion be licensed BSD to lower the complexity of licensing compliance of resulting applications.

    Sort of how launchpad translations moved to a policy of BSD for all translation submissions.

    Since the purpose of the snippet collection in Acuire is explicitly about code reuse a policy of BSD only for the snippet library now, may help prevent licensing compliance confusion later as quickly built apps mature and redistribution issues become important to the application authors down the road 6 months to a year from now.

    -jef

    Reply


  7. Visit My Website

    February 28, 2010

    Permalink

    Martijn said:

    Great program!

    The dependencies of the PPA-package are wrong, though. It misses python-gtksourceview and python-gnomeprint.

    Reply


  8. Visit My Website

    March 1, 2010

    Permalink

    Karl said:

    How deep is the snippets archive aiming to be?

    Should django snippets be added even if they are not able to do anything useful if executed?

    This could be very interesting if we could plug into Anjuta and use the snippets as templates.

    Reply


  9. Visit My Website

    March 12, 2010

    Permalink

    Diego Castro said:

    Can anyone tell how I should go and get the dailly snippets and the acire program, as source… so I can try and built them on my 9.04 (I know I’m outdated :) )

    Reply


Leave a Reply


Here's your chance to speak.

Click here to cancel reply.

  1. Name (required)

    Mail (required)

    Website

    Message

  • Ad Ad Ad Ad
  • Prepare For Awesome

  • Recent Articles

    • Fixing Ubuntu Software Center Descriptions
    • Red Hat, Canonical and GNOME Contributions
    • Ubuntu Global Jam: Start Your Engines!
    • Awesome GUADEC Espresso and Coffee Bar
    • Team Reporting
    • The Five Horsemen
    • Community Leadership Summit 2010 This Weekend!
    • Ahmed Kamal Joins The Horsemen
    • Severed Fifth Update
    • Rocking The LoCo Council
  • Recent Comments

    • Inge Wallin on Red Hat, Canonical and GNOME Contributions
    • Anon on Red Hat, Canonical and GNOME Contributions
    • Greg on Red Hat, Canonical and GNOME Contributions
    • Jim on Red Hat, Canonical and GNOME Contributions
    • Adam Williamson on Red Hat, Canonical and GNOME Contributions
    • Eddward on Red Hat, Canonical and GNOME Contributions
    • HunterA3 on Red Hat, Canonical and GNOME Contributions
    • ScottK on Fixing Ubuntu Software Center Descriptions
    • Contribuciones a GNOME – Red Hat 16%, Canonical 1% | Ubunlog on Red Hat, Canonical and GNOME Contributions
    • ah on Red Hat, Canonical and GNOME Contributions
  • Flickr Photos

  •  

    February 2010
    M T W T F S S
    « Jan   Mar »
    1234567
    891011121314
    15161718192021
    22232425262728
  • jb@h Rockstars This Year

    • ethana2 (30)
    • Zac (17)
    • nixternal (16)
    • Tom (12)
    • Bruno Girin (11)
    • James Duncan (11)
    • Adam Williamson (10)
    • Anon (10)
    • Brandon Tomlinson (10)
    • Jef Spaleta (10)
© 2008 jonobacon@home - At home with Jono Bacon, Community Manager and Author