Code Monkey home page Code Monkey logo

batchui's Introduction

BatchUI

GUI framework for creating applications doing batch operations. Think BatchRename or MP3 taggers.

https://github.com/mwicat/batchui/releases/download/v0.0.1/screenshot1.png

Installation

From source

To install using pip:

pip install -e git+https://github.com/mwicat/batchui.git#egg=batchui

Ensure you have PyQt4 installed on your system, for Debian:

sudo apt-get install python-qt4

Getting started

BatchUI is basically a GUI generator for generic applications that do bulk operations on files.

The simplest example of such application is AutoBackup. The bulk operation done by this application is just to backup every file, that is copy the old file to the new file with .bak suffix.

You can look at its code and see that it only defines two functions for BatchUI: parse_file and process_item. parse_file tells the framework how the file should be displayed in the file list and process_item tells it what it should do with parsed file when the Process button is hit by the user.

parse_file returns a dictionary with items that can be later queried by process_item. If you define an item with the key has_backup, you can later reference it as item.data['has_backup']. If you want to show this information in file list, you can add a pair of ('has_backup', 'Has backup') to the columns list that you also pass to BatchUI.

To see further possibilities that BatchUI gives you, check out the AutoRootNote application.

batchui's People

Watchers

Marek Wiewiorski avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.