News
===============================
+* `2013-05-29` **[EJDB Python 2.7.x binding available](https://github.com/Softmotions/ejdb/blob/master/pyejdb/)**
* `2013-05-06` **[Ruby binding available](https://github.com/Softmotions/ejdb/blob/master/rbejdb/README.md)**
* `2013-05-02` **[NodeJS win32 module available](https://github.com/Softmotions/ejdb/blob/master/tcejdb/WIN32.md#ejdb-nodejs-module-installation)**
* `2013-04-25` **[EJDB and TokyoCabinet API ported to Windows](https://github.com/Softmotions/ejdb/blob/master/tcejdb/WIN32.md)**
* [Installation](#installation)
* [Samples](#ejdb-nodejs-samples)
* [NodeJS API](#ejdb-nodejs-api)
-* **[Python3 binding](https://github.com/Softmotions/ejdb/blob/master/pyejdb/)**
+* **[Python 2.7/3.x binding](https://github.com/Softmotions/ejdb/blob/master/pyejdb/)**
* **[Lua binding](https://github.com/Softmotions/ejdb/blob/master/luaejdb/)**
* **[Java binding](https://github.com/Softmotions/ejdb/blob/master/jejdb/)**
* **[Ruby binding](https://github.com/Softmotions/ejdb/blob/master/rbejdb/)**
-----------------------------------
-EJDB Python3 binding
+EJDB Python binding
==================================
One snippet intro
ejdb.close()
```
-**[EJDB Python3 binding page](https://github.com/Softmotions/ejdb/blob/master/pyejdb/README.md)**
+**[EJDB Python 2.7/3.x binding page](https://github.com/Softmotions/ejdb/blob/master/pyejdb/README.md)**
EJDB Lua binding
==================================
-Embedded JSON database library Python3 binding
+Embedded JSON database library Python 2.7/3.x binding
============================================================
Installation
**Required tools/system libraries:**
* gcc
-* **Python3 >= 3.2**
+* **Python3 >= 3.2 or Python2: 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))
**(A) Using pip**
-`pip` for python3 should be installed (`sudo apt-get install python3-pip`)
+`pip` for python3 or python2 should be installed (`sudo apt-get install python3-pip` | `sudo apt-get install python-pip`)
```
- sudo pip-3.2 install pyejdb
+ sudo pip install pyejdb
Upgrading:
- sudo pip-3.2 install pyejdb --upgrade
+ sudo pip install pyejdb --upgrade
```
**(B) Installing directly from sources**
```
-**(C) Installing on Ubuntu/Debian**
+**(C) Installing on Ubuntu/Debian (only for Python3.2)**
```
sudo add-apt-repository ppa:adamansky/ejdb
"libejdb_version"
]
-version_tuple = (1, 0, 8)
+version_tuple = (1, 0, 9)
def get_version_string():
return '.'.join(map(str, version_tuple))
setup(
name="pyejdb",
- version="1.0.8",
+ version="1.0.9",
url="http://ejdb.org",
keywords=["ejdb", "tokyocabinet", "nosql", "database", "storage", "embedded", "mongodb", "json"],
- description="Python3 binding for EJDB database engine.",
+ description="Python 2.7/3.x binding for EJDB database engine.",
long_description=open("README.md", "r").read(),
author="Adamansky Anton",
author_email="adamansky@gmail.com",