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.12
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.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyxmc-1.0.12.tar.gz | 7.6 kB | Without provenance | Details for pyxmc-1.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyxmc-1.0.12-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.28+ x86-64, Linux glibc 2.5+ x86-64 | Details for pyxmc-1.0.12-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.12.tar.gz
| Download URL | pyxmc-1.0.12.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40f224372eb133376f50b927e2723a0c0a62d2bd6b923ab554ce26c5a2f2fd88
|
|
BLAKE2b-256 checksum How to use checksums |
c65f63dd69bf06b9e6f8cb13b6aaad2b248a62ec8c1b69547b0da57c77cfbbb4
|
| 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.12-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | pyxmc-1.0.12-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 |
a94af8f140033c873c0bd2f2610aab1d90eb117284eafedf5e7c612dad999582
|
|
BLAKE2b-256 checksum How to use checksums |
93a22ba024866d30288be1fa2abab3812c29b245540426de763bd4321e67a7e1
|
| 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.12
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.