Metadata-Version: 1.1
Name: pyejdb
Version: 1.0.10
Summary: Python 2.7/3.x binding for EJDB database engine.
Home-page: http://ejdb.org
Author: Adamansky Anton
Author-email: adamansky@gmail.com
License: GNU Lesser General Public License (LGPL)
Description: Embedded JSON database library Python 2.7/3.x binding
        ============================================================
        
        Installation
        ---------------------------------
        
        
        **Required tools/system libraries:**
        
        * gcc
        * **Python >= 3.x|2.7.x**
        * EJDB C library **libtcejdb** ([from sources](https://github.com/Softmotions/ejdb#manual-installation) or as [debian packages](https://github.com/Softmotions/ejdb/wiki/Debian-Ubuntu-installation))
        
        **Python binding published:** http://pypi.python.org/pypi/pyejdb
        
        **(A) Installing using pip**
        
        `pip` for python3 or python2 should be installed (`sudo apt-get install python3-pip` | `sudo apt-get install python-pip`)
        
        ```
           sudo pip install pyejdb
        
        Upgrading:
           sudo pip install pyejdb --upgrade
        ```
        
        **(B) Installing directly from sources**
        
        ```
        git clone https://github.com/Softmotions/ejdb.git
        cd ./pyejdb
        sudo python3 ./setup.py install
        ```
        
        
        **(C) Installing on Ubuntu/Debian (only for Python3.2)**
        
        ```
        sudo add-apt-repository ppa:adamansky/ejdb
        sudo apt-get update
        sudo apt-get install python3-ejdb
        ```
        
        
        One snippet intro
        ---------------------------------
        
        ```python
        import pyejdb
        from datetime import datetime
        
        #Open database
        ejdb = pyejdb.EJDB("zoo", pyejdb.DEFAULT_OPEN_MODE | pyejdb.JBOTRUNC)
        
        parrot1 = {
            "name": "Grenny",
            "type": "African Grey",
            "male": True,
            "age": 1,
            "birthdate": datetime.utcnow(),
            "likes": ["green color", "night", "toys"],
            "extra1": None
        }
        parrot2 = {
            "name": "Bounty",
            "type": "Cockatoo",
            "male": False,
            "age": 15,
            "birthdate": datetime.utcnow(),
            "likes": ["sugar cane"],
            "extra1": None
        }
        ejdb.save("parrots2", parrot1, parrot2)
        
        with ejdb.find("parrots2", {"likes" : "toys"},
                  hints={"$orderby" : [("name", 1)]}) as cur:
            print("found %s parrots" % len(cur))
            for p in cur:
                print("%s likes toys!" % p["name"])
        
        ejdb.close()
        ```
        
        
Keywords: ejdb,tokyocabinet,nosql,database,storage,embedded,mongodb,json
Platform: POSIX
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
