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.0.tar.gz (60.2 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.0-cp312-cp312-win_amd64.whl (307.0 kB view details)

Uploaded CPython 3.12Windows x86-64

life_restart_core-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (485.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

life_restart_core-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (481.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

life_restart_core-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (420.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

life_restart_core-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl (437.9 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for life_restart_core-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b7188c77082e971426f002fd1035bc3fdda735ff2f796a7e08205c8d02360bd0
MD5 c103aa68daef9c392a96210ed8eb7505
BLAKE2b-256 dc9ebd0defeb9937a39319ed9f8fa9a4a36de50bcf2d92aa9e6e7acb1fb26f7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 73974161018b8fbe318b2ccd12b7e429586b6e61197e5169111dcf55896f6d40
MD5 7493772620c56dbe19aa47ce2a0d6374
BLAKE2b-256 e1ba95396fdc2edbacdce5523ec5c79ef3491c4aeb61ed87afb065255255be1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c7782b1f07f7bd3d1f9e8830c9737304144fa1665f5c9cb2d14e0fda01a75c18
MD5 5c86786f0cf74239dfbfc5088e29b931
BLAKE2b-256 9357bc52a0ba518fb2ef074c93876302043f4e26ae19b32592544a2ed8093346

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 eee0cdc61b30813d94e4773899cd13f57bf6de0d765b81104dc00b1cb54ce6ce
MD5 5cb816efd2db8956d92574b841ab486b
BLAKE2b-256 67cc84f332f4b7c79fe50d64681c1f90a6c67d687fedfeeb109e094e40631b2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 279587cee5d55dd0ba72b72ce837486f2691d9318c1b242a9afc0bcd93bc2490
MD5 43d5b2499f6d6e82ee6414ef497d8684
BLAKE2b-256 510623fba9abb91282e5dc9b9cf71fc3e2d21f70f50e8d28a7abd3ede96fbc5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 eda39f4b980a0958e5b7ce63537553f707195986c3e897805413c37b10fd2d80
MD5 e5885ce1703bb55b9bb414080feace64
BLAKE2b-256 ab887bf067e7c0eae592f57aa25e7a96436b97713db910b6a2df5ba09225374d

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