The eXtremeDB package you have installed contains a number of Python samples demonstrating individual features. These samples are run within the python interpreter by launching the batch command (Windows) or shell (Unix-Linux) file in the individual samples directories.
To start working with the eXtremeDB Python Wrapper the Python interpreter needs to be started with the
PYTHONPATH
environment variable correctly defined. By default, the Python Wrapper will be installed in the eXtremeDB SDK directorytarget/bin/python
(not in the Python system-wide packages directory).Unix-Linux build procedure
In Unix-Linux packages the Python samples are run in the interpreter by invoking the appropriate shell script. For example to start the
Open
sample from directorysamples/python/open
:export PYTHONPATH=../../../target/bin/python export PYTHONBIN=/opt/python32/python make target PYTHON=on ./Open.shWindows build procedure
In Windows packages the Python samples are run in the interpreter by invoking the appropriate batch script. First set the
PYTHONPATH
andPYTHONBIN
environment variables using the Windows system dialogs, or with thesetenv
command from a Windows console. For example:setenv PYTHONPATH=..\..\..\target\bin\python setenv PYTHONBIN=\opt\python32\python make target PYTHON=onWith the environment variables properly set, the Python samples can be run in the interpreter by simply invoking the appropriate batch file. For example to start the
Open
sample from directorysamples\python\open
:Open.bat
Please use the links in the following table to view instructions for running the individual samples in each group.
All Packages core Basic Python sample applications sequences Samples demonstrating use of the sequence data type With eXtremeSQL sql Python SQL sample applications With High Availability cluster Python Cluster sample applications