Skip to main content

pylimer-tools

Run Tests Test Coverage (Python) Test Coverage (C++) Total Coverage Docs PyPI version Downloads License DOI

Pronunciation: "pylimer” like "pü-limer”, with the "py” as in the German word "müde” (IPA: /ˈpyːlɪmɚ/).

pylimer-tools is a toolkit for simulation, analysis, and data handling of bead–spring polymer systems in Python and C++. It combines high-level Python utilities with performant C++ extensions for common tasks in computational polymer science.

Table of Contents

1. Features

A selection of features includes:

  • Monte Carlo structure (network "universe”) generation
  • Dissipative Particle Dynamics (DPD) simulation with slip-springs
  • Maximum Entropy Homogenization Procedure (MEHP) with and without slip-links
  • LAMMPS output readers: data, dump, thermodynamic outputs
  • Network analysis: loops, chain reconstruction, degree statistics
  • Structural metrics: radius of gyration, end-to-end distance, distributions
  • Normal mode analysis for stress autocorrelation, loss and storage modulus
  • Command line interfaces for batch workflows

2. Installation

Requirements

Python >= 3.9.

Stable Release

Stable release from PyPI:

pip install pylimer-tools

Build from Source

Requirements

Build requires CMake, a C++17 compiler, and (optionally) Ninja for faster builds.

Additionally, the system packages flex and bison are required (winflexbison on Windows using choco) to build the dependency igraph.

Build

To build from source (compiles C++ extension):

git clone https://github.com/GenieTim/pylimer-tools.git
cd pylimer-tools
pip install -e .

Optional: Use provided helper scripts in ./bin (e.g. ./bin/build-wheel.sh, ./bin/build-tests.sh).

3. Test Installation

import pylimer_tools
import pylimer_tools_cpp

print("Installed version: {} == {}".format(
  pylimer_tools.__version__,
  pylimer_tools_cpp.__version__
))

More examples: see the examples in the documentation and their code in examples/. Additionally, the tests and the CLI Tools may serve as examples.

4. CLI Tools

Installed console scripts:

  • pylimer-generate-network – generate random bead-spring networks using our MC generation procedure
  • pylimer-analyse-networks – batch analysis / statistics given LAMMPS data (structure) files
  • pylimer-basic-lammps-stats – quick structural stats from LAMMPS data (structure) file
  • pylimer-displace-randomly – random displacement utility

Run any with --help for usage.

5. Documentation

Full documentation (API reference, tutorials, examples): https://genietim.github.io/pylimer-tools

6. Development & Testing

Clone and install in editable mode (see Installation). Then:

./bin/run-tests.sh       # full test suite (Python + C++), includes benchmarks & tests that may fail
./bin/run-tests-short.sh # quicker subset, generates coverage, is what's run in the CI
./bin/format-code.sh     # apply formatting & style (run before PR)

Generate docs:

./bin/make-stubs.sh      # builds the stubs for the C++ module
./bin/make-docs.sh       # build Sphinx HTML docs

Adding Features

  • Add tests in tests/ (unit or integration). New functionality without tests may be deferred.
  • Keep public APIs documented in docstrings so they surface in Sphinx.
  • If a change alters behavior, update existing tests rather than deleting them. Explain rationale in the PR.

7. Citing

If you use pylimer-tools in published work, please cite it. A minimal BibTeX example:

@software{pylimer-tools,
	title = {pylimer-tools},
	author = {Bernhard, Tim},
	url = {https://github.com/GenieTim/pylimer-tools},
	year = {2025},
	note = {See CITATION.cff for full metadata and related method references}
}

Also cite the specific theoretical / methodological papers corresponding to the components you use (listed in CITATION.cff).

8. Contributing

We welcome contributions on GitHub via Issues and Pull Requests.

  1. Discuss larger ideas in an Issue first (helps align scope).
  2. Fork, branch, implement, add tests & docs.
  3. Run formatting and tests locally.
  4. Submit PR referencing the Issue (if any).

See also: Code of Conduct.

9. Code of Conduct

We strive for an inclusive, respectful environment. By participating you agree to uphold the Code of Conduct. Report concerns to the maintainer email specified there.

10. Acknowledgements

The authors gratefully acknowledge financial support from the Swiss National Science Foundation (SNSF project 200021_204196).

11. License

GPL-3.0-or-later. See LICENSE.

This project includes third-party code and libraries under various compatible licenses. See THIRD_PARTY_LICENSES.md for detailed information about all third-party dependencies and their licenses.

Pronunciation Note

"pylimer” resembles "polymer”; the playful spelling emphasizes Python integration.

Metadata

Release files for pylimer-tools 0.6.0

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

Source distribution (sdist)

Source distribution for pylimer-tools 0.6.0
File Size Uploaded Provenance Actions
pylimer_tools-0.6.0.tar.gz 1.6 MB With provenance Details for pylimer_tools-0.6.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pylimer-tools 0.6.0
File Actions
pylimer_tools-0.6.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl CPython 3.14 CPython 3.14 PyEmscripten 2026.0+ WebAssembly Details for pylimer_tools-0.6.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl
pylimer_tools-0.6.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pylimer_tools-0.6.0-cp312-cp312-win_amd64.whl
pylimer_tools-0.6.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for pylimer_tools-0.6.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pylimer_tools-0.6.0-cp312-cp312-macosx_26_0_universal2.whl CPython 3.12 CPython 3.12 macOS 26.0+ universal2 (ARM64, x86-64) Details for pylimer_tools-0.6.0-cp312-cp312-macosx_26_0_universal2.whl
pylimer_tools-0.6.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pylimer_tools-0.6.0-cp311-cp311-win_amd64.whl
pylimer_tools-0.6.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for pylimer_tools-0.6.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pylimer_tools-0.6.0-cp311-cp311-macosx_26_0_universal2.whl CPython 3.11 CPython 3.11 macOS 26.0+ universal2 (ARM64, x86-64) Details for pylimer_tools-0.6.0-cp311-cp311-macosx_26_0_universal2.whl
pylimer_tools-0.6.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pylimer_tools-0.6.0-cp310-cp310-win_amd64.whl
pylimer_tools-0.6.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for pylimer_tools-0.6.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pylimer_tools-0.6.0-cp310-cp310-macosx_26_0_universal2.whl CPython 3.10 CPython 3.10 macOS 26.0+ universal2 (ARM64, x86-64) Details for pylimer_tools-0.6.0-cp310-cp310-macosx_26_0_universal2.whl
pylimer_tools-0.6.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for pylimer_tools-0.6.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pylimer_tools-0.6.0-cp39-cp39-macosx_26_0_universal2.whl CPython 3.9 CPython 3.9 macOS 26.0+ universal2 (ARM64, x86-64) Details for pylimer_tools-0.6.0-cp39-cp39-macosx_26_0_universal2.whl

Total release size: 460.7 MB

Release files / pylimer_tools-0.6.0.tar.gz

Download URL pylimer_tools-0.6.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
07c1ad4a3f0d0e04b1db2ec72c99c1e60f1d5965ad2aa69caaa1ac57abce4f9c
BLAKE2b-256 checksum
How to use checksums
279e61f33f710bb370e7286fb661ed30c2f1419462f9c0110833b34330cb78e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl

Download URL pylimer_tools-0.6.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl
Size 3.2 MB
Tags CPython 3.14 PyEmscripten 2026.0+ WebAssembly
SHA-256 checksum
How to use checksums
64b0ec031dbd11094235e34811ee900f609fa9fa66271aaa2a6563bf3b7639c5
BLAKE2b-256 checksum
How to use checksums
68314626225361d1b018896812bbd710faff43af994fc58025ec80da069e406c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp312-cp312-win_amd64.whl

Download URL pylimer_tools-0.6.0-cp312-cp312-win_amd64.whl
Size 47.3 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
2ed4ba195288b19de3cc68ca2a1b0a79cc47cb90c48dace6dba725b3dc0eedf7
BLAKE2b-256 checksum
How to use checksums
16b7f0e5653e2d63c420c547a388ae7af97c12dd450f13e016dc0c7a06adf118
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pylimer_tools-0.6.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 75.3 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
95f068187547bede605cf51cfd62c3b6a7e107cdb344f4f3884f94e9aabbdae3
BLAKE2b-256 checksum
How to use checksums
e7647a362662f795edb90eb7e675a5f2d2c7c281177a756373b0a811aee99dff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp312-cp312-macosx_26_0_universal2.whl

Download URL pylimer_tools-0.6.0-cp312-cp312-macosx_26_0_universal2.whl
Size 3.2 MB
Tags CPython 3.12 macOS 26.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
b36eae5040d508d5b68e0747c113e15400c7c3f8a7a8631b088e8b9918a21980
BLAKE2b-256 checksum
How to use checksums
42d3ed206bef34873e0c8a472253af863769760355b0d1928f51d117f5571d08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp311-cp311-win_amd64.whl

Download URL pylimer_tools-0.6.0-cp311-cp311-win_amd64.whl
Size 47.2 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
c9e84373a27ac1a50a4174cfab7741727305916219f016ab14d086e080ba7ab0
BLAKE2b-256 checksum
How to use checksums
eb6cb0d45bba80b6e68b8a38d811dc23a51773e79244a3e617ef9d3b0a1f7f8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pylimer_tools-0.6.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 75.3 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7b5da1a68e1ca39a57854ba870e2403450fb447ce3d1993bc3639a3b0b088976
BLAKE2b-256 checksum
How to use checksums
4b07a347e959c829f07cbad28fc79d016f545a4846a137e1070148f13fb4f734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp311-cp311-macosx_26_0_universal2.whl

Download URL pylimer_tools-0.6.0-cp311-cp311-macosx_26_0_universal2.whl
Size 3.2 MB
Tags CPython 3.11 macOS 26.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
d16567afba6931e3d1f7913722468a73e65920ae358716d55ee583e3a7e07a80
BLAKE2b-256 checksum
How to use checksums
ff564902cc0f794fcea666001e840788fc38c882b6c7c21145e9896ae1c6943f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp310-cp310-win_amd64.whl

Download URL pylimer_tools-0.6.0-cp310-cp310-win_amd64.whl
Size 47.2 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
4424fdf52dfb0b4029544496058775f65f08f4e8e6c41491d47b1c262e72d6e0
BLAKE2b-256 checksum
How to use checksums
f883e38065347c05d477d5f7c1db40e715cd3d26d05035835bb1ed22c5be4fd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pylimer_tools-0.6.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 75.3 MB
Tags CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
15577327fd4f5117049455c4d7a6863e3378f74b9cd38b1c6953c1fc15a73e65
BLAKE2b-256 checksum
How to use checksums
abcce0e8c3c0177a960e9132359573d8a0a43f1efc7657d8eccebf22571ad304
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp310-cp310-macosx_26_0_universal2.whl

Download URL pylimer_tools-0.6.0-cp310-cp310-macosx_26_0_universal2.whl
Size 3.2 MB
Tags CPython 3.10 macOS 26.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
bd06044ca9f0897d2cacb5c3d5d4addb0e9fab3b15b5df5bbd0a47f0a150ce37
BLAKE2b-256 checksum
How to use checksums
923bb5778b010004b05e92bf8f6c35a6d9dcf0719e6e7a088a1f043e1ef3fcd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pylimer_tools-0.6.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 75.3 MB
Tags CPython 3.9 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f4f48f9cecde1ab1eae0693e493371570d734727a4d40c298605eb32d93c2fb6
BLAKE2b-256 checksum
How to use checksums
0c079bd446aedaecf2cd2c274ffcdc98c460b207eb6e5199930be3a9672cd20b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pylimer_tools-0.6.0-cp39-cp39-macosx_26_0_universal2.whl

Download URL pylimer_tools-0.6.0-cp39-cp39-macosx_26_0_universal2.whl
Size 3.2 MB
Tags CPython 3.9 macOS 26.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
759b985fd4edf329841452af2c2b64d30ba1b9f72b1cc1aea1feba5ead608cb6
BLAKE2b-256 checksum
How to use checksums
30ae31b348ef9dd6ee51c60757b69de8d0f7bee8502cb148eaa8149fb41b88a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Security for pylimer-tools 0.6.0

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.

Full provenance

All 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for pylimer_tools-0.6.0.tar.gz

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 Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.0 This release

13 release files Full provenance

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