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, jSO, 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.4.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.4.0
File Size Uploaded Provenance Actions
fcmaes_rust-0.4.0.tar.gz 244.3 kB Without provenance Details for fcmaes_rust-0.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fcmaes-rust 0.4.0
File Actions
fcmaes_rust-0.4.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.4.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.4.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for fcmaes_rust-0.4.0-cp313-cp313-win_amd64.whl
fcmaes_rust-0.4.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.4.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.4.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for fcmaes_rust-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
fcmaes_rust-0.4.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.4.0-cp313-cp313-macosx_10_12_x86_64.whl
fcmaes_rust-0.4.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for fcmaes_rust-0.4.0-cp312-cp312-win_amd64.whl
fcmaes_rust-0.4.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.4.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.4.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for fcmaes_rust-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
fcmaes_rust-0.4.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.4.0-cp312-cp312-macosx_10_12_x86_64.whl
fcmaes_rust-0.4.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for fcmaes_rust-0.4.0-cp311-cp311-win_amd64.whl
fcmaes_rust-0.4.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.4.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.4.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for fcmaes_rust-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
fcmaes_rust-0.4.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.4.0-cp311-cp311-macosx_10_12_x86_64.whl

Total release size: 10.2 MB

Release files / fcmaes_rust-0.4.0.tar.gz

Download URL fcmaes_rust-0.4.0.tar.gz
Size 244.3 kB
Tags Source
SHA-256 checksum
How to use checksums
61ca6d5c09451bd19dc71f2cd17490dfea92d5f5c3ab80930bc10db912890a15
BLAKE2b-256 checksum
How to use checksums
9132f5268b1a50930061b11bf9230817e9782c32bfb80e3e43432030b52c5bf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.4.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 806.2 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
2233ad1edbefdf72756fa40c6d83f9fd18ede96f4675ffed4a06e6543620a814
BLAKE2b-256 checksum
How to use checksums
0917e317712b991b1655e43c8ed6eb4846de8b148505528d57bc24023e39f4ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp313-cp313-win_amd64.whl

Download URL fcmaes_rust-0.4.0-cp313-cp313-win_amd64.whl
Size 778.9 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
452324d4f648dccbf0643188ebb97c39a1fdca35edd42d3536a24e5887c193c8
BLAKE2b-256 checksum
How to use checksums
28b356c1493478499f2438eee19a0e322e41f718b65d481cd49201627660129b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.4.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 806.8 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
89d14f8f3fef4cc7c4b393399ad198751682c756493b7ee9e43e963adbc09956
BLAKE2b-256 checksum
How to use checksums
b24a57b7f9e88c27a65a4727595de2264f90c19c5a7cdf489241981a6011cc89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Size 696.3 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
369687862a40029fb1167cfe409dc4ec956fecb0b55beb13fb29f31d55953716
BLAKE2b-256 checksum
How to use checksums
18a72da8ccd999b71641d3bbcd3f9d13520e747c19a0bacca9756b87b90a9caa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp313-cp313-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.4.0-cp313-cp313-macosx_10_12_x86_64.whl
Size 761.6 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
03e8dbc1510aae970d24f0dc9ebb78e97f92b22d43187776f081756c4f78cce5
BLAKE2b-256 checksum
How to use checksums
99f592d58be2d8c04f604aacb1c7623c194bda4e011ea607c36757d57f0f8ace
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp312-cp312-win_amd64.whl

Download URL fcmaes_rust-0.4.0-cp312-cp312-win_amd64.whl
Size 779.2 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
a326d58ac8c012390fca1db9c51a34324ade248991f2a4235902e78b485119df
BLAKE2b-256 checksum
How to use checksums
ccba260e7423a4db72abc9245821b87c5abc9561d32f5d9f2a59d4aa54838a23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.4.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 807.3 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
45a42d5aae4bba46ebd360ca5dfa75d7a9146614d17bc9666deae9e2b0c5c7a4
BLAKE2b-256 checksum
How to use checksums
7c2bad2d854b2958f7e668505b11ab76e124810f374226305bf7b46b613b7a81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Size 698.0 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3b8a3e56701c8f40f5ef4ee51e155153a9960e482166e014ca5b4672007f133c
BLAKE2b-256 checksum
How to use checksums
a82f497a5e840b0bfb37a9d8aa908f44141d7eb18aa645784afe6414cb9bd6dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp312-cp312-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl
Size 762.1 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
202b60aa2c8379036b70b0f264ad0627cf3ae611de49751ef3b6589b2de692c6
BLAKE2b-256 checksum
How to use checksums
873d99c6bd3a379e13b29c87b62a38d22eb70000e052ca76d3aec851ea3a9784
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp311-cp311-win_amd64.whl

Download URL fcmaes_rust-0.4.0-cp311-cp311-win_amd64.whl
Size 775.7 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
2ae06d217527813bea9df3dab133be1cc8b9312be874f07964fd2d96b8131523
BLAKE2b-256 checksum
How to use checksums
ae30a5d7876dbc68012f865f63648c8f8f2cede2f5c8db9d81b28de6c0f1110c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.4.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 805.4 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
67c56bb89fd54b24797f415cba7b82013d7ec9f1c2181f4186480eec9b67dbb9
BLAKE2b-256 checksum
How to use checksums
e8fc58371fbda7f68a52044dff20f74fb4be1600786385dc4e579edfeafc2f53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Size 697.9 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a2049fa24cd3b6a41824dc8e51ff7a0d55e6503e1345066b395551699427b7b9
BLAKE2b-256 checksum
How to use checksums
fc64df54dac825b64edf13a42d45e2dcae4e890d0d69f2142718645661b63269
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-cp311-cp311-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl
Size 762.4 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8b3e73c2f8a73ee572ce5dd83430720433cefa155696e80460e39e62e0a4a653
BLAKE2b-256 checksum
How to use checksums
fb7df8c6aeb4926c8f563c06cd5cbe2c3e5a30ebb179f81c243a5c1ebc65cf6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.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