Skip to content
A Python library that I use for my projects.
Python Shell
Find file
Latest commit 24ef484 Jun 19, 2014 @jabbalaci list must be sorted
Failed to load latest commit information.
demos maximize window; XML to JSON; scrape HTML table May 17, 2013
jabbapylib list must be sorted Jun 19, 2014
logo
old jabba_webkit is used instead of simple_webkit Jan 3, 2013
tests test corrected Jun 17, 2014
.gitignore PyPI ready Jan 25, 2012
.project hierarchy changed, README updated Sep 7, 2011
.pydevproject scrapers added (bs and lx) Sep 17, 2011
01_check.sh PyPI ready Jan 25, 2012
02_sdist.sh PyPI ready Jan 25, 2012
03_upload.sh vanity stat. added to upload script Apr 6, 2012
ISSUES simple_webkit corrected, can be called several times Feb 17, 2012
LICENSE GPL license added Jan 24, 2012
MANIFEST.in small changes Feb 19, 2012
README.md badge removed Jan 8, 2014
run_curr_tests.sh test_video corrected Jun 17, 2014
run_tests.sh further tests Jan 9, 2012
setup.py TextBlob added Dec 8, 2013
sudo_apt-get_install.sh
sudo_pip_install.sh TextBlob added Dec 8, 2013

README.md

jabbapylib logo

"Nail it with jabbapylib."

jabbapylib

A lightweight, general-purpose Python library.

A small Python library that was primarily developed for my projects. This library is quite specific for Linux, I've never tried it under a different platform. I regularly extend it with new functionalities.

Tested with Python 2.7 under Ubuntu Linux.

Installation from PyPI:

The easiest way is via pip:

$ sudo pip install jabbapylib

If you already have jabbapylib and you want to upgrade to the latest version:

$ sudo pip install jabbapylib -U

The library requires some Linux packages, their list can be found in sudo_apt-get_install.sh. Download the script and execute it:

$ ./sudo_apt-get_install.sh

After the installation, you need to do the following steps if you want to use all the funcionalities of the library:

  1. I assume you use Firefox. In ~/.mozilla/firefox put a symbolic link on ~/.mozilla/firefox/XXXXXXXX.default/cookies.sqlite.
  2. Create the directory ~/tmp.

Manual Installation:

If you installed the library via pip (see the previous section), you can skip this section.

If you want to try the latest (development) version of jabbapylib, you might want to download it directly from GitHub. Here is how to get it work in that case.

Create a folder and put this project in that folder. In my case I put it in ~/python/lib/jabbapylib. That is, I have this hierarchy:

~/python/lib/jabbapylib/README.md              # this file
~/python/lib/jabbapylib/jabbapylib/config.py

etc.

Then add this folder to PYTHONPATH in your ~/.bashrc file:

PYTHONPATH=$PYTHONPATH:$HOME/python/lib/jabbapylib
export PYTHONPATH

Source .bashrc (or open a new terminal), start the Python shell and try this:

>>> from jabbapylib.say.hello import hi
>>> hi()

If you see a greetings, jabbapylib is set up properly :)

For installing the dependencies of this library, execute the following scripts:

$ ./sudo_apt-get_install.sh
$ ./sudo_pip_install.sh

For running the unit tests, you need to do some extra steps:

  1. I assume you use Firefox. In ~/.mozilla/firefox put a symbolic link on ~/.mozilla/firefox/XXXXXXXX.default/cookies.sqlite.
  2. Create the directory ~/tmp.
Something went wrong with that request. Please try again.