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.5.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.5.0
File Size Uploaded Provenance Actions
pylimer_tools-0.5.0.tar.gz 1.6 MB With provenance Details for pylimer_tools-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pylimer-tools 0.5.0
File Actions
pylimer_tools-0.5.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl CPython 3.14 CPython 3.14 PyEmscripten 2026.0+ WebAssembly Details for pylimer_tools-0.5.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl
pylimer_tools-0.5.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pylimer_tools-0.5.0-cp312-cp312-win_amd64.whl
pylimer_tools-0.5.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.5.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pylimer_tools-0.5.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.5.0-cp312-cp312-macosx_26_0_universal2.whl
pylimer_tools-0.5.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pylimer_tools-0.5.0-cp311-cp311-win_amd64.whl
pylimer_tools-0.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for pylimer_tools-0.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pylimer_tools-0.5.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.5.0-cp311-cp311-macosx_26_0_universal2.whl
pylimer_tools-0.5.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pylimer_tools-0.5.0-cp310-cp310-win_amd64.whl
pylimer_tools-0.5.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for pylimer_tools-0.5.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pylimer_tools-0.5.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.5.0-cp310-cp310-macosx_26_0_universal2.whl
pylimer_tools-0.5.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.5.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pylimer_tools-0.5.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.5.0-cp39-cp39-macosx_26_0_universal2.whl

Total release size: 453.0 MB

Release files / pylimer_tools-0.5.0.tar.gz

Download URL pylimer_tools-0.5.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
875d178ea73b908f84472064864e9eab3b2ec60df2317186f7fe8028ce475d11
BLAKE2b-256 checksum
How to use checksums
2b156cf3ec96286e91f072dfd36be739686b99cf961e17181d9be9edc1df7672
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.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
16bd990e6147acf52c06d8bc85d7b63c292810768a953c85f5e2cd6f9c23aebe
BLAKE2b-256 checksum
How to use checksums
21c050fd0f07110ce864b246ad48a8d9cf5344e9fc132dbf26566ea75936c18a
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.0-cp312-cp312-win_amd64.whl
Size 47.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
22916b292c15d2dc33b2dc977e58ada4f29bcdd581097cd0284fc2bd4cc57647
BLAKE2b-256 checksum
How to use checksums
45fc792400b7f6b1a18c673fc9b0a07ade0691775a9c635a566a71fc3e450128
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 73.8 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f7548c7b26bfa598f2e5dc89b107a2a011aaa94844cefc80cd002ec19162c24a
BLAKE2b-256 checksum
How to use checksums
11834de206593ce9900ffafc6ee01f12cfbd88204eb28f095d1e02aac0cd6843
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.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
e61685bc12d91e71c75b9bb407980f80b08fa121b64d547eea462db780646e8e
BLAKE2b-256 checksum
How to use checksums
3f23d0846b79feefde57b616d6285293f086d2f08290c79a42a4ac8ea0ab6f37
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.0-cp311-cp311-win_amd64.whl
Size 46.9 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
c3ada2b31630784e986c00e43d5b5263f48d472cacbb666617212c834873e938
BLAKE2b-256 checksum
How to use checksums
03012ba81a6b47b100eaff42fe4e49aaab448a35dadbc8d14ec6d43060575ee1
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 73.6 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
47e548679ab0bc542be67f9ed114aeffb2e3f6fb6ea399f3c5f352b60a22dabc
BLAKE2b-256 checksum
How to use checksums
aa4f1ba4c9587fbc7cc0d5b511f44dd628d0f92f9db81571e32146b7f78dcb14
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.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
0c1168bdd9555bdf3042b090e8b96be6e154f5e2494b1c2f2d0de29b5f47b382
BLAKE2b-256 checksum
How to use checksums
264270874257d64ccee334e1f14b2698f86300eb0c684859bd90a536fd4a513c
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.0-cp310-cp310-win_amd64.whl
Size 46.9 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
cf47b4d93f68306c1f31d86c02c75eba5d012b309d3a0c5a4c54452278280762
BLAKE2b-256 checksum
How to use checksums
3249910e48eb590789a43417a1662c0b4905908d0d89bb3428634de6605ca4b2
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 73.6 MB
Tags CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c6908bf73e362e6ded12be099468f588337ac0209690380ae26c2ed133cb9db3
BLAKE2b-256 checksum
How to use checksums
4f454f9b9dae1b4692a410febd7c63f078383d98052ef5e0edfe1b8fcff6dc9f
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.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
12b736b2620e926a611700d45256ea8f3a3185b5d9284c7d34d509167fcbd726
BLAKE2b-256 checksum
How to use checksums
06007bef273bcf6c3b13b622f7dac1c6391c8803b823afaa3031f546b1f726b8
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 73.6 MB
Tags CPython 3.9 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
addf6f5b08e31dbacdd741b50e69207693adf7a1f6b3fe36376012472dfcbca3
BLAKE2b-256 checksum
How to use checksums
9c17e769e9012fbd0f40be832dd2e0657419d73eadefb83219232b55100248c3
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 14, 2026.

Transparency log

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

Download URL pylimer_tools-0.5.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
6dae0be4bbe4663ec1c8a4f75205869daa4a6da010f9327740c7aa90ce46a38b
BLAKE2b-256 checksum
How to use checksums
4066f48001c66e46f7a046307025549dbf05b9649f15647832a71d19cef2c887
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 14, 2026.

Transparency log

Security for pylimer-tools 0.5.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.5.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 14, 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.5.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