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

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.2.1
File Size Uploaded Provenance Actions
fcmaes_rust-0.2.1.tar.gz 207.3 kB Without provenance Details for fcmaes_rust-0.2.1.tar.gz

Built distributions (wheels)

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

Total release size: 9.7 MB

Release files / fcmaes_rust-0.2.1.tar.gz

Download URL fcmaes_rust-0.2.1.tar.gz
Size 207.3 kB
Tags Source
SHA-256 checksum
How to use checksums
43203ecbe7dc56fdc6acc552da6e4fd1c45639fe9bf30dd0799207b3b83b1c41
BLAKE2b-256 checksum
How to use checksums
0fe8c44f520c4c757e855d0204298cd705ec5cec5f117f4630b8373560dbab58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fcmaes_rust-0.2.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 772.5 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
d28f734ee2b53f5af99762fc5a0d0e837611713c3add60b0c0b35b9882f25bb7
BLAKE2b-256 checksum
How to use checksums
74a365e4537239eaa1d002158e6e71fdceb8532c393dc96fe58ea19de9388e16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp313-cp313-win_amd64.whl

Download URL fcmaes_rust-0.2.1-cp313-cp313-win_amd64.whl
Size 735.3 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
139a6ea5c745cc713914456761afc2b2c2741e6f5a81d86b62f9a6282dbf31c1
BLAKE2b-256 checksum
How to use checksums
7924771e84f800961b4d88ea72358251daa3e70bef650aebac8fbc3affee30d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fcmaes_rust-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 772.8 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e57580eec63ed09dcad7b607e72dd6f4371c75fb801a8c8797f699ef7e1ecde5
BLAKE2b-256 checksum
How to use checksums
4ab19b1cb43b4e570e5fb533a7b61a4acf38582a7a036b2ab2565a432c61b55b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
Size 667.6 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fe8e3de84f85d225ec5d8f115b084462c1673e99054572ca044ac95a609192e7
BLAKE2b-256 checksum
How to use checksums
73f6cf3e004f14e05d29e4ada2a0558df75a72fb3f182ec30535220cc71a7288
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp313-cp313-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.2.1-cp313-cp313-macosx_10_12_x86_64.whl
Size 729.0 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
1e6ac93bf36ef10eb47407b9efd194205bac0bf193912d3495826aff16b40bd4
BLAKE2b-256 checksum
How to use checksums
295e1beb973009780d61601b853a3d0b371eb1ce4d9aefcb27044a283ee6e255
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp312-cp312-win_amd64.whl

Download URL fcmaes_rust-0.2.1-cp312-cp312-win_amd64.whl
Size 735.5 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
cf92b6bbf2eed245c0cace9445d59cc4da1af016f11bb05014c12a5b551fa93d
BLAKE2b-256 checksum
How to use checksums
03ae23392ff35e4d67fbf9381977a0c928d88cbfdf572330404a2df841be3514
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fcmaes_rust-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 773.2 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
46260e51b9ce274ccc97f36c78fee30bed3f8066cd48309fa05c343d0b662ef4
BLAKE2b-256 checksum
How to use checksums
8aa399021da9c0f779ba4db5fa5878625e72bbee99dbb7a16ac5f5d04bd13b31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
Size 668.1 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4c03613d508be8db063165e84686dac622047884ad948761faf70081f429becf
BLAKE2b-256 checksum
How to use checksums
b8cd7e272c23339b2649e9eaf84b25f41a858aeca6d56b306f569de9998b985b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp312-cp312-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl
Size 729.2 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
96d8a03876f4387393700f5e922ed16fc7aea3d0b6f9ef88fc4bdc3dacd3898c
BLAKE2b-256 checksum
How to use checksums
af4847872d64361b7b0965f1ce78e7243ab0ae0b90d71ad86e3b22668d597f13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp311-cp311-win_amd64.whl

Download URL fcmaes_rust-0.2.1-cp311-cp311-win_amd64.whl
Size 732.2 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
1e3c00e83cde455c0de804dcfbb13c00138d7d1879203d28c6be668ac19ca0e9
BLAKE2b-256 checksum
How to use checksums
48fee2c0b1be8a6c907fe3b32642ccfe9120bf75a660e8d8100cd1dd01a82df3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fcmaes_rust-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 771.7 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0e44ba795b6b6b305276850a3ec75f1c4703d7dd5ccb1bc331fa5f3763e385ac
BLAKE2b-256 checksum
How to use checksums
ad3e95a5992ce3f45dd003c97f9f5b0757b66e4ead7252d2107acc068b7bbd5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp311-cp311-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.2.1-cp311-cp311-macosx_11_0_arm64.whl
Size 668.5 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3e8a3e66ac1826c5ac9d929efcb73c74e97cd6ffb51c621e36a1063654d4522e
BLAKE2b-256 checksum
How to use checksums
844f6e58751670dd64d482fd9a6bd33bbd09becf25bd4b2e22b005b7cfae51dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-cp311-cp311-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.2.1-cp311-cp311-macosx_10_12_x86_64.whl
Size 729.8 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
7f97f95e583d4feabcc03a1ffcf994f29f2eeaac5d8e32c151ed79040e3fe126
BLAKE2b-256 checksum
How to use checksums
552deef10497c0c3c2b147bb6a2741a0d4cbc1809661c9f7ca0dcb45b4ec03b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1

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