Skip to main content

High-performance life restart simulator core engine written in Rust

Project description

Life Restart Core

High-performance life restart simulator core engine written in Rust with Python bindings.

Features

  • 🚀 10-25x faster than pure Python implementation
  • 🐍 Python 3.14+ compatible via PyO3
  • 🔧 Drop-in replacement for existing Python code
  • 📦 Pre-built wheels for Linux, Windows, and macOS

Installation

pip install life-restart-core

Usage

from life_restart_core import simulate_full_life

result = simulate_full_life(
    talent_ids=[1001, 1002, 1003],
    properties={"CHR": 5, "INT": 5, "STR": 5, "MNY": 5},
    achieved_list=[],
    config={
        "talents": {...},
        "events": {...},
        "ages": {...},
        "achievements": {...},
        "judge": {...},
    }
)

# Result contains:
# - trajectory: List of year results
# - summary: Life summary with scores
# - new_achievements: Newly unlocked achievements
# - triggered_events: List of triggered event IDs
# - replacements: Talent replacement results

Development

Prerequisites

  • Rust 1.70+
  • Python 3.14+
  • maturin

Build

# Install maturin
pip install maturin

# Build and install in development mode
maturin develop

# Build release wheel
maturin build --release

Test

# Run Rust tests
cargo test

# Run Python tests
pytest tests/

Benchmark

cargo bench

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

life_restart_core-0.3.2.tar.gz (73.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

life_restart_core-0.3.2-cp312-cp312-win_amd64.whl (805.5 kB view details)

Uploaded CPython 3.12Windows x86-64

life_restart_core-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

life_restart_core-0.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

life_restart_core-0.3.2-cp312-cp312-macosx_11_0_arm64.whl (884.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

life_restart_core-0.3.2-cp312-cp312-macosx_10_12_x86_64.whl (950.5 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

Details for the file life_restart_core-0.3.2.tar.gz.

File metadata

  • Download URL: life_restart_core-0.3.2.tar.gz
  • Upload date:
  • Size: 73.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for life_restart_core-0.3.2.tar.gz
Algorithm Hash digest
SHA256 06b3d100c80815b2a4890afe1c958608b6de1d085d27683db76ece5967f04d55
MD5 4bd568284d7f44885ea150f6954696cc
BLAKE2b-256 c7aab9753ea697c814297776701d8f0912faf7a10b454a99893019226b9bea95

See more details on using hashes here.

File details

Details for the file life_restart_core-0.3.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for life_restart_core-0.3.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a17621c56943a52033273a46ee1c7dbceed25f25712f2d6463034efb88fadb73
MD5 35f580e51bedbcad68596bcd362b6dc7
BLAKE2b-256 9dd36c5037fb7bfe72866dc6a20c4952fc7e13631f20930af436eac469d3b767

See more details on using hashes here.

File details

Details for the file life_restart_core-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for life_restart_core-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c02eba4afcdd7f60a44e15e8024f0ff063f8ddc52df6daa9f0873fcf94d09379
MD5 8598029cc04f96e03333c03b5c68da1f
BLAKE2b-256 1a8d704424484ae4c2456cd8a8d8db8b7fa52aec056654a3a7063395dbeab124

See more details on using hashes here.

File details

Details for the file life_restart_core-0.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for life_restart_core-0.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 255d09bd1626682e25f9ec6d9f8dc836b42e4f59e4ffa8c78932bd1c00e94a76
MD5 384dd2f1beb1152d7c492f56b810de66
BLAKE2b-256 7c71c768838da90f5c66dd1b1a82bd5b638f73956c06cf7b7f6080b053c6af29

See more details on using hashes here.

File details

Details for the file life_restart_core-0.3.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for life_restart_core-0.3.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d70fbc9d23553dd51078a9d2b62a1e0b831cf5eb460d9bfdb146a74db251fdd
MD5 71b6454db155db7e22c272d6b96f4622
BLAKE2b-256 0de95b135028fceacb6f1c45082922bd813ca73764ba5fc7473391340babb266

See more details on using hashes here.

File details

Details for the file life_restart_core-0.3.2-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for life_restart_core-0.3.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 626305b5e8543dd5bb2011a214aa6f8710f9eb19ee692b2ca59aaff69dcfa1f2
MD5 5c8039c053490a011e10abd99c1e30e3
BLAKE2b-256 9f3817a928267b0c8669bf64c33f4c80a4a349cca61f4158a3fbe464308c0d0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page