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.2.tar.gz (45.4 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.2-cp312-cp312-win_amd64.whl (213.4 kB view details)

Uploaded CPython 3.12Windows x86-64

life_restart_core-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (332.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

life_restart_core-0.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (328.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

life_restart_core-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (305.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

life_restart_core-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl (315.5 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for life_restart_core-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8b440e15b9cb68803404106b8d6011e0bec5045ef6778af2a5de28778bf1b5a3
MD5 c6c4d73375da824203c355f568c290df
BLAKE2b-256 50a10b6c788a46d8828cac1250829a4d0f164a7729a3f78f4dc83949d1193017

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.1.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e5df2a75e10940cb0b55609e83087434ba76f3ea2672abd9c0da655f743643e5
MD5 719c7a4f46b3bb8230efcd3ad101a109
BLAKE2b-256 599845c7d14d08713a72904e35c1084bb4e5246acb4002e68888b19b5f100af3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8dce6750ef46a2ca09abf1752f5c415c1fac4a0cd44194e576de92da5ed582d0
MD5 73afc0eceeee6400afa3a58f0e364925
BLAKE2b-256 e47e4dc722349786c4870cb606983b714cd07e6752f026729169796c98399ac2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3ed24a763d61513baa3ed1a5980cd451277c3e5042dac37f6d2f7388551d7ee2
MD5 d4af91fd1231966647c7d2973f6583c3
BLAKE2b-256 1f826ffe37c7490029bcea7b7bcb3504c1c4de7952ed62939996e3fabc251d34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2dbfa178013deacdc5748146095270be64215bf595d29975a25c2db61ad554d0
MD5 fe07917ba10f8d2e2a7f76b27f482143
BLAKE2b-256 10b87b570deda8e69db052e543a70165536fc68716cc3dd8ed6a724368e45176

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for life_restart_core-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 db65d630f279647a6a28bd4dd72fed53854e006cf2964e22cebccb9afaa9283d
MD5 fa777ebdfe0b098396c7b5c381adf318
BLAKE2b-256 21dae6ea4213b72bf8eb16705c527f26d20f03a638ce595ca3c3bbb0ff177899

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