Silme:Tutorial:Setting up environment

From Braniecki's Wiki
Revision as of 16:23, 27 July 2008 by Zbraniecki (talk | contribs) (New page: == Overview == This section explains how to set up an environment to work with silme. === Requirements === You need Python 2.5. Nothing more. For serveral IOClientss and FormatParsers y...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

This section explains how to set up an environment to work with silme.

Requirements

You need Python 2.5. Nothing more. For serveral IOClientss and FormatParsers you will need additional modules like MySQLdb for MySQL, pysqlite for SQLite, pysvn for SVN etc.

Linux and MacOS

svn co http://svn.braniecki.net/silme/trunk/lib

And then you can write first example.py:

  1. !/usr/bin/python

sys.path.append('./lib')

def test():

 entity = Entity('id, 'value')

if __name__ == "__main__":

 test()

You can also checkout from SVN ./silme/trunk/scripts to see examples. (launch from the directory above ./scripts by: ./scripts/test.py)

Windows

Not sure... didn't try... should require nothing more than Python.