How I can use Basex as embedded python datastorage?

Monday, 26 March 2012 · 5 messages
AG
Andrey Ganyushkin26 Mar 2012 14:27 #
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
JR
Jan Vlčinský (TamTam Research)26 Mar 2012 14: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 at gmail.com http://cz.linkedin.com/in/vlcinsky
Quoted text · Andrey Ganyushkin · 24 lines
On 26 March 2012 14:27, Andrey Ganyushkin <andy at 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
AG
Andrey Ganyushkin26 Mar 2012 14:54 #
Thanks for an explanation, Jan Vlčinský писал 2012-03-26 16:38:
Quoted text · Jan Vlčinský (TamTam Research) · 3 lines
> Hi Andrey > Interesting question. Let me think a bit about it: >
Embeded: means bound to locally installed application.
Quoted text · Jan Vlčinský (TamTam Research) · 1 line
> This means,
the data storage shall be located somewhere close to the app itself, I would think of subdirectory.
Quoted text · Jan Vlčinský (TamTam Research) · 1 line
> 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).
Quoted text · Jan Vlčinský (TamTam Research) · 1 line
> 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).
Quoted text · Jan Vlčinský (TamTam Research) · 1 line
> 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.
Quoted text · Jan Vlčinský (TamTam Research) · 2 lines
> My conclusion: > Trying to
use BaseX as embeded data storage for Python app is not easy.
Quoted text · Jan Vlčinský (TamTam Research) · 1 line
> 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.
Quoted text · Jan Vlčinský (TamTam Research) · 4 lines
> With best regards > Jan > > ING. JAN
VLČINSK
Quoted text · Jan Vlčinský (TamTam Research) · 5 lines
> 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 at gmail.com [3]
Quoted text · Jan Vlčinský (TamTam Research) · 1 line
>
Quoted text · Jan Vlčinský (TamTam Research) · 7 lines
> > On 26 March 2012 14:27, Andrey Ganyushkin <andy at gwspace.ru [5]> wrote: > >> Hi All >> >> How
I can use Basex as embedded python datastorage?
Quoted text · Jan Vlčinský (TamTam Research) · 2 lines
>> >> It's possible? I
can't find the answer to this question.
Quoted text · Jan Vlčinský (TamTam Research) · 8 lines
>> >> -- >> >> BEST REGARDS, >> >> Andrey Ganyushkin >> >> BaseX-Talk mailing
list
Quoted text · Jan Vlčinský (TamTam Research) · 2 lines
>> BaseX-Talk at mailman.uni-konstanz.de [1] >>
-- BEST REGARDS, Andrey Ganyushkin Links: ------ [1] mailto:BaseX-Talk at mailman.uni-konstanz.de [2] https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk [3] mailto:jan.vlcinsky at gmail.com [4] http://cz.linkedin.com/in/vlcinsky [5] mailto:andy at gwspace.ru
AG
Andrey Ganyushkinin reply to Charles Duffy, 26 Mar 2012, 18:4626 Mar 2012 17:10 #
It's nice solution. :) Charles Duffy писал 2012-03-26 18:46:
Quoted text · Andrey Ganyushkin · 4 lines
> 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.
Quoted text · Charles Duffy · 2 lines
> > You could do this with a JVM-based
interpreter, such as Jython.
Quoted text · Charles Duffy · 3 lines
> > > BaseX-Talk mailing
list
Quoted text · Charles Duffy · 2 lines
> BaseX-Talk at mailman.uni-konstanz.de >
-- BEST REGARDS, Andrey Ganyushkin
CD
Charles Duffyin reply to Andrey Ganyushkin, 26 Mar 2012, 14:2726 Mar 2012 18:46 #
Quoted text · Andrey Ganyushkin · 4 lines
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.

⚡Generated with XQuery