Skip to main content
https://img.shields.io/pypi/v/python-snap7.svg https://img.shields.io/pypi/pyversions/python-snap7.svg https://img.shields.io/github/license/gijzelaerr/python-snap7.svg https://github.com/gijzelaerr/python-snap7/actions/workflows/test.yml/badge.svg https://readthedocs.org/projects/python-snap7/badge/

python-snap7

python-snap7 is a pure-Python library for communicating with Siemens S7 PLCs using the classic S7 protocol. It supports S7-300 and S7-400 controllers, as well as S7-1200 and S7-1500 controllers with PUT/GET access enabled. It supports Python 3.10+ on Windows, Linux, and macOS without native dependencies.

Installation

Install from PyPI:

pip install python-snap7

Quick start

from s7 import Client

client = Client()
client.connect("192.168.1.10", 0, 1)
data = client.db_read(1, 0, 4)
client.disconnect()

The s7 package is the recommended import. The snap7 package name is also available for backwards compatibility.

Documentation

Read the full documentation at python-snap7.readthedocs.io.

The safe volunteer hardware-test procedure is in Real-PLC acceptance testing.

Metadata

Release files for python-snap7 3.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-snap7 3.2.1
File Size Uploaded
python_snap7-3.2.1.tar.gz 295.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-snap7 3.2.1
File Interpreter ABI Platform
python_snap7-3.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 451.5 kB

Release files / python_snap7-3.2.1.tar.gz

Download URL python_snap7-3.2.1.tar.gz
Size 295.4 kB
Tags Source
SHA-256 checksum
How to use checksums
15748f8423e3726457f6c4d0202aabde4ad65f2b809c2c1e7ee4f2f776509c2b
BLAKE2b-256 checksum
How to use checksums
3aafc9600d0de339469815284a1c3657a9376e17f8a5ff81c3d993f2682b82c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / python_snap7-3.2.1-py3-none-any.whl

Download URL python_snap7-3.2.1-py3-none-any.whl
Size 156.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05d65110169c3ef2edea2aaeb23be598527c46877d5546ee0a7e61a7e37ab198
BLAKE2b-256 checksum
How to use checksums
e919dd8ae9e240eddbadeee9e3b68115b28766e3ac25c755ae2af7c6cc87a566
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.2.1 This release

2 release files

3.2.0

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.1.0

5 release files

2.0.2

5 release files

2.0.1

5 release files

2.0.0

5 release files

1.4.1

5 release files

1.4

5 release files

1.3

6 release files

1.2

5 release files

1.1

5 release files

1.0

1 release file

0.11

1 release file

0.10

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3.1

1 release file

0.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page