Skip to main content

PyPlatec - Python Bindings for Plate Tectonics Library

Python bindings for the plate-tectonics library - a C++ library to simulate plate tectonics.

Installation

pip install PyPlatec

Requirements

  • Python 3.9 or higher
  • No compiler needed when installing from PyPI (pre-built wheels available)

Quick Start

import platec

# Create a simulation with keyword arguments (recommended)
p = platec.create(
    seed=3,
    width=512,
    height=512,
    sea_level=0.65,
    erosion_period=60,
    folding_ratio=0.02,
    aggr_overlap_abs=1000000,
    aggr_overlap_rel=0.33,
    cycle_count=2,
    num_plates=10
)

# Run the simulation
while platec.is_finished(p) == 0:
    platec.step(p)

# Get the heightmap
hm = platec.get_heightmap(p)

# Clean up
platec.destroy(p)

API Reference

platec.create()

Important: All 10 parameters are required. You can use either positional or keyword arguments.

platec.create(seed, width, height, sea_level, erosion_period, folding_ratio,
              aggr_overlap_abs, aggr_overlap_rel, cycle_count, num_plates)

Parameters:

  • seed (int): Random seed for the simulation
  • width (int): Map width in pixels
  • height (int): Map height in pixels
  • sea_level (float): Sea level (0.0-1.0, typically 0.65)
  • erosion_period (int): Erosion period (typically 60)
  • folding_ratio (float): Folding ratio (typically 0.02)
  • aggr_overlap_abs (int): Absolute overlap threshold (typically 1000000)
  • aggr_overlap_rel (float): Relative overlap threshold (typically 0.33)
  • cycle_count (int): Number of cycles (typically 2)
  • num_plates (int): Number of plates (typically 10)

Example with custom parameters:

import platec

# Keyword arguments make the code more readable
p = platec.create(
    seed=3,
    width=1000,
    height=800,
    sea_level=0.65,
    erosion_period=60,
    folding_ratio=0.02,
    aggr_overlap_abs=1000000,
    aggr_overlap_rel=0.33,
    cycle_count=2,
    num_plates=10
)

# Or use positional arguments if preferred
p = platec.create(3, 1000, 800, 0.65, 60, 0.02, 1000000, 0.33, 2, 10)
# Run simulation...

Building from Source

python setup.py build
python setup.py install

For development:

pip install -e .

For Maintainers: Creating a Release

See RELEASE.md for detailed instructions on:

  • Building wheels with GitHub Actions
  • Downloading built artifacts
  • Publishing releases to PyPI with twine
  • Testing with TestPyPI
  • Building wheels for multiple platforms

Quick release process:

# 1. Update version in setup.py and pyproject.toml
# 2. Commit changes
git commit -am "Bump version to 1.4.2"

# 3. Create and push a tag
git tag v1.4.2
git push origin master
git push origin v1.4.2

# 4. Wait for GitHub Actions to build all wheels
# 5. Download artifacts from GitHub Release or Actions tab
# 6. Upload to PyPI: twine upload *.whl *.tar.gz

License

LGPL-3.0-or-later - See LICENSE file in the repository root.

Links

Metadata

Release files for PyPlatec 1.4.3

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

Source distribution (sdist)

Source distribution for PyPlatec 1.4.3
File Size Uploaded Provenance Actions
pyplatec-1.4.3.tar.gz 55.0 kB Without provenance Details for pyplatec-1.4.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for PyPlatec 1.4.3
File Actions
pyplatec-1.4.3-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for pyplatec-1.4.3-cp314-cp314-win_amd64.whl
pyplatec-1.4.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for pyplatec-1.4.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
pyplatec-1.4.3-cp314-cp314-macosx_10_15_universal2.whl CPython 3.14 CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64) Details for pyplatec-1.4.3-cp314-cp314-macosx_10_15_universal2.whl
pyplatec-1.4.3-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for pyplatec-1.4.3-cp313-cp313-win_amd64.whl
pyplatec-1.4.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for pyplatec-1.4.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
pyplatec-1.4.3-cp313-cp313-macosx_10_13_universal2.whl CPython 3.13 CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64) Details for pyplatec-1.4.3-cp313-cp313-macosx_10_13_universal2.whl
pyplatec-1.4.3-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pyplatec-1.4.3-cp312-cp312-win_amd64.whl
pyplatec-1.4.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for pyplatec-1.4.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
pyplatec-1.4.3-cp312-cp312-macosx_10_13_universal2.whl CPython 3.12 CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64) Details for pyplatec-1.4.3-cp312-cp312-macosx_10_13_universal2.whl
pyplatec-1.4.3-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pyplatec-1.4.3-cp311-cp311-win_amd64.whl
pyplatec-1.4.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for pyplatec-1.4.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
pyplatec-1.4.3-cp311-cp311-macosx_10_9_universal2.whl CPython 3.11 CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) Details for pyplatec-1.4.3-cp311-cp311-macosx_10_9_universal2.whl
pyplatec-1.4.3-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pyplatec-1.4.3-cp310-cp310-win_amd64.whl
pyplatec-1.4.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for pyplatec-1.4.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pyplatec-1.4.3-cp310-cp310-macosx_10_9_universal2.whl CPython 3.10 CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) Details for pyplatec-1.4.3-cp310-cp310-macosx_10_9_universal2.whl
pyplatec-1.4.3-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for pyplatec-1.4.3-cp39-cp39-win_amd64.whl
pyplatec-1.4.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for pyplatec-1.4.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pyplatec-1.4.3-cp39-cp39-macosx_10_9_universal2.whl CPython 3.9 CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) Details for pyplatec-1.4.3-cp39-cp39-macosx_10_9_universal2.whl

Total release size: 5.0 MB

Release files / pyplatec-1.4.3.tar.gz

Download URL pyplatec-1.4.3.tar.gz
Size 55.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3d742526d0b867489fa61a937a53ae0504b9c2e6f1087fdfd0f4969c4ece78d8
BLAKE2b-256 checksum
How to use checksums
80edd868d0868cafa0d0f116f63862f6b9bf15ec044d144831014442994a95f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp314-cp314-win_amd64.whl

Download URL pyplatec-1.4.3-cp314-cp314-win_amd64.whl
Size 54.1 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
2e9ce80ee54edb96468e6b1ba7b92983ff28fd9ed51a711bee472e10e39832bc
BLAKE2b-256 checksum
How to use checksums
07807bbcd9150f05e87519923e024082cb3f189edf78bff33bfa5e49f3d3133c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL pyplatec-1.4.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 621.3 kB
Tags CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c8ee9804f10c96124a55001657dbf92439dbf0620954a69c89f9e6529be09c62
BLAKE2b-256 checksum
How to use checksums
517e1358775092052ec58ed36f4ec7aca02d78b38eea2a5515f469bab5339acf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp314-cp314-macosx_10_15_universal2.whl

Download URL pyplatec-1.4.3-cp314-cp314-macosx_10_15_universal2.whl
Size 131.2 kB
Tags CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
6bb0ce2782aae72f6f1972e5684c946c62dbd0ddc6190cebfa7ccd0bab9f2b55
BLAKE2b-256 checksum
How to use checksums
706660467ee3865125510ea5bf76cd134d3fa51652bdd69293a6eb038aea8028
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp313-cp313-win_amd64.whl

Download URL pyplatec-1.4.3-cp313-cp313-win_amd64.whl
Size 52.8 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
a4ad2b38912b3a004c9d8436d88b514b0086e2684cac3aa6f0f7e0660de24d52
BLAKE2b-256 checksum
How to use checksums
8e6dd2b4ac21256023e0cf79782eb0ea1c76ab387534de1b35a9dc1c0b227969
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL pyplatec-1.4.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 621.3 kB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
df3b50c19eff9d8d323f3d2d5ce11de22f4af98db5c96abbe60c48b57f3a3058
BLAKE2b-256 checksum
How to use checksums
37f5363b9233c1373b4cfdbfbb5047881ecaf4cd8d9ac269db0ad277d1219284
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp313-cp313-macosx_10_13_universal2.whl

Download URL pyplatec-1.4.3-cp313-cp313-macosx_10_13_universal2.whl
Size 131.2 kB
Tags CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
b441010f501179feadbc9bb376fa45e4fcde66d18dc6abfd65ddaa6c525713e4
BLAKE2b-256 checksum
How to use checksums
9308d1b060430c3128245cf1e55278eb13e97512bda65affd3193e0c0940b9f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp312-cp312-win_amd64.whl

Download URL pyplatec-1.4.3-cp312-cp312-win_amd64.whl
Size 52.8 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
4841063d61e2786c274690d427f0712b4a10c3a6a894a6a13734d5312acfcd5a
BLAKE2b-256 checksum
How to use checksums
4cba3cdcd67020e4e8da2c8ab796370856abc0976c0c4613d984c649fda3fa2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL pyplatec-1.4.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 621.4 kB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9b08bcbd6dffbfc8322b58aab5aeb4623fb4f5a0d511749bcc547d7037e76726
BLAKE2b-256 checksum
How to use checksums
2f6c7442712d5328c9031d1f6fe56f331e4c67bc344e7bc27aeb22387f35982d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp312-cp312-macosx_10_13_universal2.whl

Download URL pyplatec-1.4.3-cp312-cp312-macosx_10_13_universal2.whl
Size 131.2 kB
Tags CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
1c369ff03b9b1123626c9ee66c607a673cbfe90cd54b7de8c3e07270109a782c
BLAKE2b-256 checksum
How to use checksums
2eb56c1a38f79c5a4a8687cef10cb5039bef8562d7d2963043f57d7ac02f6f63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp311-cp311-win_amd64.whl

Download URL pyplatec-1.4.3-cp311-cp311-win_amd64.whl
Size 52.7 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
ab49f49edff5da1b3a1ee96affcb89c777735d35cfd873cf453874f9bf32bc32
BLAKE2b-256 checksum
How to use checksums
d391b6791fcff86caccf1bb892ddfcbe310dff0f29b7e386e62c365fb02bc269
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL pyplatec-1.4.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 621.3 kB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
34f502727201dc0279337a29d51c463a4ae8e2559bc666179dae0b8eb05b1a12
BLAKE2b-256 checksum
How to use checksums
4d992b3bc9eafcfd4059afdb5759b289d03ac61e0f7b928936de7cdf7dcb9b30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp311-cp311-macosx_10_9_universal2.whl

Download URL pyplatec-1.4.3-cp311-cp311-macosx_10_9_universal2.whl
Size 131.1 kB
Tags CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
633a56815c329063ad178cb13988ffcd2433291daf7a273c358e1e5c7721133b
BLAKE2b-256 checksum
How to use checksums
3a7dd1152943ae7d5963d6c299c19485fe4c29882dce8c8b3de7eea6c1e507e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp310-cp310-win_amd64.whl

Download URL pyplatec-1.4.3-cp310-cp310-win_amd64.whl
Size 52.7 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
244e84670e1d38e8a8eea93db1389ff516a85328314de5614b4c5244ae13f2b5
BLAKE2b-256 checksum
How to use checksums
78691092a9bcc8abfbdd9f17822e3a38308df206d89ffe9d3df117cfa67c45dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyplatec-1.4.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 653.0 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d3e1f13d0481811232638a4db28f15c8d9d7aa89a57ec6fd76669b0001c2221d
BLAKE2b-256 checksum
How to use checksums
dc2d045b3acb71b35acf8400ab9c409ed1d6cdae470b43278fb75b467b362189
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp310-cp310-macosx_10_9_universal2.whl

Download URL pyplatec-1.4.3-cp310-cp310-macosx_10_9_universal2.whl
Size 131.1 kB
Tags CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
3f48329bb088d5be31be84246e7e8fbd40a61b694df1c38da57acba8daaff34a
BLAKE2b-256 checksum
How to use checksums
c5d4bba514907374992eab1cd08760e45f5d62c77ef18ae7fd32769fdf7ee765
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp39-cp39-win_amd64.whl

Download URL pyplatec-1.4.3-cp39-cp39-win_amd64.whl
Size 52.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
6d6b45a6414bd4389819366607ca292673ab4dfea9945e9f714421f467479aea
BLAKE2b-256 checksum
How to use checksums
2bd02938dc0a92b16e899735e706e0d0c18b5d25b30555e06a7d3765a9d7733d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyplatec-1.4.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 652.9 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
cafa31380185514be2429cf2956a74d77a65d01f3169a30f4141d70299d17d40
BLAKE2b-256 checksum
How to use checksums
de9e020b0bd04eb2c89a88363488a36796af8a64e12bb84feb51906a89ab219b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pyplatec-1.4.3-cp39-cp39-macosx_10_9_universal2.whl

Download URL pyplatec-1.4.3-cp39-cp39-macosx_10_9_universal2.whl
Size 131.1 kB
Tags CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
aa2a65acb46efe4cc1b58e7de8afe7efc700ad1bb0d6687eea8ca1049165fb2e
BLAKE2b-256 checksum
How to use checksums
013ed0771fb22eb58fca64f33980945857cb6d633dddc309fcb599683337ff07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for PyPlatec 1.4.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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