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.7

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.7
File
ournotes_sim-0.0.7-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
ournotes_sim-0.0.7-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details
ournotes_sim-0.0.7-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details
ournotes_sim-0.0.7-cp311-abi3-macosx_11_0_x86_64.whl CPython 3.11 abi3 macOS 11.0+ x86-64 Details
ournotes_sim-0.0.7-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details

Total release size: 6.0 MB

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

Download URL ournotes_sim-0.0.7-cp311-abi3-win_amd64.whl
Size 1.2 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e21184805fa12cd8bade2e7431d4d98f72b431fa2abb371f3074d3100f32b97a
BLAKE2b-256 checksum
How to use checksums
7a171d0588b28edd593f78502284f940a7e9bbbe4b2407024030f4199346fa3d
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 13, 2026.

Transparency log

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

Download URL ournotes_sim-0.0.7-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
e809c30022c9eba5f3a925a022e7a9edc11443a8960db9e9c64a0df24699cc8e
BLAKE2b-256 checksum
How to use checksums
cc7dc978eb7dee09792f17a0e37f03d82007a3f726fd92439ec6534e6d3feead
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 13, 2026.

Transparency log

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

Download URL ournotes_sim-0.0.7-cp311-abi3-manylinux_2_28_aarch64.whl
Size 1.2 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
2479e8361634f4b8bca9ebbd9ca97772503e803a1e48ebdd6a95166cdd8b326e
BLAKE2b-256 checksum
How to use checksums
fa2775ef5f1c48358418bc29a2e0ab5e086e53fcdf698146d9cab2f2bc692f32
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 13, 2026.

Transparency log

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

Download URL ournotes_sim-0.0.7-cp311-abi3-macosx_11_0_x86_64.whl
Size 1.2 MB
Tags CPython 3.11 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
7980c50c1998395b78aa2f4344f2df1df9e5443641782d5b5fc5b3f51470c937
BLAKE2b-256 checksum
How to use checksums
22b69b2bd50ed127d32941dc83840a3bed604071ff5a092ba700b20cc9981d07
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 13, 2026.

Transparency log

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

Download URL ournotes_sim-0.0.7-cp311-abi3-macosx_11_0_arm64.whl
Size 1.1 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7c8e687cbad6dd67054da174709de603321bc76e252ee03028ed338a01947a65
BLAKE2b-256 checksum
How to use checksums
ce7ea07bf3c47354594eb9d3cb93b22b2e15a76138a612fd251e951a02048b4e
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 13, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.9

5 release files

0.0.8

5 release files

This release

0.0.7 This release

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