GithubHelp home page GithubHelp logo

the7day / jabbapylib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jabbalaci/jabbapylib

0.0 2.0 0.0 4.3 MB

A Python library that I use for my projects.

Home Page: https://pythonadventures.wordpress.com/2011/09/06/jabbapylib/

License: GNU General Public License v3.0

Shell 0.38% Python 99.62%

jabbapylib's Introduction

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.

jabbapylib's People

Contributors

jabbalaci avatar

Watchers

James Cloos avatar August Tu 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.