Hi All
How I can use Basex as embedded python datastorage?
It's possible? I can't find the answer to this question.
Hi Andrey Interesting question. Let me think a bit about it:
Embeded: means bound to locally installed application. This means, the data storage shall be located somewhere close to the app itself, I would think of subdirectory. BaseX can be installed on multiple places on one box. The only concern is about not conflicting port numbers (in case, you are going to use it as server). Python API is communicating over TCP IP, so running BaseX server would be needed for this purpose. This could be a bit unconfortable (as you never know, if port conflict would happen and other clients could theoretically connect to your server). Other way of using BaseX is using basex console, this could work without need to run a server, but you would have to handle command line calls from Python.
My conclusion: Trying to use BaseX as embeded data storage for Python app is not easy. I would think either of using BaseX server (this works for me quite well) or using some other embeded data storage (SQLite...), depending on your type of app and data.
With best regards
Jan
*Ing. Jan Vlčinský* TamTam Research s.r.o. Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic tel: +420-597 602 024; mob: +420-608 979 040 skype: janvlcinsky; GoogleTalk: jan.vlcinsky@gmail.com http://cz.linkedin.com/in/vlcinsky
On 26 March 2012 14:27, Andrey Ganyushkin andy@gwspace.ru wrote:
**
Hi All
How I can use Basex as embedded python datastorage?
It's possible? I can't find the answer to this question.
--
*Best regards*,
Andrey Ganyushkin
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Thanks for an explanation,
Jan Vlčinský писал 2012-03-26 16:38:
Hi Andrey Interesting question. Let me think a bit about it:
Embeded: means bound to locally installed application.
This means,
the data storage shall be located somewhere close to the app itself, I would think of subdirectory.
BaseX can be installed on multiple
places on one box. The only concern is about not conflicting port numbers (in case, you are going to use it as server).
Python API is
communicating over TCP IP, so running BaseX server would be needed for this purpose. This could be a bit unconfortable (as you never know, if port conflict would happen and other clients could theoretically connect to your server).
Other way of using BaseX is using basex console,
this could work without need to run a server, but you would have to handle command line calls from Python.
My conclusion: Trying to
use BaseX as embeded data storage for Python app is not easy.
I would
think either of using BaseX server (this works for me quite well) or using some other embeded data storage (SQLite...), depending on your type of app and data.
With best regards Jan
ING. JAN
VLČINSK
TamTam Research s.r.o. Slunečnicová 338/3, 734 01 Karviná
Ráj, Czech Republic
tel: +420-597 602 024; mob: +420-608 979 040
skype: janvlcinsky; GoogleTalk: jan.vlcinsky@gmail.com [3]
http://cz.linkedin.com/in/vlcinsky [4]
On 26 March 2012 14:27,
Andrey Ganyushkin <andy@gwspace.ru [5]> wrote:
Hi All
How
I can use Basex as embedded python datastorage?
It's possible? I
can't find the answer to this question.
--
BEST REGARDS,
Andrey Ganyushkin
_______________________________________________
BaseX-Talk mailing
list
BaseX-Talk@mailman.uni-konstanz.de [1]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk [2]
--
BEST REGARDS,
Andrey Ganyushkin
Links: ------ [1] mailto:BaseX-Talk@mailman.uni-konstanz.de [2] https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk [3] mailto:jan.vlcinsky@gmail.com [4] http://cz.linkedin.com/in/vlcinsky [5] mailto:andy@gwspace.ru
It's nice solution. :)
Charles Duffy писал 2012-03-26 18:46:
On 03/26/2012 07:27 AM, Andrey Ganyushkin wrote:
How I can use
Basex as embedded python datastorage? It's possible? I can't find the answer to this question.
You could do this with a JVM-based
interpreter, such as Jython.
_______________________________________________
BaseX-Talk mailing
list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de