Skip to main content

pyxmc

pyxmc это расширение для Python на C, реализующее быстрый PRNG (xoshiro256) и базовые методы Монте-Карло.

Функционал

  • xmc.RNG: структура, реализующая генерацию псевдорандомных чисел.
  • xmc.estimate_pi(n, seed=0): оценка числа π методом Монте-Карло.

Установка

python3.11 -m venv .venv
source .venv/bin/activate
pip install -U pip setuptools wheel
pip install -e ".[dev]"
pytest -q

Требования

  • Python 3.11+
  • GCC/clang, поддержка C11
  • Linux/macOS

Использование

import xmc # version 1.0.0

r = xmc.RNG(seed=42)
print(r.random())
print(r.randint(1, 6))
print(repr(r))

print(xmc.estimate_pi(10_000_000))

Metadata

Release files for pyxmc 1.0.9

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

Source distribution (sdist)

Source distribution for pyxmc 1.0.9
File Size Uploaded Provenance Actions
pyxmc-1.0.9.tar.gz 7.6 kB Without provenance Details for pyxmc-1.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyxmc 1.0.9
File Interpreter ABI Platform Actions
pyxmc-1.0.9-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.5+ x86-64, Linux glibc 2.28+ x86-64 Details for pyxmc-1.0.9-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Total release size: 29.9 kB

Release files / pyxmc-1.0.9.tar.gz

Download URL pyxmc-1.0.9.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
40b1c23d1834941fd0ada03f2604d8c9926f6591bf67e5e67b750ef68d9c2a4f
BLAKE2b-256 checksum
How to use checksums
f3fb54ea03b60693585c598341c9facd4471bffd9b1ed7baed4e694c65d0097b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyxmc-1.0.9-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL pyxmc-1.0.9-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 22.3 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
66dbc7560b2691b904a3b62e32e72262e90728bb6928aab9d5a54b43d4445828
BLAKE2b-256 checksum
How to use checksums
9e3beaf020c14883a66ea5a7758df7353aaa3ffac9a3814aa4bb18737d846c7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pyxmc 1.0.9

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files No provenance

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