Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Multimedia > amaroK Scripts

    The amaroK bindings for Python 0.1.0

    Download button

    No screenshots available
    Downloads: 483  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Manuel Amador | More programs
    GPL / FREE
    December 29th, 2005, 22:10 GMT
    ROOT / Multimedia / amaroK Scripts

     Read user reviews (0)  Refer to a friend  Subscribe

    The amaroK bindings for Python description

    The amaroK bindings for Python is a fairly complete amaroK remote control class.

    The amaroK bindings for Python is a fairly complete amaroK remote control class. It is extremely useful for amaroK scripts and other applications. Basically, you can remote control amaroK by calling methods from an amaroKProxy instance.

    In addition, it implements the Observer/Observable pattern so you can deal with events in an object-oriented, loosely coupled fashion. Even better, you can call an amaroKProxy instance's collection.getSong(filename) method to get a Song object, with track, artist, album name, and elegant "Artist - Track name" strings.

    Nearly all DCOP functions for communication with amaroK are implemented.

    It will use KDE bindings' DCOP module if available, otherwise it will default to the command-line DCOP dcop command, through python-commandsplus. If using KDE bindings, a slave process is spawned, and IPC is used to marshal and unmarshal function calls, so as to not contaminate your application's sys.modules with KDE's Python modules. This all happens automatically in the background.

    To use it, you import the module in your script and instantiate an amaroKProxy instance, then call your instance's startMonitoring() method, which will start reading from standard input, monitoring for amaroK's events. You can then sleep(1) until your instance's .isAlive() method returns False (which means amaroK is now gone.

    amaroKProxy is an Observable class, and so are its members:

    - player
    - contextBrowser

    This means that you can implement Observer objects or Threads in your amaroK script, and have them be notified of amaroK events, instead of having to read standard input and act accordingly (plus error-prone exceptional condition handling).

    Requirements:

    · Python 2.2 or later
    · The Python commandsplus module
    · The Python Observable module

    Installation:

    python setup.py install # to build and install directly
    python setup.py bdist_rpm # to prepare an RPM

    Product's homepage

      


    TAGS:

    amarok bindings | remote control | amarok script | amarok | bindings | Python

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM