Skip to main content

fcmaes-rust for Python

Choosing an optimization tool? Start with the shared solver-selection and agent guide or the optimization ecosystem overview. This distribution exposes the Rust optimizers to Python. For parallel Python callbacks, compare with fcmaes (fast-cma-es); the job worker and experimental surrogate are source-only components, not part of this wheel.

fcmaes-rust provides Python access to fast, parallel, gradient-free optimization algorithms implemented in native Rust. The optimizer core is pure Rust and does not compile, link, or load the historical C++ backend.

Installation

python -m pip install fcmaes-rust

The initial release supports CPython 3.11 through 3.13 on the platforms for which wheels are listed on PyPI.

To build from source, install Rust 1.88 or newer (https://rustup.rs), then either let pip build the source distribution (python -m pip install --no-binary fcmaes-rust fcmaes-rust) or build a checkout of the repository:

git clone https://github.com/dietmarwo/fcmaes-rust
cd fcmaes-rust
python -m pip install .

The Python package depends on NumPy and SciPy and, at build time, on crates.io crates only.

Quick check

import fcmaes_rust

print(fcmaes_rust.__version__)
print(fcmaes_rust.phase1_build_info())

Optimizers

The package exposes one-shot and ask/tell interfaces for Differential Evolution, active CMA-ES, CR-FM-NES, PGPE and BiteOpt, plus Dual Annealing, MODE, MAP-Elites, the Diversifier, independent retry, coordinated retry and weighted multi-objective retry.

The functions currently return low-level NumPy arrays, tuples or dictionaries. See the Python binding guide for signatures, examples, parallelism behavior and result layouts. Every exported function, stateful method, and property also provides an installed runtime docstring, for example help(fcmaes_rust.optimize_de) or help(fcmaes_rust.MODE). SciPy is a runtime dependency because retry callbacks receive a public scipy.optimize.Bounds object.

import numpy as np
import fcmaes_rust

def sphere(x):
    return float(np.dot(x, x))

dim = 4
empty = np.empty(0, dtype=np.float64)
x, value, evaluations, iterations, stop = fcmaes_rust.optimize_de(
    sphere,
    dim,
    np.full(dim, -5.0),
    np.full(dim, 5.0),
    empty,
    empty,
    np.empty(0, dtype=np.bool_),
    seed=7,
    max_evaluations=4_000,
    popsize=20,
)
print(value, evaluations, x)

Python callbacks must reacquire the GIL. Native Rust objectives offer the strongest parallel scaling; cheap pure-Python callbacks are usually callback-bound.

License

MIT

Metadata

Release files for fcmaes-rust 0.3.0

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

Source distribution (sdist)

Source distribution for fcmaes-rust 0.3.0
File Size Uploaded Provenance Actions
fcmaes_rust-0.3.0.tar.gz 210.2 kB Without provenance Details for fcmaes_rust-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fcmaes-rust 0.3.0
File Actions
fcmaes_rust-0.3.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.17+ x86-64 Details for fcmaes_rust-0.3.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.3.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for fcmaes_rust-0.3.0-cp313-cp313-win_amd64.whl
fcmaes_rust-0.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for fcmaes_rust-0.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.3.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for fcmaes_rust-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
fcmaes_rust-0.3.0-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details for fcmaes_rust-0.3.0-cp313-cp313-macosx_10_12_x86_64.whl
fcmaes_rust-0.3.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for fcmaes_rust-0.3.0-cp312-cp312-win_amd64.whl
fcmaes_rust-0.3.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for fcmaes_rust-0.3.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.3.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for fcmaes_rust-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
fcmaes_rust-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details for fcmaes_rust-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl
fcmaes_rust-0.3.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for fcmaes_rust-0.3.0-cp311-cp311-win_amd64.whl
fcmaes_rust-0.3.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for fcmaes_rust-0.3.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.3.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for fcmaes_rust-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
fcmaes_rust-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details for fcmaes_rust-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl

Total release size: 9.7 MB

Release files / fcmaes_rust-0.3.0.tar.gz

Download URL fcmaes_rust-0.3.0.tar.gz
Size 210.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fce4fddc6b9c771acd420e5570ab53e61e82e931966118921649daf9e42fe6e2
BLAKE2b-256 checksum
How to use checksums
81ea0ba57efe37de5e7295ea44ab9386e2877e7f391b704c6b5a8bed0badcf2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.3.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 774.1 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
6492d9f214b9b38197adc216a9f4cb7c50c32372c27bfbb5099c8d3bf5981c30
BLAKE2b-256 checksum
How to use checksums
849d94d14aa155792154b7043dc2b0d6c801c6d819f77345bc260a8b074afc42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp313-cp313-win_amd64.whl

Download URL fcmaes_rust-0.3.0-cp313-cp313-win_amd64.whl
Size 736.4 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
a81d973553a0bc91dfecc99a22bc3949a50ffb47dbf0a30be1cb1e7409831865
BLAKE2b-256 checksum
How to use checksums
cfeb69ce14612f3ea51114abc1d700aa99947307cb434c2f3a4debae34b5233b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 774.3 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
050091a95cf8d8b066d1568cc73b525d50b65ec721da727b09e9c4d8a6c66154
BLAKE2b-256 checksum
How to use checksums
bf9bcc3bb28605b4008097452fc3f48bc6309ac24ea033bc11312e5719da7af5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
Size 668.8 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
db9f136685c2f8a3ea0984877e674b491cfa5d05a8554129f57f3407a1d361c8
BLAKE2b-256 checksum
How to use checksums
e7ae5f9ed78dabe3c5a30ae0e81cf48f3a34cb900cafb433b61ab6235d6392f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp313-cp313-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.3.0-cp313-cp313-macosx_10_12_x86_64.whl
Size 729.6 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
02c33b56acddf3228e4fee35222dc39b0ca65e47c119a3ffa65b8facd3a9a7dc
BLAKE2b-256 checksum
How to use checksums
e61accd47291b484bb7be5cf3e24cdbcaf05cc63038d1ed061f5b878fed0cba8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp312-cp312-win_amd64.whl

Download URL fcmaes_rust-0.3.0-cp312-cp312-win_amd64.whl
Size 736.8 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
55a8565cf5c379ceed3dc1d75e4c265222bb98c975d0a17e460a26c1020a62cf
BLAKE2b-256 checksum
How to use checksums
52098d4c7e87cbc48c9cec4acf0b5872b8441c72a5b70c5005ce99e650dc365f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.3.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 774.8 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
455e5af58b2d58511313ac4e24f3705260db37635f7f2a24c8a648969396574b
BLAKE2b-256 checksum
How to use checksums
bfcfd7140246ff7ba236a8ff526be04c98de58d2b6f0c9ed534363870e565a50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Size 669.3 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ee6510eaecb1038b9f0d2c3226e3ef1d7598efc786d2bc4923fad016b9852216
BLAKE2b-256 checksum
How to use checksums
d405ed842738565f7e18552495a9e5a62c596e07b3698d9ed590fbc2bf1f9fb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl
Size 730.0 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c331293ae30f9e54fbfa7209852a0e4b7bbe410ee12a70f27f6ae9f265b0958c
BLAKE2b-256 checksum
How to use checksums
797c4e46855688136ab2c60faeeea62bd8e412a7269adbc667d52b56154415fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp311-cp311-win_amd64.whl

Download URL fcmaes_rust-0.3.0-cp311-cp311-win_amd64.whl
Size 733.6 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
840e6e298d752c02cc3bbf305266d6e24af256c296b2a61eebd9a219ca2d9664
BLAKE2b-256 checksum
How to use checksums
dc13b581625d8dc7d3dcb971c96574063f15bbe9ee2a3f10c0f58a02004dae9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.3.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 773.2 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
891f19510942fc8631921482d51bc8b9d745240c8046805636109885d851565a
BLAKE2b-256 checksum
How to use checksums
41f8c0f6817d6cababab87a0aa1fe4b3e93e07b3e82368b53f3d94dd18adf394
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Size 669.5 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9fd7a970681df97b95f80a343857307acd3d8bc54006ea8347ac7689c565ef75
BLAKE2b-256 checksum
How to use checksums
319dfe209a84c6a2701197a8896c52206df11d78796bb860cb94c1e117b6a719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl
Size 730.4 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
60fef66c981c2515789505842187d946c1332b5a5f6c06086aa9602126dd6dbd
BLAKE2b-256 checksum
How to use checksums
0627e824476056754285f6b83da47024891756f721e3ee0bbc85cd354f31981d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for fcmaes-rust 0.3.0

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.

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