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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file life_restart_core-0.1.0.tar.gz.
File metadata
- Download URL: life_restart_core-0.1.0.tar.gz
- Upload date:
- Size: 45.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4486ee3c2b2145283668609bdad488b47d540e01693216f7b4256ed6ef8e700f
|
|
| MD5 |
d410316ae894e6cb35f668379f0d999e
|
|
| BLAKE2b-256 |
f7629e87d2d67ffd7ccbebdb40d2d87ac9ab0b1e3682b4d73a588ed439311cf2
|
File details
Details for the file life_restart_core-0.1.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: life_restart_core-0.1.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 212.5 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16bb71447aa64b5c9754c8b789c6f70624ca148b5015be087077a475e4cf961a
|
|
| MD5 |
50c408c81813ded523942086f7d1133c
|
|
| BLAKE2b-256 |
d002252b4bd7f07c36936b4faed31522b4c78480d3924cac5852e6d4c751329f
|
File details
Details for the file life_restart_core-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: life_restart_core-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 331.3 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7512bdde82664643541d18aa6ef37d8c77fdbf737ad7a6a3723322aeefcf8ab9
|
|
| MD5 |
0d350cc6f8f774aa615614cad8c46ec5
|
|
| BLAKE2b-256 |
4e8bae5f6358b13361cf5a73a93961a2063d2810a0cf3b1f5a298cc50e872ee0
|
File details
Details for the file life_restart_core-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: life_restart_core-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 327.4 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b0fda3036d86eca5f25a719ae3cb61ba871a567b69650627fabad95e466f5a6
|
|
| MD5 |
4392fce53f3f7cdd3dacb6d0cdd930d3
|
|
| BLAKE2b-256 |
e47479b5a208311a155b7a40ab8c65d66aa7d7bdb7fa7e2664375daaffc69a44
|
File details
Details for the file life_restart_core-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: life_restart_core-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 304.8 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35355dd210fc43735c40cf7033cf3925cdec8ba42ee7283eef4de164df5b197f
|
|
| MD5 |
48f03e9cf347b3ae3dcb5419b6307dc9
|
|
| BLAKE2b-256 |
f192105b75b25b58e07e203ab879875676a38e3ef462120f4d7bbc20fcb836ac
|
File details
Details for the file life_restart_core-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: life_restart_core-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 314.8 kB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f412fb96afd12bbb788bc55eff104f5b437c320517eba19b958c0559542115a9
|
|
| MD5 |
a3168ffb1a17de5a670942f8d96e0a87
|
|
| BLAKE2b-256 |
aa780e93b8b8b4bc5ae2503908c367324c263e7ca8bdb0cf5cbddc49b36ce6ad
|