Skip to content

Releases: gijzelaerr/python-snap7

3.0.0 — Pure Python Rewrite

18 Mar 08:54

Choose a tag to compare

python-snap7 3.0.0 — Pure Python Rewrite

This is a major release that completely rewrites python-snap7 as a pure Python S7 communication library. The C snap7 shared library is no longer used — the entire protocol stack (TPKT, COTP, and S7) is now implemented in pure Python.

The name "python-snap7" is historical — the library originally started as a Python wrapper around the Snap7 C library. As of this release, the C library is no longer needed, but the name is kept for backwards compatibility.

What's new

  • Pure Python implementation — no native dependencies, no shared libraries
  • Works everywhere — any platform that runs Python 3.10+, including ARM, Alpine Linux, and other environments where the C library was difficult or impossible to install
  • Easier to extend — new features and protocol support can be added directly in Python
  • Complete TPKT (RFC 1006) and COTP (ISO 8073) transport layer implementation
  • Native S7 protocol PDU encoding/decoding
  • Pure Python server implementation for testing and simulation
  • Full type annotations with mypy strict mode
  • CLI interface for running an S7 server emulator (pip install "python-snap7[cli]")

Breaking changes

This release completely breaks with the previous approach of wrapping the C snap7 shared library. While the public API is largely the same, this is a fundamental change under the hood. If you experience issues:

  1. Please report them on the issue tracker with a clear description and the version you are using (python -c "import snap7; print(snap7.__version__)")
  2. As a workaround, pin to the last pre-3.0 release: pip install "python-snap7<3"

Thanks

Special thanks to the following people for testing, reporting issues, and providing feedback during the 3.0 development:

2.1.1

18 Mar 08:42

Choose a tag to compare

Fix Read the Docs build configuration for pre-3.0 documentation.

  • Fix .readthedocs.yaml to install from pyproject.toml extras instead of missing requirements-dev.txt
  • Add mock imports in doc/conf.py so autodoc works without the native snap7 C library on RTD
  • Use sphinx_rtd_theme for consistent styling

v2.1.0

24 Feb 07:49
0810f36

Choose a tag to compare

What's Changed

Bug Fixes

  • Fix PLC setter functions for memoryview compatibility (#575)
  • Cache error_text() instead of check_error() (#552)

Improvements

  • Add ASCII validation in set_string() with isascii() (#561)
  • Update read_multi.py example (#563)
  • Code quality improvements and comprehensive documentation (#568)
  • Fix typo: ussage -> usage (#564)

CI/CD & Infrastructure

  • Modernize CI/CD: switch to uv, fix Python 3.11+ compatibility (#576)
  • Drop Ubuntu 20.04 from CI matrix (#562)

Supported Python versions

  • Python 3.10, 3.11, 3.12, 3.13, 3.14

Full Changelog: 2.0.2...2.1.0

2.0.2

03 Nov 09:47
0dcce7b

Choose a tag to compare

What's Changed

Full Changelog: 2.0.1...2.0.2

2.0.1

02 Nov 14:26
e3aff06

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.0.0...2.0.1

2.0.0

07 Jul 11:07

Choose a tag to compare

major release with backwards compatibility changes

This release is a restructure of the codebase, cleaning up old inconsistencies and spelling mistakes. Although attempts were made to keep the API backwards compatible, a method argument might have changed here and there. This release is also 100% typed, helping us find and fix tiny bugs and mistakes.

This makes the python-snap7 'done', all functionality is implemented and no changes in the API are expected anymore.

Most important changes

Full Changelog: 1.4.1...2.0.0

1.4.1

10 May 13:20
8612423

Choose a tag to compare

What's Changed

Full Changelog: 1.4...1.4.1

1.4

03 May 10:25
8897dd4

Choose a tag to compare

1.4

What's Changed

New Contributors

Full Changelog: 1.3...1.4

1.3

17 Jan 07:09
d26cfbe

Choose a tag to compare

1.3

What's Changed

New Contributors

Full Changelog: 1.2...1.3

1.2

25 May 09:37
5b1fa24

Choose a tag to compare

1.2

What's Changed

New Contributors

Full Changelog: 1.1...1.2