Installation

here you can find out how to install python-snap7 on your system.

Snap7

To use python-snap7 you need to have the snap7 library installed.

Ubuntu

If you are using Ubuntu you can use the Ubuntu packages from our launchpad PPA. To install:

$ sudo add-apt-repository ppa:gijzelaar/snap7
$ sudo apt-get update
$ sudo apt-get install libsnap71 libsnap7-dev

Windows

Download the zip file from the sourceforce page. Unzip the zip file, and copy* releaseWindows<Win64/Win32>snap7.dll* somewhere in you system PATH, for example C:WINDOWSsystem32. Alternatively you can copy the file somewhere on your file system and adjust the system PATH.

Compile from source

If you are not using Ubuntu or if you want to have more control you can download the latest source from the sourceforce page and do a manual compile. Download the file and run:

$ p7zip -d snap7-full-1.0.0.7z  # requires the p7 program
$ cd build/<platform>           # where platform is unix or windows
$ make -f <arch>.mk             # where arch is your architecture, for example x86_64_linux

For more information about or help with compilation please check out the documentation on the snap7 website.

snap7-python

python-snap7 is available on PyPI. You can install it by using pip:

$ pip install python-snap7

You can also install it from the git repository or from a source tarball:

$ python ./setup.py install