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.2.1.tar.gz (60.3 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.2.1-cp312-cp312-win_amd64.whl (310.7 kB view details)

Uploaded CPython 3.12Windows x86-64

life_restart_core-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (489.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

life_restart_core-0.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (484.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

life_restart_core-0.2.1-cp312-cp312-macosx_11_0_arm64.whl (423.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

life_restart_core-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl (441.2 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for life_restart_core-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d2b4a3df4c064787c542d46226f7360fb2fffa344c360faa03c520d40be85234
MD5 f6d66b6398b2fd150b4dee0c53b4f01a
BLAKE2b-256 206718b21c9255d15ed596c967682b7d637424e624315b5253e91c25a55d27f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 75f4269393c575136c924517c0f5a445f5853f8ea490e5ed15bdcfae5beca94c
MD5 6012c380777018fe97ba8d25c0cdc41c
BLAKE2b-256 858ece187be5449b454a09dcf7c88f70c6a7cd5964721084ddc602784a860f32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d77092afae776a0402a31c419e7925d687a2be8ab5e3c2ef1fb48573c5356655
MD5 7a353db83ae84bab7db0a3afce68a74d
BLAKE2b-256 31c9d85651ac9070f53d78c3580466d7395d05985ee8e846df65009466e4130f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 63489bf12d13264268e4e2c8d996e4d96f1954f39e52894cbc0ee0d13065acf7
MD5 88dc95e6a78aecf3b5627ee8b8eb111a
BLAKE2b-256 af78a1c9a1b5ba6998b49ba08a29bed55471273f86f6d9c3c7472a04ff2d90b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9e88047f42193075c858cd5fc542ca1c98cb0902cbd8a8e2bf9b8510da89219
MD5 4ce14da017d89b583e45190232dea04c
BLAKE2b-256 9d22ef7683ac1fb2278721eb9542869b00dae76fcaabde5154325982d2669b4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 19ce205e34328860b9720249139b5c56489c80d92de60bd9525ba6185d824528
MD5 3e1342cdd3323112dad358cd8e145d12
BLAKE2b-256 7f33db0c4c24fd1c3ab28b92ace85a90ed7c94ccbb6acb9a96f6b8e8fa7e979c

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