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