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.
Release files for python-snap7 3.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_snap7-3.2.0.tar.gz | 234.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_snap7-3.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 387.8 kB
Release files / python_snap7-3.2.0.tar.gz
| Download URL | python_snap7-3.2.0.tar.gz |
|---|---|
| Size | 234.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9c00d5f7b04cd8d4a11ef1b0b73eba709d3c459d09241672421c1341639a44e
|
|
BLAKE2b-256 checksum How to use checksums |
8e7791f0430dd4cd643b584762d1699d5cc2b5c0b6604c33ec51d8de6a59a8e7
|
| 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 Sep 21, 2026.
Transparency logRelease files / python_snap7-3.2.0-py3-none-any.whl
| Download URL | python_snap7-3.2.0-py3-none-any.whl |
|---|---|
| Size | 153.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e43115d0f002b55d406790ecafff57b9c1fa4d35d7cf20baec6031ca2d2580ad
|
|
BLAKE2b-256 checksum How to use checksums |
88f65b44276be6619398366a7170c6348df09a350d4eafa62a06fad29d4dd948
|
| 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 Sep 21, 2026.
Transparency log