New (Jan 12, 2017): This project has a newer version called jabbapylib3, which is written in Python 3. New things will arrive in jabbapylib3. This version here is not maintained anymore. This one was written in Python 2. I leave this project here, I won't delete it, but I encourage you to switch to jabbapylib3.
"Nail it with jabbapylib."
A lightweight, general-purpose Python library.
- Author: Laszlo Szathmary, 2011--2014 ([email protected])
- Website: https://pythonadventures.wordpress.com/2011/09/06/jabbapylib/
- GitHub: https://github.com/jabbalaci/jabbapylib
- PyPI: http://pypi.python.org/pypi/jabbapylib/
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.
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:
- I assume you use Firefox. In
~/.mozilla/firefox
put a symbolic link on~/.mozilla/firefox/XXXXXXXX.default/cookies.sqlite
. - Create the directory
~/tmp
.
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:
- I assume you use Firefox. In
~/.mozilla/firefox
put a symbolic link on~/.mozilla/firefox/XXXXXXXX.default/cookies.sqlite
. - Create the directory
~/tmp
.