From c3f4bf3112cfe038b68ad1f068085c0d51e5da54 Mon Sep 17 00:00:00 2001 From: LukenShiro Date: Wed, 12 May 2010 17:38:49 +0200 Subject: development/pydblite: Updated for version 2.3 --- development/pydblite/README | 4 + development/pydblite/index.html | 207 +++++++++++++++++++++++++++++++ development/pydblite/index_fr.html | 148 ++++++++++++++++++++++ development/pydblite/pydblite.SlackBuild | 12 +- development/pydblite/pydblite.info | 8 +- development/pydblite/slack-desc | 4 +- 6 files changed, 371 insertions(+), 12 deletions(-) create mode 100644 development/pydblite/index.html create mode 100644 development/pydblite/index_fr.html (limited to 'development/pydblite') diff --git a/development/pydblite/README b/development/pydblite/README index d315119df56b0..1038a7032a03d 100644 --- a/development/pydblite/README +++ b/development/pydblite/README @@ -3,3 +3,7 @@ PyDbLite (small footprint untyped database engine in python) PyDbLite is a pure-Python in-memory database engine, using Python list comprehensions as query language instead of SQL, which stores data in a cPickled file. + +You can also use PyDbLite with MySQL and SQLite, as backends. +In order to use MySQL's adapter you will need MySQL-python +(available on SlackBuilds.org). diff --git a/development/pydblite/index.html b/development/pydblite/index.html new file mode 100644 index 0000000000000..a7a7ccc6ca7c1 --- /dev/null +++ b/development/pydblite/index.html @@ -0,0 +1,207 @@ + + + +PyDbLite + + + + + + + + +
+

PyDbLite is a pure-Python in-memory database engine, using Python list +comprehensions as query language, instead of SQL + +

It consists of one small module, PyDbLite.py. The package also provides two modules, +SQLite.py and MySQL.py. They use SQLite and MySQL backends with the +same Pythonic syntax as the pure-Python PyDbLite engine + +

To install the package, just download +it and install it by running >python setup.py install + +

Pure-Python engine

+ + + +

SQLite adapter

+

The only difference with the pure-Python module is the syntax to identify a Base and the need to specify field types on base creation +

+

For record insertion, selection, update and deletion, the syntax is the same as above. The only difference is that you can't use the drop_field() method, since dropping fields is not supported by SQLite +

The Base instance has an attribute cursor, so you can also execute +SQL expressions by db.cursor.execute(some_sql) and get the result +by results = db.cursor.fetchall() + +

MySQL adapter

+

The only difference with the pure-Python module is the syntax to identify a Base and the need to specify field types on base creation +

+ +

For record insertion, selection, update and deletion, adding or dropping fields, +the syntax is the same as above +

The Base instance has an attribute cursor, so you can also execute +SQL expressions by db.cursor.execute(some_sql) and get the result +by results = db.cursor.fetchall() + + + + \ No newline at end of file diff --git a/development/pydblite/index_fr.html b/development/pydblite/index_fr.html new file mode 100644 index 0000000000000..112dabc8ff31e --- /dev/null +++ b/development/pydblite/index_fr.html @@ -0,0 +1,148 @@ + + + +PyDbLite + + + + + + + + +
English
+

PyDbLite est un moteur de base de données en mémoire, en pur Python, qui utilise les "list comprehensions" de Python comme langage de requêtes au lieu de SQL + +

Il consiste en un seul petit module, PyDbLite.py. Pour l'installer, il suffit de le télécharger et de le mettre dans le répertoire Lib/site-packages de votre distribution Python + +

Utilisation : + +

+ + + \ No newline at end of file diff --git a/development/pydblite/pydblite.SlackBuild b/development/pydblite/pydblite.SlackBuild index 8d1ac18a18852..b8acc776d42ad 100644 --- a/development/pydblite/pydblite.SlackBuild +++ b/development/pydblite/pydblite.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for pydblite -# Copyright 2007 LukenShiro +# Copyright 2007-8-9 LukenShiro # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,9 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pydblite -SRC_PRGNAM=PyDbLite -VERSION=2.1 -ARCH=${ARCH:-i486} +VERSION=${VERSION:-2.3} +ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -34,7 +33,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCFILES="LICENCE.txt PKG-INFO $SRC_PRGNAM/doc/index.html $SRC_PRGNAM/doc/index_fr.html" +SRC_PRGNAM=PyDbLite +DOCFILES="PKG-INFO $CWD/index.html $CWD/index_fr.html" # SLKCFLAGS are not used @@ -46,7 +46,7 @@ cd $TMP rm -rf $SRC_PRGNAM-$VERSION unzip $CWD/$SRC_PRGNAM-$VERSION.zip cd $SRC_PRGNAM-$VERSION -#chown -R root:root . +chown -R root:root . chmod -R u+w,go+r-w,a-s . # Install .py source files diff --git a/development/pydblite/pydblite.info b/development/pydblite/pydblite.info index 4c9d984efa078..9957500047d97 100644 --- a/development/pydblite/pydblite.info +++ b/development/pydblite/pydblite.info @@ -1,8 +1,8 @@ PRGNAM="pydblite" -VERSION="2.1" +VERSION="2.3" HOMEPAGE="http://pydblite.sourceforge.net" -DOWNLOAD="http://downloads.sourceforge.net/pydblite/PyDbLite-2.1.zip" -MD5SUM="a9ae4fc68873d0d9641e06cdd3c24043" +DOWNLOAD="http://downloads.sourceforge.net/pydblite/PyDbLite-2.3.zip" +MD5SUM="b0bd2216f3667dced29f71dc879e18cb" MAINTAINER="LukenShiro" EMAIL="lukenshiro@ngi.it" -APPROVED="rworkman" +APPROVED="dsomero" diff --git a/development/pydblite/slack-desc b/development/pydblite/slack-desc index aef7a48382682..f67cc73aa87ca 100644 --- a/development/pydblite/slack-desc +++ b/development/pydblite/slack-desc @@ -5,7 +5,7 @@ # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. - |-----handy-ruler------------------------------------------------------| + |-----handy-ruler------------------------------------------------------| pydblite: PyDbLite (small footprint untyped database engine in python) pydblite: pydblite: PyDbLite is a pure-Python in-memory database engine, using @@ -14,6 +14,6 @@ pydblite: which stores data in a cPickled file. pydblite: pydblite: It is written by Pierre Quentel and released under BSD license. pydblite: -pydblite: http://pydblite.sourceforge.net pydblite: +pydblite: Homepage: http://pydblite.sourceforge.net pydblite: -- cgit v1.2.3