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.1.3.tar.gz (46.1 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.1.3-cp312-cp312-win_amd64.whl (222.6 kB view details)

Uploaded CPython 3.12Windows x86-64

life_restart_core-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (341.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

life_restart_core-0.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (335.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

life_restart_core-0.1.3-cp312-cp312-macosx_11_0_arm64.whl (312.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

life_restart_core-0.1.3-cp312-cp312-macosx_10_12_x86_64.whl (323.0 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for life_restart_core-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d2e7a5a08945ff269ba4091c9a6ac64ac877d0cdd38f85b8cde1d2bb71d64d35
MD5 bc16a9bbde3888452525f6fa00072bdf
BLAKE2b-256 2334df042eae8365450703a52a81423d4380a7520545bc12b7af396a21b9bb71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.1.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 725cac97e32feae868f3eeb126ae9284381ceb6aa82a16aefa1d67802745807d
MD5 7353873baf90f281367b94ec3e3fff98
BLAKE2b-256 4f6d191f40c6bb9fba23b2a8f7a31f728e5495e477eaab1ef4507cd53c10adbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bad9abe144089848713e95a4902dc99901b1a9588b7f65c3cba00cf34d2503c5
MD5 15b949bd09bbac05ef903ce2379ac9fe
BLAKE2b-256 daa11f751d88252b4895509b6deb16d9db36e0ed36a27a2bb05a7b4d79f59817

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b013790a0184c085f0b156a8279601c5a43a5f486e04a098f173396101bf2163
MD5 3d10d5ac31e37b044c82c55a32ef731b
BLAKE2b-256 68ce0bbb3df592fa86e6d8b53476ba68237a83b701c9f77f7cf38d1b9612266c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3897c5169c2064e6daf5f09f6110e383f16254237e224a44be93b71e6047f415
MD5 361161791ceadc1d29144c4d0ea2f429
BLAKE2b-256 0c40e0d270a66e3ef5672113a661e417ffae03c12dec15dba33ec5790947e5a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.1.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 576207d1359ca132f8c54cd24f33ddd5b056df6aea2dfab5f0fe716e921a7027
MD5 6feed9331149f4503bc32aa806184af4
BLAKE2b-256 2527a2ea16682deafc1802e13a6743b87ef6e0fb273fa4c9ae6799369a1c06b5

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