Skip to main content

ournotes-sim

The deck model of ournotes-deck for Python: the chart statistics of the Rust crate ournotes-sim on a deck data document, measured in parallel in native code.

pip install ournotes-sim

Wheels are built for CPython 3.11 and later (one abi3 wheel per platform) on Linux (x86_64, aarch64; manylinux 2.28), Windows (x64) and macOS 11 or later (x86_64, arm64).

Use

import json
import ournotes_sim

text = open("deck-data.json", encoding="utf-8").read()       # nnnotes.deck-data/1
stats = json.loads(ournotes_sim.chart_stats(text))            # ournotes-deck.chart-stats/3
print(ournotes_sim.info())
name does
chart_stats(data, seeds=None, workers=None, aptitude=True) the chart statistics document (JSON text) of a deck data document (JSON text); seeds: replay seeds (default 8), workers: threads (default: the available parallelism), aptitude: include the single Gekisou skill shapes. Raises ValueError for invalid data or a failed expectation check
chart_stats_cached(data, seeds=None, workers=None, aptitude=True, *, cache_dir) chart_stats with the simulation programs kept in cache_dir, and the cache's counters (requests, hits, computed, writes, invalid, bytes); the document is the same as chart_stats's
info() the model: name, version, source, commit (the source commit of a release build, None for other builds), sourceSha256 (the SHA-256 of the ournotes-sim sources: equal for builds that run the same model), dataFormat and format
MASTER_TABLES the master tables a deck data document holds (each one is required, zero rows are allowed)

Every version of the package carries one model, the ournotes-sim of the same release. The package contains no game data: deck data documents are made from each user's own master data, for example with nnnotes.

Building

pip install ./python[test]      # from the repository root: builds the extension module with maturin
pytest python/tests

Licence

MIT OR Apache-2.0.

Metadata

Release files for ournotes-sim 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for ournotes-sim 0.0.9
File
ournotes_sim-0.0.9-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
ournotes_sim-0.0.9-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details
ournotes_sim-0.0.9-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details
ournotes_sim-0.0.9-cp311-abi3-macosx_11_0_x86_64.whl CPython 3.11 abi3 macOS 11.0+ x86-64 Details
ournotes_sim-0.0.9-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details

Total release size: 6.3 MB

Release files / ournotes_sim-0.0.9-cp311-abi3-win_amd64.whl

Download URL ournotes_sim-0.0.9-cp311-abi3-win_amd64.whl
Size 1.2 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
afa4211a89825e766526395fc3d00a9bad332c7d312bbb66eedaff15ae68556a
BLAKE2b-256 checksum
How to use checksums
be7c365c01caa5390bae1a1c39036bf2abd9f9d02008e905b78af041db410349
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / ournotes_sim-0.0.9-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL ournotes_sim-0.0.9-cp311-abi3-manylinux_2_28_x86_64.whl
Size 1.3 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
f59a1ffa87299a290c2d1b39fde511697794155d5a50bb09b96957bf8093bc2e
BLAKE2b-256 checksum
How to use checksums
24b826a13c40e707fb36b3b673a909a7316b47d663400acf9b292e3e2cb83a2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / ournotes_sim-0.0.9-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL ournotes_sim-0.0.9-cp311-abi3-manylinux_2_28_aarch64.whl
Size 1.3 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
c16900b18417e0a23cfd3a31445a604044e75f8ffca3bae406436804140ae1e9
BLAKE2b-256 checksum
How to use checksums
c491bf82f3696f1619c0daabe38f8bf0b63fe3f90093343da1f067ce500d2504
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / ournotes_sim-0.0.9-cp311-abi3-macosx_11_0_x86_64.whl

Download URL ournotes_sim-0.0.9-cp311-abi3-macosx_11_0_x86_64.whl
Size 1.3 MB
Tags CPython 3.11 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
fc023ae1a396ea6ce395612632379338d4ababac7dbcaf999a18768e79a68ecb
BLAKE2b-256 checksum
How to use checksums
a4d83dd1fce51ae87dbd5645d4ff17bcdd2744280c8386c3ffeefbb480003bb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / ournotes_sim-0.0.9-cp311-abi3-macosx_11_0_arm64.whl

Download URL ournotes_sim-0.0.9-cp311-abi3-macosx_11_0_arm64.whl
Size 1.2 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f38711f42603ca5dbac1080f0d86653cd2b252568f82a9adca69844349c19f01
BLAKE2b-256 checksum
How to use checksums
f96fcc7aa9280d3148ddcdf82c17635ee37c7aec445f36cdcc02e2678bfed0be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.9 This release

5 release files

0.0.8

5 release files

0.0.7

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page